Partager via


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions> Constructeurs

Définition

Surcharges

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

Initialise une nouvelle instance.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount, TProviderOptions>(IJSRuntime, IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>, NavigationManager, AccountClaimsPrincipalFactory<TAccount>)
Obsolète.

Initialise une nouvelle instance.

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

Initialise une nouvelle instance.

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

Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs

Initialise une nouvelle instance.

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))

Paramètres

jsRuntime
IJSRuntime

IJSRuntime à utiliser pour effectuer des opérations d’interopérabilité JavaScript.

options
IOptions<RemoteAuthenticationOptions<TProviderOptions>>

Options à transmettre à la bibliothèque JavaScript sous-jacente qui gère les opérations d’authentification.

navigation
NavigationManager

NavigationManager utilisé pour générer des URL.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

AccountClaimsPrincipalFactory<TAccount> utilisé pour générer le ClaimsPrincipal pour l’utilisateur.

S’applique à

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

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

Attention

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

Initialise une nouvelle instance.

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))

Paramètres

jsRuntime
IJSRuntime

IJSRuntime à utiliser pour effectuer des opérations d’interopérabilité JavaScript.

options
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>

Options à transmettre à la bibliothèque JavaScript sous-jacente qui gère les opérations d’authentification.

navigation
NavigationManager

NavigationManager utilisé pour générer des URL.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

AccountClaimsPrincipalFactory<TAccount> utilisé pour générer le ClaimsPrincipal pour l’utilisateur.

Attributs

S’applique à

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

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

Initialise une nouvelle instance.

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)))

Paramètres

jsRuntime
IJSRuntime

IJSRuntime à utiliser pour effectuer des opérations d’interopérabilité JavaScript.

options
IOptionsSnapshot<RemoteAuthenticationOptions<TProviderOptions>>

Options à transmettre à la bibliothèque JavaScript sous-jacente qui gère les opérations d’authentification.

navigation
NavigationManager

NavigationManager utilisé pour générer des URL.

accountClaimsPrincipalFactory
AccountClaimsPrincipalFactory<TAccount>

AccountClaimsPrincipalFactory<TAccount> utilisé pour générer le ClaimsPrincipal pour l’utilisateur.

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

Enregistreur d’événements à utiliser pour les opérations d’authentification de connexion.

S’applique à