AuthorizationHandler<TRequirement> AuthorizationHandler<TRequirement> AuthorizationHandler<TRequirement> Class

Definition

Base class for authorization handlers that need to be called for a specific requirement type.

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>AuthorizationHandler<TRequirement>AuthorizationHandler<TRequirement>
Derived
Implements

Constructors

AuthorizationHandler<TRequirement>() AuthorizationHandler<TRequirement>() AuthorizationHandler<TRequirement>()

Methods

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

Makes a decision if authorization is allowed.

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

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

Applies to