DefaultAuthorizationPolicyProvider Class

Definition

The default implementation of a policy provider, which provides a AuthorizationPolicy for a particular name.

public ref class DefaultAuthorizationPolicyProvider : Microsoft::AspNetCore::Authorization::IAuthorizationPolicyProvider
public class DefaultAuthorizationPolicyProvider : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider
type DefaultAuthorizationPolicyProvider = class
    interface IAuthorizationPolicyProvider
Public Class DefaultAuthorizationPolicyProvider
Implements IAuthorizationPolicyProvider
Inheritance
DefaultAuthorizationPolicyProvider
Implements

Constructors

DefaultAuthorizationPolicyProvider(IOptions<AuthorizationOptions>)

Creates a new instance of DefaultAuthorizationPolicyProvider.

Properties

AllowsCachingPolicies

Determines if policies from this provider can be cached, which is true only for this type.

Methods

GetDefaultPolicyAsync()

Gets the default authorization policy.

GetFallbackPolicyAsync()

Gets the fallback authorization policy.

GetPolicyAsync(String)

Gets a AuthorizationPolicy from the given policyName

Applies to