Table of Contents

Interface IAuthRequiredScopeOrAppPermissionMetadata

Namespace
Microsoft.Identity.Web
Assembly
Microsoft.Identity.Web.dll

This is the metadata that describes required auth scopes or app permissions for a given endpoint in a web API. It's the underlying data structure the requirement ScopeOrAppPermissionAuthorizationRequirement will look for in order to validate scopes in the scope claims or app permissions in the roles claim.

public interface IAuthRequiredScopeOrAppPermissionMetadata

Properties

AcceptedAppPermission

App permissions accepted by this web API. App permissions appear in the roles claim of the token.

string[]? AcceptedAppPermission { get; }

Property Value

string[]

AcceptedScope

Scopes accepted by this web API.

string[]? AcceptedScope { get; }

Property Value

string[]

RequiredAppPermissionsConfigurationKey

Fully qualified name of the configuration key containing the required app permissions (separated by spaces).

string? RequiredAppPermissionsConfigurationKey { get; }

Property Value

string

RequiredScopesConfigurationKey

Fully qualified name of the configuration key containing the required scopes (separated by spaces).

string? RequiredScopesConfigurationKey { get; }

Property Value

string