MicrosoftIdentityWebAppServiceCollectionExtensions.AddMicrosoftIdentityWebAppAuthentication メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Microsoft ID プラットフォームを使用して認証を追加します。 この方法では、認証オプションを初期化するために必要な設定を含むセクション (既定では "AzureAd" という名前) が構成ファイルに含まれると想定しています。
public static Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration AddMicrosoftIdentityWebAppAuthentication(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration configuration, string configSectionName = "AzureAd", string openIdConnectScheme = "OpenIdConnect", string cookieScheme = "Cookies", bool subscribeToOpenIdConnectMiddlewareDiagnosticsEvents = false, string? displayName = default);
static member AddMicrosoftIdentityWebAppAuthentication : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration * string * string * string * bool * string -> Microsoft.Identity.Web.MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration
<Extension()>
Public Function AddMicrosoftIdentityWebAppAuthentication (services As IServiceCollection, 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
パラメーター
- services
- IServiceCollection
認証を追加するサービス コレクション。
- configuration
- IConfiguration
IConfiguration オブジェクト。
- configSectionName
- String
認証オプションを初期化するために必要な設定を含む構成セクションの名前。
- openIdConnectScheme
- String
open id connect 認証スキームの省略可能な名前 (既定では OpenIdConnectDefaults.AuthenticationScheme)。 これは、複数の OpenIdConnect ID プロバイダーをサポートする場合に指定できます。
- cookieScheme
- String
Cookie 認証スキームの省略可能な名前 (既定では CookieAuthenticationDefaults.AuthenticationScheme)。
- subscribeToOpenIdConnectMiddlewareDiagnosticsEvents
- Boolean
デバッグする場合は true に設定するか、OpenIdConnect イベントを理解します。
- displayName
- String
認証ハンドラーの表示名。
返品
拡張メソッドをチェーンするための認証ビルダー。