Language

RequiredScopeAttribute.RequiredScopesConfigurationKey プロパティ

定義

必要なスコープを含む構成キーの完全修飾名 (スペースで区切ります)。

public string? RequiredScopesConfigurationKey { get; set; }
member this.RequiredScopesConfigurationKey : string with get, set
Public Property RequiredScopesConfigurationKey As String

プロパティ値

例

appsettings.json ファイルに "AzureAd" という名前のセクションが含まれている場合、"Scopes" という名前のプロパティに必要なスコープが含まれている場合は、保護するコントローラー/ページ/アクションの属性を次のように設定する必要があります。

[RequiredScope(RequiredScopesConfigurationKey="AzureAd:Scopes")]

適用対象