AuthenticationServiceCollectionExtensions.AddAuthentication Yöntem

Tanım

Aşırı Yüklemeler

AddAuthentication(IServiceCollection)

Kimlik doğrulama hizmetlerinin gerektirdiği hizmetleri kaydeder.

AddAuthentication(IServiceCollection, Action<AuthenticationOptions>)

Kimlik doğrulama hizmetleri için gereken hizmetleri kaydeder ve yapılandırılır AuthenticationOptions.

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

Kimlik doğrulama hizmetlerinin gerektirdiği hizmetleri kaydeder. defaultScheme , belirli bir düzen istenmezse varsayılan olarak kullanılacak düzenin adını belirtir.

AddAuthentication(IServiceCollection)

Kimlik doğrulama hizmetlerinin gerektirdiği hizmetleri kaydeder.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthentication (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
static member AddAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAuthentication (services As IServiceCollection) As IServiceCollection
<Extension()>
Public Function AddAuthentication (services As IServiceCollection) As AuthenticationBuilder

Parametreler

Döndürülenler

AuthenticationBuilder Kimlik doğrulamasını daha fazla yapılandırmak için kullanılabilecek bir.

Şunlara uygulanır

AddAuthentication(IServiceCollection, Action<AuthenticationOptions>)

Kimlik doğrulama hizmetleri için gereken hizmetleri kaydeder ve yapılandırılır AuthenticationOptions.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> configureOptions);
static member AddAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAuthentication (services As IServiceCollection, configureOptions As Action(Of AuthenticationOptions)) As AuthenticationBuilder

Parametreler

configureOptions
Action<AuthenticationOptions>

yapılandırmak AuthenticationOptionsiçin bir temsilci.

Döndürülenler

AuthenticationBuilder Kimlik doğrulamasını daha fazla yapılandırmak için kullanılabilecek bir.

Şunlara uygulanır

AddAuthentication(IServiceCollection, Action<SharedAuthenticationOptions>)

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthentication (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions> configureOptions);
static member AddAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthentication (services As IServiceCollection, configureOptions As Action(Of SharedAuthenticationOptions)) As IServiceCollection

Parametreler

Döndürülenler

Şunlara uygulanır

AddAuthentication(IServiceCollection, String)

Kimlik doğrulama hizmetlerinin gerektirdiği hizmetleri kaydeder. defaultScheme , belirli bir düzen istenmezse varsayılan olarak kullanılacak düzenin adını belirtir.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string defaultScheme);
static member AddAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddAuthentication (services As IServiceCollection, defaultScheme As String) As AuthenticationBuilder

Parametreler

defaultScheme
String

Diğer tüm düzenler için geri dönüş olarak kullanılan varsayılan düzen.

Döndürülenler

AuthenticationBuilder Kimlik doğrulamasını daha fazla yapılandırmak için kullanılabilecek bir.

Şunlara uygulanır