Table of Contents

Class ScopeOrAppPermissionAuthorizationRequirement

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

Implements an IAuthorizationRequirement which requires at least one instance of the specified claim type, and, if allowed values are specified, the claim value must be any of the allowed values.

public class ScopeOrAppPermissionAuthorizationRequirement : IAuthorizationRequirement
Inheritance
ScopeOrAppPermissionAuthorizationRequirement
Implements
Inherited Members

Constructors

ScopeOrAppPermissionAuthorizationRequirement(IEnumerable<string>?, IEnumerable<string>?)

Creates a new instance of ScopeAuthorizationRequirement.

public ScopeOrAppPermissionAuthorizationRequirement(IEnumerable<string>? scopeAllowedValues = null, IEnumerable<string>? appPermissionAllowedValues = null)

Parameters

scopeAllowedValues IEnumerable<string>

The optional list of scope values.

appPermissionAllowedValues IEnumerable<string>

Properties

AppPermissionAllowedValues

Gets the optional list of app permission values.

public IEnumerable<string>? AppPermissionAllowedValues { get; }

Property Value

IEnumerable<string>

RequiredAppPermissionsConfigurationKey

Gets the optional list of app permission values from configuration.

public string? RequiredAppPermissionsConfigurationKey { get; set; }

Property Value

string

RequiredScopesConfigurationKey

Gets the optional list of scope values from configuration.

public string? RequiredScopesConfigurationKey { get; set; }

Property Value

string

ScopeAllowedValues

Gets the optional list of scope values.

public IEnumerable<string>? ScopeAllowedValues { get; }

Property Value

IEnumerable<string>

Methods

ToString()

public override string ToString()

Returns

string