Options
All
  • Public
  • Public/Protected
  • All
Menu

An InteractionHttpHandler that redirects requests to a specific IdpRenderHandler based on their prompt. A list of possible prompts can be found at https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest In case there is no prompt or there is no match in the input map, the default render handler will be used.

Specifically, the prompt determines how the server should handle re-authentication and consent.

Since this class specifically redirects to render handlers, it is advised to wrap it in a RouterHandler that only allows GET requests.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected Readonly logger

logger: Logger = ...

Private Readonly renderHandlerMap

renderHandlerMap: RenderHandlerMap

Methods

canHandle

handle

handleSafe

  • Helper function that first runs the canHandle function followed by the handle function. Throws the error of the canHandle function if the data can't be handled, or returns the result of the handle function otherwise.

    Parameters

    Returns Promise<void>

    A promise resolving if the input can be handled, rejecting with an Error if not. Return value depends on the given type.