AuthenticationServiceCollectionExtensions Class

Definition

Extension methods for setting up authentication services in an IServiceCollection.

public static class AuthenticationServiceCollectionExtensions
type AuthenticationServiceCollectionExtensions = class
Public Module AuthenticationServiceCollectionExtensions
Inheritance
AuthenticationServiceCollectionExtensions

Methods

AddAuthentication(IServiceCollection)

Registers services required by authentication services.

AddAuthentication(IServiceCollection, Action<AuthenticationOptions>)

Registers services required by authentication services and configures AuthenticationOptions.

AddAuthentication(IServiceCollection, Action<SharedAuthenticationOptions>)
AddAuthentication(IServiceCollection, String)

Registers services required by authentication services. defaultScheme specifies the name of the scheme to use by default when a specific scheme isn't requested.

AddRemoteScheme<TOptions,THandler>(IServiceCollection, String, String, Action<TOptions>)
AddScheme<TOptions,THandler>(IServiceCollection, String, Action<TOptions>)
AddScheme<TOptions,THandler>(IServiceCollection, String, String, Action<AuthenticationSchemeBuilder>, Action<TOptions>)
AddScheme<TOptions,THandler>(IServiceCollection, String, String, Action<TOptions>)

Applies to