Udostępnij za pośrednictwem


ScopeAuthorizationRequirement Class

Definition

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 : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement
type ScopeAuthorizationRequirement = class
    interface IAuthorizationRequirement
Public Class ScopeAuthorizationRequirement
Implements IAuthorizationRequirement
Inheritance
ScopeAuthorizationRequirement
Implements

Constructors

ScopeAuthorizationRequirement(IEnumerable<String>)

Creates a new instance of ScopeAuthorizationRequirement.

Properties

AllowedValues

Gets the optional list of scope values.

RequiredScopesConfigurationKey

Gets the optional list of scope values from configuration.

Methods

ToString()

Returns a string that represents the current object.

Applies to