WebAssemblyAuthenticationServiceCollectionExtensions.AddRemoteAuthentication Método

Definición

Sobrecargas

AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection)

Agrega compatibilidad con la autenticación para aplicaciones SPA mediante las especificadas TProviderOptions y TRemoteAuthenticationState.

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

Agrega compatibilidad con la autenticación para aplicaciones SPA mediante las especificadas TProviderOptions y TRemoteAuthenticationState.

AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection)

Agrega compatibilidad con la autenticación para aplicaciones SPA mediante las especificadas TProviderOptions y 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)

Parámetros de tipo

TRemoteAuthenticationState

Estado que se va a conservar en las operaciones de autenticación.

TAccount

Tipo de cuenta.

TProviderOptions

Las opciones de configuración del proveedor subyacente que se usan para controlar las operaciones de autenticación.

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>

donde IServiceCollection se registraron los servicios.

Se aplica a

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

Agrega compatibilidad con la autenticación para aplicaciones SPA mediante las especificadas TProviderOptions y 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)

Parámetros de tipo

TRemoteAuthenticationState

Estado que se va a conservar en las operaciones de autenticación.

TAccount

Tipo de cuenta.

TProviderOptions

Las opciones de configuración del proveedor subyacente que se usan para controlar las operaciones de autenticación.

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount>

donde IServiceCollection se registraron los servicios.

Se aplica a