DefaultAuthorizationPolicyProvider Class

Definition

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

C#
public class DefaultAuthorizationPolicyProvider : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider
Inheritance
DefaultAuthorizationPolicyProvider
Implements

Constructors

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

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0