WebAssemblyAuthenticationServiceCollectionExtensions.AddOidcAuthentication Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddOidcAuthentication(IServiceCollection, Action<RemoteAuthenticationOptions<OidcProviderOptions>>) |
Aggiunge il supporto per l'autenticazione per le applicazioni SPA che usano OidcProviderOptions e RemoteAuthenticationState. |
AddOidcAuthentication<TRemoteAuthenticationState,TAccount>(IServiceCollection, Action<RemoteAuthenticationOptions<OidcProviderOptions>>) |
Aggiunge il supporto per l'autenticazione per le applicazioni SPA che usano OidcProviderOptions e RemoteAuthenticationState. |
AddOidcAuthentication<TRemoteAuthenticationState>(IServiceCollection, Action<RemoteAuthenticationOptions<OidcProviderOptions>>) |
Aggiunge il supporto per l'autenticazione per le applicazioni SPA che usano OidcProviderOptions e RemoteAuthenticationState. |
AddOidcAuthentication(IServiceCollection, Action<RemoteAuthenticationOptions<OidcProviderOptions>>)
Aggiunge il supporto per l'autenticazione per le applicazioni SPA che usano OidcProviderOptions e RemoteAuthenticationState.
public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> AddOidcAuthentication (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions>> configure);
static member AddOidcAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions>> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount>
<Extension()>
Public Function AddOidcAuthentication (services As IServiceCollection, configure As Action(Of RemoteAuthenticationOptions(Of OidcProviderOptions))) As IRemoteAuthenticationBuilder(Of RemoteAuthenticationState, RemoteUserAccount)
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection in cui aggiungere i servizi.
- configure
- Action<RemoteAuthenticationOptions<OidcProviderOptions>>
Azione che configurerà l'oggetto RemoteAuthenticationOptions<TRemoteAuthenticationProviderOptions>.
Restituisce
Oggetto IServiceCollection in cui sono stati registrati i servizi.
Si applica a
AddOidcAuthentication<TRemoteAuthenticationState,TAccount>(IServiceCollection, Action<RemoteAuthenticationOptions<OidcProviderOptions>>)
Aggiunge il supporto per l'autenticazione per le applicazioni SPA che usano OidcProviderOptions e RemoteAuthenticationState.
public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,TAccount> AddOidcAuthentication<TRemoteAuthenticationState,TAccount> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions>> configure) where TRemoteAuthenticationState : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, new() where TAccount : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount;
static member AddOidcAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions>> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, 'Account (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState) and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)> (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState) and 'Account :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount)
<Extension()>
Public Function AddOidcAuthentication(Of TRemoteAuthenticationState As {RemoteAuthenticationStateNew}, TAccount As {RemoteAuthenticationStateNew}) (services As IServiceCollection, configure As Action(Of RemoteAuthenticationOptions(Of OidcProviderOptions))) As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, TAccount)
Parametri di tipo
- TRemoteAuthenticationState
Tipo dello stato di autenticazione remota.
- TAccount
Tipo di account.
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection in cui aggiungere i servizi.
- configure
- Action<RemoteAuthenticationOptions<OidcProviderOptions>>
Azione che configurerà l'oggetto RemoteAuthenticationOptions<TRemoteAuthenticationProviderOptions>.
Restituisce
Oggetto IServiceCollection in cui sono stati registrati i servizi.
Si applica a
AddOidcAuthentication<TRemoteAuthenticationState>(IServiceCollection, Action<RemoteAuthenticationOptions<OidcProviderOptions>>)
Aggiunge il supporto per l'autenticazione per le applicazioni SPA che usano OidcProviderOptions e RemoteAuthenticationState.
public static Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<TRemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount> AddOidcAuthentication<TRemoteAuthenticationState> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions>> configure) where TRemoteAuthenticationState : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, new();
static member AddOidcAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationOptions<Microsoft.AspNetCore.Components.WebAssembly.Authentication.OidcProviderOptions>> -> Microsoft.Extensions.DependencyInjection.IRemoteAuthenticationBuilder<'RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState))> (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState and 'RemoteAuthenticationState : (new : unit -> 'RemoteAuthenticationState))
<Extension()>
Public Function AddOidcAuthentication(Of TRemoteAuthenticationState As {RemoteAuthenticationStateNew}) (services As IServiceCollection, configure As Action(Of RemoteAuthenticationOptions(Of OidcProviderOptions))) As IRemoteAuthenticationBuilder(Of TRemoteAuthenticationState, RemoteUserAccount)
Parametri di tipo
- TRemoteAuthenticationState
Tipo dello stato di autenticazione remota.
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection in cui aggiungere i servizi.
- configure
- Action<RemoteAuthenticationOptions<OidcProviderOptions>>
Azione che configurerà l'oggetto RemoteAuthenticationOptions<TRemoteAuthenticationProviderOptions>.
Restituisce
Oggetto IServiceCollection in cui sono stati registrati i servizi.