Dela via


AuthorizationPolicy Class

Definition

Represents a collection of authorization requirements and the scheme or schemes they are evaluated against, all of which must succeed for authorization to succeed.

public ref class AuthorizationPolicy
public class AuthorizationPolicy
type AuthorizationPolicy = class
Public Class AuthorizationPolicy
Inheritance
AuthorizationPolicy

Constructors

AuthorizationPolicy(IEnumerable<IAuthorizationRequirement>, IEnumerable<String>)

Creates a new instance of AuthorizationPolicy.

Properties

AuthenticationSchemes

Gets a readonly list of the authentication schemes the Requirements are evaluated against.

Requirements

Gets a readonly list of IAuthorizationRequirements which must succeed for this policy to be successful.

Methods

Combine(AuthorizationPolicy[])

Combines the specified AuthorizationPolicy into a single policy.

Combine(IEnumerable<AuthorizationPolicy>)

Combines the specified AuthorizationPolicy into a single policy.

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>, IEnumerable<AuthorizationPolicy>)

Combines the AuthorizationPolicy provided by the specified policyProvider.

CombineAsync(IAuthorizationPolicyProvider, IEnumerable<IAuthorizeData>)

Combines the AuthorizationPolicy provided by the specified policyProvider.

Applies to