Class Auth0ApiAuthenticationBuilder
- Namespace
- Auth0.AspNetCore.Authentication.Api
- Assembly
- Auth0.AspNetCore.Authentication.Api.dll
Builder to add functionality on top of Auth0 API authentication.
public class Auth0ApiAuthenticationBuilder
- Inheritance
-
Auth0ApiAuthenticationBuilder
- Inherited Members
- Extension Methods
Constructors
Auth0ApiAuthenticationBuilder(IServiceCollection)
Initializes a new instance of the Auth0ApiAuthenticationBuilder class using the default Auth0 authentication scheme.
public Auth0ApiAuthenticationBuilder(IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection instance used to register authentication services.
Auth0ApiAuthenticationBuilder(IServiceCollection, string)
Constructs an instance of Auth0ApiAuthenticationBuilder.
public Auth0ApiAuthenticationBuilder(IServiceCollection services, string authenticationScheme)
Parameters
servicesIServiceCollectionThe IServiceCollection instance used to register authentication services.
authenticationSchemestringThe authentication scheme to use for the Auth0 authentication handler.
Properties
AuthenticationScheme
The authentication scheme name.
public string AuthenticationScheme { get; }
Property Value
Services
The service collection.
public IServiceCollection Services { get; }