MicrosoftIdentityWebAppAuthenticationBuilderExtensions.AddMicrosoftIdentityWebApp メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfigurationSection, String, String, Boolean, String) |
Microsoft ID プラットフォームを使用して認証を追加します。 この方法では、構成ファイルに既定で "AzureAd" という名前のセクションがあり、認証オプションを初期化するために必要な設定が含まれている必要があります。 |
| AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfiguration, String, String, String, Boolean, String) |
Microsoft ID プラットフォームを使用して Web アプリに認証を追加します。 この方法では、構成ファイルに既定で "AzureAd" という名前のセクションがあり、認証オプションを初期化するために必要な設定が含まれている必要があります。 |
| AddMicrosoftIdentityWebApp(AuthenticationBuilder, Action<MicrosoftIdentityOptions>, Action<CookieAuthenticationOptions>, String, String, Boolean, String) |
Microsoft ID プラットフォームを使用して認証を追加します。 |
AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfigurationSection, String, String, Boolean, String)
Microsoft ID プラットフォームを使用して認証を追加します。 この方法では、構成ファイルに既定で "AzureAd" という名前のセクションがあり、認証オプションを初期化するために必要な設定が含まれている必要があります。
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
パラメーター
- builder
- AuthenticationBuilder
この構成を追加する AuthenticationBuilder 。
- configurationSection
- IConfigurationSection
オプションの取得元となる構成セクション。
- openIdConnectScheme
- String
使用する OpenID Connect スキーム名。 既定では、"OpenIdConnect" を使用します。
- cookieScheme
- String
使用する Cookie ベースのスキーム名。 既定では、"Cookie" が使用されます。
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
デバッグする場合は true に設定するか、OpenID Connect イベントを理解します。
- displayName
- String
認証ハンドラーの表示名。
返品
チェーン用の認証ビルダー。
適用対象
AddMicrosoftIdentityWebApp(AuthenticationBuilder, IConfiguration, String, String, String, Boolean, String)
Microsoft ID プラットフォームを使用して Web アプリに認証を追加します。 この方法では、構成ファイルに既定で "AzureAd" という名前のセクションがあり、認証オプションを初期化するために必要な設定が含まれている必要があります。
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
パラメーター
- builder
- AuthenticationBuilder
この構成を追加する AuthenticationBuilder 。
- configuration
- IConfiguration
構成インスタンス。
- configSectionName
- String
認証オプションを初期化するために必要な設定を含む構成セクション。
- openIdConnectScheme
- String
使用する OpenID Connect スキーム名。 既定では、"OpenIdConnect" を使用します。
- cookieScheme
- String
使用する Cookie ベースのスキーム名。 既定では、"Cookie" が使用されます。
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
デバッグする場合は true に設定するか、OpenID Connect イベントを理解します。
- displayName
- String
認証ハンドラーの表示名。
返品
チェーン用の MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration ビルダー。
適用対象
AddMicrosoftIdentityWebApp(AuthenticationBuilder, Action<MicrosoftIdentityOptions>, Action<CookieAuthenticationOptions>, String, String, Boolean, String)
Microsoft ID プラットフォームを使用して認証を追加します。
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
パラメーター
- builder
- AuthenticationBuilder
この構成を追加する AuthenticationBuilder 。
- configureMicrosoftIdentityOptions
- Action<MicrosoftIdentityOptions>
MicrosoftIdentityOptionsを構成するアクション。
- configureCookieAuthenticationOptions
- Action<CookieAuthenticationOptions>
CookieAuthenticationOptionsを構成するアクション。
- openIdConnectScheme
- String
使用する OpenID Connect スキーム名。 既定では、"OpenIdConnect" を使用します。
- cookieScheme
- String
使用する Cookie ベースのスキーム名。 既定では、"Cookie" が使用されます。
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
デバッグする場合は true に設定するか、OpenID Connect イベントを理解します。
- displayName
- String
認証ハンドラーの表示名。
返品
チェーン用の認証ビルダー。