Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthorizationInterceptor

Create an event bus service interceptor that will provide an authorization check

Hierarchy

Index

Methods

addAuthorization

  • Add a single authority to the authorities set.

    Parameters

    • authorization: Authorization

    Returns AuthorizationInterceptor

intercept

  • intercept(vertx: Vertx, interceptorContext: {}, body: Message<{}>): PromiseLike<Message<{}>>
  • Perform the interceptor handling

    Parameters

    • vertx: Vertx
    • interceptorContext: {}
      • [key: string]: any
    • body: Message<{}>

    Returns PromiseLike<Message<{}>>

setAuthorizations

  • Set the required authorities for the service, once a JWT is validated it will be queried for these authorities. If authorities are missing a error 403 is returned.

    Parameters

    • authorizations: Authorization

    Returns AuthorizationInterceptor

Static create

  • Parameters

    • authorizationProvider: AuthorizationProvider

    Returns AuthorizationInterceptor

Generated using TypeDoc