PluggableAuthHandler

PluggableAuthHandler

A handler used to retrieve 3rd party token responses from user defined executables and cached file output for the PluggableAuthClient class.

Constructor

new PluggableAuthHandler()

Instantiates a PluggableAuthHandler instance using the provided PluggableAuthHandlerOptions object.

Methods

(async) retrieveCachedResponse()

Checks user provided output file for response from previous run of executable and return the response if it exists, is formatted correctly, and is not expired.

retrieveResponseFromExecutable(envMap)

Calls user provided executable to get a 3rd party subject token and returns the response.

Parameters:
Name Type Description
envMap

a Map of additional Environment Variables required for the executable.

Returns:
Type Description

A promise that resolves with the executable response.

(static) parseCommand()

Parses given command string into component array, splitting on spaces unless spaces are between quotation marks.