AuthorizationHandler<TRequirement> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for authorization handlers that need to be called for a specific requirement type.
generic <typename TRequirement>
where TRequirement : IAuthorizationRequirementpublic ref class AuthorizationHandler abstract : Microsoft::AspNetCore::Authorization::IAuthorizationHandler
public abstract class AuthorizationHandler<TRequirement> : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : IAuthorizationRequirement
type AuthorizationHandler<'Requirement (requires 'Requirement :> IAuthorizationRequirement)> = class
interface IAuthorizationHandler
Public MustInherit Class AuthorizationHandler(Of TRequirement)
Implements IAuthorizationHandler
Type Parameters
- TRequirement
The type of the requirement to handle.
- Inheritance
-
AuthorizationHandler<TRequirement>
- Derived
- Implements
Constructors
AuthorizationHandler<TRequirement>() |
Methods
HandleAsync(AuthorizationHandlerContext) |
Makes a decision if authorization is allowed. |
HandleRequirementAsync(AuthorizationHandlerContext, TRequirement) |
Makes a decision if authorization is allowed based on a specific requirement. |