MicrosoftIdentityWebApiServiceCollectionExtensions クラス

定義

Web API のスタートアップ初期化用の IServiceCollection の拡張機能。

public static class MicrosoftIdentityWebApiServiceCollectionExtensions
type MicrosoftIdentityWebApiServiceCollectionExtensions = class
Public Module MicrosoftIdentityWebApiServiceCollectionExtensions
継承
MicrosoftIdentityWebApiServiceCollectionExtensions

メソッド

名前 説明
AddMicrosoftIdentityWebApiAuthentication(IServiceCollection, IConfiguration, String, String, Boolean)

Microsoft ID プラットフォーム (以前の ad v2.0 Azure) を使用して Web API を保護します。このメソッドでは、構成ファイルに既定として "AzureAd" という名前のセクションがあり、認証オプションを初期化するために必要な設定が含まれていると想定しています。

適用対象