Class AuthorizationPolicyBuilderExtensions
Extension methods for Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder instances for additional authorisation
requirements.
Namespace: XploRe.AspNetCore.Authorization
Assembly: XploRe.AspNetCore.Authorization.dll
Syntax
public static class AuthorizationPolicyBuilderExtensions : Object
Methods
Name | Description |
---|---|
RequireAny(AuthorizationPolicyBuilder, Action<AuthorizationPolicyBuilder>) | Adds a new DisjunctiveAuthorizationRequirement instance to the current Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder instance. |
RequireClaimType(AuthorizationPolicyBuilder, IEnumerable<String>) | Adds a new ClaimTypeAuthorizationRequirement instance to the current Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder instance. |
RequireClaimType(AuthorizationPolicyBuilder, String[]) | Adds a new ClaimTypeAuthorizationRequirement instance to the current Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder instance. |
RequirePolicy(AuthorizationPolicyBuilder, IEnumerable<String>) | Adds a new PolicyAuthorizationRequirement instance to the current Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder instance. |
RequirePolicy(AuthorizationPolicyBuilder, String[]) | Adds a new PolicyAuthorizationRequirement instance to the current Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder instance. |