Class AuthorizationPolicyProvider
public class AuthorizationPolicyProvider : DefaultAuthorizationPolicyProvider
- Inheritance
-
AuthorizationPolicyProvider
Constructors
AuthorizationPolicyProvider(IOptions<AuthorizationOptions>)
public AuthorizationPolicyProvider(IOptions<AuthorizationOptions> options)
Parameters
options
IOptions<AuthorizationOptions>
Methods
GetPolicyAsync(string)
Gets a AuthorizationPolicy from the given policyName
public override Task<AuthorizationPolicy> GetPolicyAsync(string policyName)
Parameters
policyName
stringThe policy name to retrieve.
Returns
- Task<AuthorizationPolicy>
The named AuthorizationPolicy.