Class Auth0WebAppAuthenticationBuilder
- Namespace
- Auth0.AspNetCore.Authentication
- Assembly
- Auth0.AspNetCore.Authentication.dll
Builder to add functionality on top of OpenId Connect authentication.
public class Auth0WebAppAuthenticationBuilder
- Inheritance
-
Auth0WebAppAuthenticationBuilder
- Inherited Members
Constructors
Auth0WebAppAuthenticationBuilder(IServiceCollection, Auth0WebAppOptions)
Constructs an instance of Auth0WebAppAuthenticationBuilder
public Auth0WebAppAuthenticationBuilder(IServiceCollection services, Auth0WebAppOptions options)
Parameters
services
IServiceCollectionThe original IServiceCollection instance
options
Auth0WebAppOptionsThe Auth0WebAppOptions used when calling AddAuth0WebAppAuthentication.
Auth0WebAppAuthenticationBuilder(IServiceCollection, string, Auth0WebAppOptions)
Constructs an instance of Auth0WebAppAuthenticationBuilder
public Auth0WebAppAuthenticationBuilder(IServiceCollection services, string authenticationScheme, Auth0WebAppOptions options)
Parameters
services
IServiceCollectionThe original IServiceCollection instance
authenticationScheme
stringThe authentication scheme to use.
options
Auth0WebAppOptionsThe Auth0WebAppOptions used when calling AddAuth0WebAppAuthentication.
Methods
WithAccessToken(Action<Auth0WebAppWithAccessTokenOptions>)
Configures the use of Access Tokens
public Auth0WebAppAuthenticationBuilder WithAccessToken(Action<Auth0WebAppWithAccessTokenOptions> configureOptions)
Parameters
configureOptions
Action<Auth0WebAppWithAccessTokenOptions>A delegate used to configure the Auth0WebAppWithAccessTokenOptions
Returns
- Auth0WebAppAuthenticationBuilder
An instance of Auth0WebAppAuthenticationBuilder
WithBackchannelLogout()
Configures the use of Access Tokens
public Auth0WebAppAuthenticationBuilder WithBackchannelLogout()
Returns
- Auth0WebAppAuthenticationBuilder
An instance of Auth0WebAppAuthenticationBuilder