Options
All
  • Public
  • Public/Protected
  • All
Menu

An InteractionHttpHandler that redirects requests 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 redirect will be used.

Specifically, this is used to redirect the client to the correct way to login, such as a login page, or a confirmation page if a login procedure already succeeded previously.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly baseUrl

baseUrl: string

Protected Readonly logger

logger: Logger = ...

Private Readonly redirectMap

redirectMap: RedirectMap

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.