Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles all requests relevant for the entire IDP interaction, by sending them to either a matching InteractionRoute, or the generated Provider from the ProviderFactory if there is no match.

The InteractionRoutes handle all requests where we need custom behaviour, such as everything related to generating and validating an account. The Provider handles all the default request such as the initial handshake.

This handler handles all requests since it assumes all those requests are relevant for the IDP interaction. A RouterHandler should be used to filter out other requests.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly baseUrl

baseUrl: string

Private Readonly controls

controls: Record<string, string>

Private Readonly converter

Private Readonly errorHandler

errorHandler: ErrorHandler

Private Readonly interactionCompleter

interactionCompleter: InteractionCompleter

Private Readonly interactionRoutes

interactionRoutes: InteractionRoute[]

Protected Readonly logger

logger: Logger = ...

Private Readonly providerFactory

providerFactory: ProviderFactory

Methods

canHandle

Private findRoute

Private getRouteControls

handle

Private handleInteractionResult

Private handleResponseResult

  • handleResponseResult(details: Record<string, any>, operation: Operation, templateFiles: Record<string, string>, oidcInteraction?: Interaction, statusCode?: number): Promise<ResponseDescription>
  • Converts an InteractionResponseResult to a ResponseDescription by first converting to a Representation and applying necessary conversions.

    Parameters

    • details: Record<string, any>
    • operation: Operation
    • templateFiles: Record<string, string>
    • Optional oidcInteraction: Interaction
    • statusCode: number = 200

    Returns Promise<ResponseDescription>

handleSafe