MicrosoftIdentityWebAppAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApp 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
| Nome | Descrizione |
|---|---|
| AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfigurationSection, String, String, Boolean, String) |
Aggiungere l'autenticazione con Microsoft Identity Platform. Questo metodo prevede che il file di configurazione abbia una sezione denominata "AzureAd" come predefinita, con le impostazioni necessarie per inizializzare le opzioni di autenticazione. |
| AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfiguration, String, String, String, Boolean, String) |
Aggiungere l'autenticazione a un'app Web con Microsoft Identity Platform. Questo metodo prevede che il file di configurazione abbia una sezione denominata "AzureAd" come predefinita, con le impostazioni necessarie per inizializzare le opzioni di autenticazione. |
| AddMicrosoftIdentityWebApp(AuthenticationBuilder, Action<MicrosoftIdentityOptions>, Action<CookieAuthenticationOptions>, String, String, Boolean, String) |
Aggiungere l'autenticazione con Microsoft Identity Platform. |
AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfigurationSection, String, String, Boolean, String)
Aggiungere l'autenticazione con Microsoft Identity Platform. Questo metodo prevede che il file di configurazione abbia una sezione denominata "AzureAd" come predefinita, con le impostazioni necessarie per inizializzare le opzioni di autenticazione.
public static Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration AddMicrosoftIdentityWebApp(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection configurationSection, string openIdConnectScheme = "OpenIdConnect", string? cookieScheme = "Cookies", bool subscribeToOpenIdConnectMiddlewareDiagnosticsEvents = false, string? displayName = default);
static member AddMicrosoftIdentityWebApp : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Microsoft.Extensions.Configuration.IConfigurationSection * string * string * bool * string -> Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration
<Extension()>
Public Function AddMicrosoftIdentityWebApp (builder As AuthenticationBuilder, configurationSection As IConfigurationSection, Optional openIdConnectScheme As String = "OpenIdConnect", Optional cookieScheme As String = "Cookies", Optional subscribeToOpenIdConnectMiddlewareDiagnosticsEvents As Boolean = false, Optional displayName As String = Nothing) As MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration
Parametri
- builder
- AuthenticationBuilder
Oggetto AuthenticationBuilder a cui aggiungere questa configurazione.
- configurationSection
- IConfigurationSection
Sezione di configurazione da cui ottenere le opzioni.
- openIdConnectScheme
- String
Nome dello schema OpenID Connect da usare. Per impostazione predefinita, usa "OpenIdConnect".
- cookieScheme
- String
Nome dello schema basato su cookie da usare. Per impostazione predefinita, usa "Cookies".
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
Impostare su true se si vuole eseguire il debug o solo comprendere gli eventi OpenID Connect.
- displayName
- String
Nome visualizzato per il gestore di autenticazione.
Valori restituiti
Generatore di autenticazione per il concatenamento.
Si applica a
AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfiguration, String, String, String, Boolean, String)
Aggiungere l'autenticazione a un'app Web con Microsoft Identity Platform. Questo metodo prevede che il file di configurazione abbia una sezione denominata "AzureAd" come predefinita, con le impostazioni necessarie per inizializzare le opzioni di autenticazione.
public static Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration AddMicrosoftIdentityWebApp(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration, string configSectionName = "AzureAd", string openIdConnectScheme = "OpenIdConnect", string? cookieScheme = "Cookies", bool subscribeToOpenIdConnectMiddlewareDiagnosticsEvents = false, string? displayName = default);
static member AddMicrosoftIdentityWebApp : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Microsoft.Extensions.Configuration.IConfiguration * string * string * string * bool * string -> Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration
<Extension()>
Public Function AddMicrosoftIdentityWebApp (builder As AuthenticationBuilder, configuration As IConfiguration, Optional configSectionName As String = "AzureAd", Optional openIdConnectScheme As String = "OpenIdConnect", Optional cookieScheme As String = "Cookies", Optional subscribeToOpenIdConnectMiddlewareDiagnosticsEvents As Boolean = false, Optional displayName As String = Nothing) As MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration
Parametri
- builder
- AuthenticationBuilder
Oggetto AuthenticationBuilder a cui aggiungere questa configurazione.
- configuration
- IConfiguration
Istanza di configurazione.
- configSectionName
- String
Sezione di configurazione con le impostazioni necessarie per inizializzare le opzioni di autenticazione.
- openIdConnectScheme
- String
Nome dello schema OpenID Connect da usare. Per impostazione predefinita, usa "OpenIdConnect".
- cookieScheme
- String
Nome dello schema basato su cookie da usare. Per impostazione predefinita, usa "Cookies".
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
Impostare su true se si vuole eseguire il debug o solo comprendere gli eventi OpenID Connect.
- displayName
- String
Nome visualizzato per il gestore di autenticazione.
Valori restituiti
Generatore MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration per il concatenamento.
Si applica a
AddMicrosoftIdentityWebApp(AuthenticationBuilder, Action<MicrosoftIdentityOptions>, Action<CookieAuthenticationOptions>, String, String, Boolean, String)
Aggiungere l'autenticazione con Microsoft Identity Platform.
public static Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilder AddMicrosoftIdentityWebApp(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.Identity.Web.MicrosoftIdentityOptions> configureMicrosoftIdentityOptions, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>? configureCookieAuthenticationOptions = default, string openIdConnectScheme = "OpenIdConnect", string? cookieScheme = "Cookies", bool subscribeToOpenIdConnectMiddlewareDiagnosticsEvents = false, string? displayName = default);
static member AddMicrosoftIdentityWebApp : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.Identity.Web.MicrosoftIdentityOptions> * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> * string * string * bool * string -> Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilder
<Extension()>
Public Function AddMicrosoftIdentityWebApp (builder As AuthenticationBuilder, configureMicrosoftIdentityOptions As Action(Of MicrosoftIdentityOptions), Optional configureCookieAuthenticationOptions As Action(Of CookieAuthenticationOptions) = Nothing, Optional openIdConnectScheme As String = "OpenIdConnect", Optional cookieScheme As String = "Cookies", Optional subscribeToOpenIdConnectMiddlewareDiagnosticsEvents As Boolean = false, Optional displayName As String = Nothing) As MicrosoftIdentityWebAppAuthenticationBuilder
Parametri
- builder
- AuthenticationBuilder
Oggetto AuthenticationBuilder a cui aggiungere questa configurazione.
- configureMicrosoftIdentityOptions
- Action<MicrosoftIdentityOptions>
Azione per configurare MicrosoftIdentityOptions.
- configureCookieAuthenticationOptions
- Action<CookieAuthenticationOptions>
Azione per configurare CookieAuthenticationOptions.
- openIdConnectScheme
- String
Nome dello schema OpenID Connect da usare. Per impostazione predefinita, usa "OpenIdConnect".
- cookieScheme
- String
Nome dello schema basato su cookie da usare. Per impostazione predefinita, usa "Cookies".
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
Impostare su true se si vuole eseguire il debug o solo comprendere gli eventi OpenID Connect.
- displayName
- String
Nome visualizzato per il gestore di autenticazione.
Valori restituiti
Generatore di autenticazione per il concatenamento.