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