AuthorizationHandler<TRequirement,TResource> Class

Definition

Base class for authorization handlers that need to be called for specific requirement and resource types.

generic <typename TRequirement, typename TResource>
 where TRequirement : IAuthorizationRequirementpublic ref class AuthorizationHandler abstract : Microsoft::AspNetCore::Authorization::IAuthorizationHandler
public abstract class AuthorizationHandler<TRequirement,TResource> : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : IAuthorizationRequirement
type AuthorizationHandler<'Requirement, 'Resource (requires 'Requirement :> IAuthorizationRequirement)> = class
    interface IAuthorizationHandler
Public MustInherit Class AuthorizationHandler(Of TRequirement, TResource)
Implements IAuthorizationHandler

Type Parameters

TRequirement

The type of the requirement to evaluate.

TResource

The type of the resource to evaluate.

Inheritance
AuthorizationHandler<TRequirement,TResource>
Implements

Constructors

AuthorizationHandler<TRequirement,TResource>()

Methods

HandleAsync(AuthorizationHandlerContext)

Makes a decision if authorization is allowed.

HandleRequirementAsync(AuthorizationHandlerContext, TRequirement, TResource)

Makes a decision if authorization is allowed based on a specific requirement and resource.

Applies to