Table of Contents

Class ServiceCollectionExtensions

Namespace
Auth0.AspNetCore.Authentication
Assembly
Auth0.AspNetCore.Authentication.dll

Contains IServiceCollection extension(s) for registering Auth0.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddAuth0WebAppAuthentication(IServiceCollection, Action<Auth0WebAppOptions>)

Add Auth0 configuration using Open ID Connect

public static Auth0WebAppAuthenticationBuilder AddAuth0WebAppAuthentication(this IServiceCollection services, Action<Auth0WebAppOptions> configureOptions)

Parameters

services IServiceCollection

The original IServiceCollection instance

configureOptions Action<Auth0WebAppOptions>

A delegate used to configure the Auth0WebAppOptions

Returns

Auth0WebAppAuthenticationBuilder

The Auth0WebAppAuthenticationBuilder instance that has been created.

AddAuth0WebAppAuthentication(IServiceCollection, string, Action<Auth0WebAppOptions>)

Add Auth0 configuration using Open ID Connect

public static Auth0WebAppAuthenticationBuilder AddAuth0WebAppAuthentication(this IServiceCollection services, string authenticationScheme, Action<Auth0WebAppOptions> configureOptions)

Parameters

services IServiceCollection

The original IServiceCollection instance

authenticationScheme string
configureOptions Action<Auth0WebAppOptions>

A delegate used to configure the Auth0WebAppOptions

Returns

Auth0WebAppAuthenticationBuilder

The Auth0WebAppAuthenticationBuilder instance that has been created.