WebAssemblyAuthenticationServiceCollectionExtensions.AddRemoteAuthentication Metoda

Definice

Přetížení

AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection)

Přidává podporu pro ověřování pro aplikace SPA pomocí daného TProviderOptions a TRemoteAuthenticationState.

AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection, Action<RemoteAuthenticationOptions<TProviderOptions>>)

Přidává podporu pro ověřování pro aplikace SPA pomocí daného TProviderOptions a TRemoteAuthenticationState.

AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection)

Přidává podporu pro ověřování pro aplikace SPA pomocí daného TProviderOptions a TRemoteAuthenticationState.

public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TRemoteAuthenticationState : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState where TAccount : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount where TProviderOptions : class, new();
static member AddRemoteAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, 'Account (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : null and 'ProviderOptions : (new : unit -> 'ProviderOptions))
<Extension()>
Public Function AddRemoteAuthentication(Of TRemoteAuthenticationState As RemoteAuthenticationState, TAccount As RemoteAuthenticationState, TProviderOptions As RemoteAuthenticationState) (services As IServiceCollection) As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, TAccount)

Parametry typu

TRemoteAuthenticationState

Stav, který se má zachovat napříč operacemi ověřování.

TAccount

Typ účtu.

TProviderOptions

Možnosti konfigurace podkladového poskytovatele, který se používá ke zpracování operací ověřování.

Parametry

services
IServiceCollection

Přidání IServiceCollection služeb do.

Návraty

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>

Kde IServiceCollection byly služby zaregistrovány.

Platí pro

AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection, Action<RemoteAuthenticationOptions<TProviderOptions>>)

Přidává podporu pro ověřování pro aplikace SPA pomocí daného TProviderOptions a TRemoteAuthenticationState.

public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> configure) where TRemoteAuthenticationState : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState where TAccount : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount where TProviderOptions : class, new();
static member AddRemoteAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, 'Account (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : null and 'ProviderOptions : (new : unit -> 'ProviderOptions))
<Extension()>
Public Function AddRemoteAuthentication(Of TRemoteAuthenticationState As RemoteAuthenticationState, TAccount As RemoteAuthenticationState, TProviderOptions As RemoteAuthenticationState) (services As IServiceCollection, configure As Action(Of RemoteAuthenticationOptions(Of TProviderOptions))) As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, TAccount)

Parametry typu

TRemoteAuthenticationState

Stav, který se má zachovat napříč operacemi ověřování.

TAccount

Typ účtu.

TProviderOptions

Možnosti konfigurace podkladového poskytovatele, který se používá ke zpracování operací ověřování.

Parametry

services
IServiceCollection

Přidání IServiceCollection služeb do.

Návraty

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>

Kde IServiceCollection byly služby zaregistrovány.

Platí pro