AuthenticationBuilder AuthenticationBuilder AuthenticationBuilder Class

Definition

Used to configure authentication

public class AuthenticationBuilder
type AuthenticationBuilder = class
Public Class AuthenticationBuilder
Inheritance
AuthenticationBuilderAuthenticationBuilderAuthenticationBuilder

Constructors

AuthenticationBuilder(IServiceCollection) AuthenticationBuilder(IServiceCollection) AuthenticationBuilder(IServiceCollection)

Constructor.

Properties

Services Services Services

The services being configured.

Methods

AddPolicyScheme(String, String, Action<PolicySchemeOptions>) AddPolicyScheme(String, String, Action<PolicySchemeOptions>) AddPolicyScheme(String, String, Action<PolicySchemeOptions>)

Adds a PolicySchemeHandler based authentication handler which can be used to redirect to other authentication schemes.

AddRemoteScheme<TOptions,THandler>(String, String, Action<TOptions>) AddRemoteScheme<TOptions,THandler>(String, String, Action<TOptions>) AddRemoteScheme<TOptions,THandler>(String, String, Action<TOptions>)

Adds a RemoteAuthenticationHandler<TOptions> based AuthenticationScheme that supports remote authentication which can be used by IAuthenticationService.

AddScheme<TOptions,THandler>(String, Action<TOptions>) AddScheme<TOptions,THandler>(String, Action<TOptions>) AddScheme<TOptions,THandler>(String, Action<TOptions>)

Adds a AuthenticationScheme which can be used by IAuthenticationService.

AddScheme<TOptions,THandler>(String, String, Action<TOptions>) AddScheme<TOptions,THandler>(String, String, Action<TOptions>) AddScheme<TOptions,THandler>(String, String, Action<TOptions>)

Adds a AuthenticationScheme which can be used by IAuthenticationService.

Extension Methods

AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>) AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>) AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>)

Adds Azure Active Directory Authentication to your application.

AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>) AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>) AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>)

Adds Azure Active Directory Authentication to your application.

AddAzureADBearer(AuthenticationBuilder, Action<AzureADOptions>) AddAzureADBearer(AuthenticationBuilder, Action<AzureADOptions>) AddAzureADBearer(AuthenticationBuilder, Action<AzureADOptions>)

Adds JWT Bearer authentication to your app for Azure Active Directory Applications.

AddAzureADBearer(AuthenticationBuilder, String, String, Action<AzureADOptions>) AddAzureADBearer(AuthenticationBuilder, String, String, Action<AzureADOptions>) AddAzureADBearer(AuthenticationBuilder, String, String, Action<AzureADOptions>)

Adds JWT Bearer authentication to your app for Azure Active Directory Applications.

AddAzureADB2C(AuthenticationBuilder, Action<AzureADB2COptions>) AddAzureADB2C(AuthenticationBuilder, Action<AzureADB2COptions>) AddAzureADB2C(AuthenticationBuilder, Action<AzureADB2COptions>)

Adds Azure Active Directory B2C Authentication to your application.

AddAzureADB2C(AuthenticationBuilder, String, String, String, String, Action<AzureADB2COptions>) AddAzureADB2C(AuthenticationBuilder, String, String, String, String, Action<AzureADB2COptions>) AddAzureADB2C(AuthenticationBuilder, String, String, String, String, Action<AzureADB2COptions>)

Adds Azure Active Directory B2C Authentication to your application.

AddAzureADB2CBearer(AuthenticationBuilder, Action<AzureADB2COptions>) AddAzureADB2CBearer(AuthenticationBuilder, Action<AzureADB2COptions>) AddAzureADB2CBearer(AuthenticationBuilder, Action<AzureADB2COptions>)

Adds JWT Bearer authentication to your app for Azure AD B2C Applications.

AddAzureADB2CBearer(AuthenticationBuilder, String, String, Action<AzureADB2COptions>) AddAzureADB2CBearer(AuthenticationBuilder, String, String, Action<AzureADB2COptions>) AddAzureADB2CBearer(AuthenticationBuilder, String, String, Action<AzureADB2COptions>)

Adds JWT Bearer authentication to your app for Azure AD B2C Applications.

AddApplicationCookie(AuthenticationBuilder) AddApplicationCookie(AuthenticationBuilder) AddApplicationCookie(AuthenticationBuilder)

Adds the identity application cookie.

AddExternalCookie(AuthenticationBuilder) AddExternalCookie(AuthenticationBuilder) AddExternalCookie(AuthenticationBuilder)

Adds the identity cookie used for external logins.

AddIdentityCookies(AuthenticationBuilder) AddIdentityCookies(AuthenticationBuilder) AddIdentityCookies(AuthenticationBuilder)

Adds cookie authentication.

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>) AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>) AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

Adds the cookie authentication needed for sign in manager.

AddTwoFactorRememberMeCookie(AuthenticationBuilder) AddTwoFactorRememberMeCookie(AuthenticationBuilder) AddTwoFactorRememberMeCookie(AuthenticationBuilder)

Adds the identity cookie used for two factor remember me.

AddTwoFactorUserIdCookie(AuthenticationBuilder) AddTwoFactorUserIdCookie(AuthenticationBuilder) AddTwoFactorUserIdCookie(AuthenticationBuilder)

Adds the identity cookie used for two factor logins.

AddCookie(AuthenticationBuilder) AddCookie(AuthenticationBuilder) AddCookie(AuthenticationBuilder)
AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>) AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>) AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)
AddCookie(AuthenticationBuilder, String) AddCookie(AuthenticationBuilder, String) AddCookie(AuthenticationBuilder, String)
AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>) AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>) AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)
AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>) AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>) AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)
AddFacebook(AuthenticationBuilder) AddFacebook(AuthenticationBuilder) AddFacebook(AuthenticationBuilder)
AddFacebook(AuthenticationBuilder, Action<FacebookOptions>) AddFacebook(AuthenticationBuilder, Action<FacebookOptions>) AddFacebook(AuthenticationBuilder, Action<FacebookOptions>)
AddFacebook(AuthenticationBuilder, String, Action<FacebookOptions>) AddFacebook(AuthenticationBuilder, String, Action<FacebookOptions>) AddFacebook(AuthenticationBuilder, String, Action<FacebookOptions>)
AddFacebook(AuthenticationBuilder, String, String, Action<FacebookOptions>) AddFacebook(AuthenticationBuilder, String, String, Action<FacebookOptions>) AddFacebook(AuthenticationBuilder, String, String, Action<FacebookOptions>)
AddGoogle(AuthenticationBuilder) AddGoogle(AuthenticationBuilder) AddGoogle(AuthenticationBuilder)
AddGoogle(AuthenticationBuilder, Action<GoogleOptions>) AddGoogle(AuthenticationBuilder, Action<GoogleOptions>) AddGoogle(AuthenticationBuilder, Action<GoogleOptions>)
AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>) AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>) AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>)
AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>) AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>) AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>)
AddJwtBearer(AuthenticationBuilder) AddJwtBearer(AuthenticationBuilder) AddJwtBearer(AuthenticationBuilder)
AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>) AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>) AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)
AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>) AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>) AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)
AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>) AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>) AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)
AddMicrosoftAccount(AuthenticationBuilder) AddMicrosoftAccount(AuthenticationBuilder) AddMicrosoftAccount(AuthenticationBuilder)
AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>) AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>) AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)
AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>) AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>) AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)
AddMicrosoftAccount(AuthenticationBuilder, String, String, Action<MicrosoftAccountOptions>) AddMicrosoftAccount(AuthenticationBuilder, String, String, Action<MicrosoftAccountOptions>) AddMicrosoftAccount(AuthenticationBuilder, String, String, Action<MicrosoftAccountOptions>)
AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>) AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>) AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)
AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>) AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>) AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)
AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>) AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>) AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)
AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>) AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>) AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)
AddOpenIdConnect(AuthenticationBuilder) AddOpenIdConnect(AuthenticationBuilder) AddOpenIdConnect(AuthenticationBuilder)
AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>) AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>) AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)
AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>) AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>) AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)
AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>) AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>) AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)
AddTwitter(AuthenticationBuilder) AddTwitter(AuthenticationBuilder) AddTwitter(AuthenticationBuilder)
AddTwitter(AuthenticationBuilder, Action<TwitterOptions>) AddTwitter(AuthenticationBuilder, Action<TwitterOptions>) AddTwitter(AuthenticationBuilder, Action<TwitterOptions>)
AddTwitter(AuthenticationBuilder, String, Action<TwitterOptions>) AddTwitter(AuthenticationBuilder, String, Action<TwitterOptions>) AddTwitter(AuthenticationBuilder, String, Action<TwitterOptions>)
AddTwitter(AuthenticationBuilder, String, String, Action<TwitterOptions>) AddTwitter(AuthenticationBuilder, String, String, Action<TwitterOptions>) AddTwitter(AuthenticationBuilder, String, String, Action<TwitterOptions>)
AddWsFederation(AuthenticationBuilder) AddWsFederation(AuthenticationBuilder) AddWsFederation(AuthenticationBuilder)

Registers the WsFederationHandler using the default authentication scheme, display name, and options.

AddWsFederation(AuthenticationBuilder, Action<WsFederationOptions>) AddWsFederation(AuthenticationBuilder, Action<WsFederationOptions>) AddWsFederation(AuthenticationBuilder, Action<WsFederationOptions>)

Registers the WsFederationHandler using the default authentication scheme, display name, and the given options configuration.

AddWsFederation(AuthenticationBuilder, String, Action<WsFederationOptions>) AddWsFederation(AuthenticationBuilder, String, Action<WsFederationOptions>) AddWsFederation(AuthenticationBuilder, String, Action<WsFederationOptions>)

Registers the WsFederationHandler using the given authentication scheme, default display name, and the given options configuration.

AddWsFederation(AuthenticationBuilder, String, String, Action<WsFederationOptions>) AddWsFederation(AuthenticationBuilder, String, String, Action<WsFederationOptions>) AddWsFederation(AuthenticationBuilder, String, String, Action<WsFederationOptions>)

Registers the WsFederationHandler using the given authentication scheme, display name, and options configuration.

Applies to