Class ScopeAuthorizationRequirement
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
RequiredScopesConfigurationKey
Gets the optional list of scope values from configuration.
public string? RequiredScopesConfigurationKey { get; set; }
Property Value
Methods
ToString()
public override string ToString()