WebAssemblyAuthenticationServiceCollectionExtensions.AddRemoteAuthentication Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection) |
Agrega compatibilidad con la autenticación para aplicaciones SPA mediante las especificadas |
| AddRemoteAuthentication<TRemoteAuthenticationState,TAccount,TProviderOptions>(IServiceCollection, Action<RemoteAuthenticationOptions<TProviderOptions>>) |
Agrega compatibilidad con la autenticación para aplicaciones SPA mediante las especificadas |
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
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.
- configure
- Action<RemoteAuthenticationOptions<TProviderOptions>>
Acción que configurará .RemoteAuthenticationOptions<TRemoteAuthenticationProviderOptions>
Devoluciones
donde IServiceCollection se registraron los servicios.