AuthorizationHandler<TRequirement,TResource> AuthorizationHandler<TRequirement,TResource> AuthorizationHandler<TRequirement,TResource> Class

Definition

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

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>AuthorizationHandler<TRequirement,TResource>AuthorizationHandler<TRequirement,TResource>
Implements

Constructors

AuthorizationHandler<TRequirement,TResource>() AuthorizationHandler<TRequirement,TResource>() AuthorizationHandler<TRequirement,TResource>()

Methods

HandleAsync(AuthorizationHandlerContext) HandleAsync(AuthorizationHandlerContext) HandleAsync(AuthorizationHandlerContext)

Makes a decision if authorization is allowed.

HandleRequirementAsync(AuthorizationHandlerContext, TRequirement, TResource) HandleRequirementAsync(AuthorizationHandlerContext, TRequirement, TResource) HandleRequirementAsync(AuthorizationHandlerContext, TRequirement, TResource)

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

Applies to