Share via


RequiredScopeOrAppPermissionAttribute.RequiredAppPermissionsConfigurationKey Property

Definition

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")]

Applies to