Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AuthorizeHandlerContext<TRequest>

The (execution) context of an authorization handler.

Type parameters

  • TRequest: express.Request = express.Request

Hierarchy

  • AuthorizeHandlerContext

Index

Properties

Optional reason

reason: any

Gets or sets an optional object or value, which describes why the authorization failed.

This value if submitted to the 'failed handler'.

request

request: TRequest

The current HTTP request context.

resources

resources: string[]

The list of resources to check.

response

response: Response

The current HTTP response context.

roles

roles: string[]

The list of roles to check.

Generated using TypeDoc