Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthorizationProvider

The role of an AuthorizationProvider is to return a set of Authorization. Note that each AuthorizationProvider must provide its own unique Id

Hierarchy

  • AuthorizationProvider

Index

Methods

getAuthorizations

  • getAuthorizations(user: User): PromiseLike<void>
  • getAuthorizations(user: User, handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>): void
  • Updates the user with the set of authorizations.

    Parameters

    Returns PromiseLike<void>

  • Updates the user with the set of authorizations.

    Parameters

    • user: User
    • handler: ((res: AsyncResult<void>) => void) | Handler<AsyncResult<void>>

    Returns void

getId

  • getId(): string
  • returns the id of the authorization provider

    Returns string

Static create

  • create an authorization provider with the specified id and authorizations

    Parameters

    Returns AuthorizationProvider

Generated using TypeDoc