RequiredScopeOrAppPermissionAttribute.RequiredAppPermissionsConfigurationKey Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fully qualified name of the configuration key containing the required app permissions (separated by spaces).
public string? RequiredAppPermissionsConfigurationKey { get; set; }
member this.RequiredAppPermissionsConfigurationKey : string with get, set
Public Property RequiredAppPermissionsConfigurationKey As String
Property Value
Examples
If the appsettings.json file contains a section named "AzureAd", in which a property named "AppPermissions" contains the required app permissions, the attribute on the controller/page/action to protect should be set to the following:
[RequiredScopeOrAppPermission(RequiredAppPermissionsConfigurationKey="AzureAd:AppPermissions")]