Compartir a través de


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions> Constructores

Definición

Sobrecargas

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptions<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)

Inicializa una nueva instancia.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)
Obsoletos.

Inicializa una nueva instancia.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>, ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount,TProviderOptions>>)

Inicializa una nueva instancia.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptions<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)

Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs

Inicializa una nueva instancia.

public:
 RemoteAuthenticationService(Microsoft::JSInterop::IJSRuntime ^ jsRuntime, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationOptions<TProviderOptions> ^> ^ options, Microsoft::AspNetCore::Components::NavigationManager ^ navigation, Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccountClaimsPrincipalFactory<TAccount> ^ accountClaimsPrincipalFactory);
public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
Public Sub New (jsRuntime As IJSRuntime, options As IOptions(Of RemoteAuthenticationOptions(Of TProviderOptions)), navigation As NavigationManager, accountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of TAccount))

Parámetros

jsRuntime
IJSRuntime

que IJSRuntime se va a usar para realizar operaciones de interoperabilidad de JavaScript.

options
IOptions<RemoteAuthenticationOptions<TProviderOptions>>

Las opciones que se van a pasar a la biblioteca de JavaScript subyacente que controla las operaciones de autenticación.

navigation
NavigationManager

que NavigationManager se usa para generar direcciones URL.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

AccountClaimsPrincipalFactory<TAccount> que se usa para generar el ClaimsPrincipal objeto para el usuario.

Se aplica a

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)

Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs

Precaución

Use the constructor RemoteAuthenticationService(IJSRuntime,IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>,NavigationManager,AccountClaimsPrincipalFactory<TAccount>,ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>) instead.

Inicializa una nueva instancia.

public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory);
[System.Obsolete("Use the constructor RemoteAuthenticationService(IJSRuntime,IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>,NavigationManager,AccountClaimsPrincipalFactory<TAccount>,ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>) instead.")]
public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
[<System.Obsolete("Use the constructor RemoteAuthenticationService(IJSRuntime,IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>,NavigationManager,AccountClaimsPrincipalFactory<TAccount>,ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount, TProviderOptions>>) instead.")>]
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
Public Sub New (jsRuntime As IJSRuntime, options As IOptionsSnapshot(Of RemoteAuthenticationOptions(Of TProviderOptions)), navigation As NavigationManager, accountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of TAccount))

Parámetros

jsRuntime
IJSRuntime

que IJSRuntime se va a usar para realizar operaciones de interoperabilidad de JavaScript.

options
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>

Las opciones que se van a pasar a la biblioteca de JavaScript subyacente que controla las operaciones de autenticación.

navigation
NavigationManager

que NavigationManager se usa para generar direcciones URL.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

AccountClaimsPrincipalFactory<TAccount> que se usa para generar el ClaimsPrincipal objeto para el usuario.

Atributos

Se aplica a

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>, ILogger<RemoteAuthenticationService<TRemoteAuthenticationState, TAccount,TProviderOptions>>)

Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs

Inicializa una nueva instancia.

public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>> logger);
public RemoteAuthenticationService (Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<TProviderOptions>> options, Microsoft.AspNetCore.Components.NavigationManager navigation, Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<TAccount> accountClaimsPrincipalFactory, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>>? logger);
new Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))> : Microsoft.JSInterop.IJSRuntime * Microsoft.Extensions.Options.IOptionsSnapshot<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<'ProviderOptions>> * Microsoft.AspNetCore.Components.NavigationManager * Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccountClaimsPrincipalFactory<'Account (requires 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions>> -> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<'RemoteAuthenticationState, 'Account, 'ProviderOptions (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount and 'ProviderOptions : (new : unit -> 'ProviderOptions))>
Public Sub New (jsRuntime As IJSRuntime, options As IOptionsSnapshot(Of RemoteAuthenticationOptions(Of TProviderOptions)), navigation As NavigationManager, accountClaimsPrincipalFactory As AccountClaimsPrincipalFactory(Of TAccount), logger As ILogger(Of RemoteAuthenticationService(Of TRemoteAuthenticationState, TAccount, TProviderOptions)))

Parámetros

jsRuntime
IJSRuntime

que IJSRuntime se va a usar para realizar operaciones de interoperabilidad de JavaScript.

options
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>

Las opciones que se van a pasar a la biblioteca de JavaScript subyacente que controla las operaciones de autenticación.

navigation
NavigationManager

que NavigationManager se usa para generar direcciones URL.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

AccountClaimsPrincipalFactory<TAccount> que se usa para generar el ClaimsPrincipal objeto para el usuario.

logger
ILogger<RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>>

Registrador que se va a usar para las operaciones de autenticación de inicio de sesión.

Se aplica a