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