AuthenticationCoreServiceCollectionExtensions.AddAuthenticationCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAuthenticationCore(IServiceCollection) |
Add core authentication services needed for IAuthenticationService. |
AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>) |
Add core authentication services needed for IAuthenticationService. |
AddAuthenticationCore(IServiceCollection)
Add core authentication services needed for IAuthenticationService.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthenticationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationCore (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection.
Returns
The service collection.
Applies to
AddAuthenticationCore(IServiceCollection, Action<AuthenticationOptions>)
Add core authentication services needed for IAuthenticationService.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> configureOptions);
static member AddAuthenticationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthenticationCore (services As IServiceCollection, configureOptions As Action(Of AuthenticationOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection.
- configureOptions
- Action<AuthenticationOptions>
Used to configure the AuthenticationOptions.
Returns
The service collection.