Table of Contents

Class ScopeAuthorizationRequirement

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 ScopeAuthorizationRequirement : IAuthorizationRequirement
Inheritance
ScopeAuthorizationRequirement
Implements
Inherited Members

Constructors

ScopeAuthorizationRequirement(IEnumerable<string>?)

Creates a new instance of ScopeAuthorizationRequirement.

public ScopeAuthorizationRequirement(IEnumerable<string>? allowedValues = null)

Parameters

allowedValues IEnumerable<string>

The optional list of scope values.

Properties

AllowedValues

Gets the optional list of scope values.

public IEnumerable<string>? AllowedValues { get; }

Property Value

IEnumerable<string>

RequiredScopesConfigurationKey

Gets the optional list of scope values from configuration.

public string? RequiredScopesConfigurationKey { get; set; }

Property Value

string

Methods

ToString()

public override string ToString()

Returns

string