Skip to main content

Class: AuthorizationCodeFlowOrchestrator

An implementation of CredentialOrchestrator leveraging Authorization Code Flow

Extends

Constructors

new AuthorizationCodeFlowOrchestrator()

new AuthorizationCodeFlowOrchestrator(flow, options): AuthorizationCodeFlowOrchestrator

Parameters

flow: AuthorizationCodeFlow

options: Partial<Options> = {}

Returns

AuthorizationCodeFlowOrchestrator

Overrides

CredentialOrchestrator.constructor

Properties

flow

readonly flow: AuthorizationCodeFlow

Methods

on()

on(eventName, handler): EventEmitter

binds event listeners to events throw by the CredentialOrchestrator

Parameters

eventName: string

handler

Returns

EventEmitter

Inherited from

CredentialOrchestrator.on


off()

off(eventName, handler): EventEmitter

Parameters

eventName: string

handler

Returns

EventEmitter

Inherited from

CredentialOrchestrator.off


selectCredential()

protected selectCredential(options): null | Credential

Parameters

options: AuthOptions

Returns

null | Credential


getToken()

abstract getToken(options): Promise<null | Token>

Retrieves a valid Token to be used within an application

Parameters

options: AuthOptions

Returns

Promise<null | Token>

Overrides

CredentialOrchestrator.getToken


getDPoPSignature()

abstract getDPoPSignature(options): Promise<Request>

This method is used to generate a DPoP Proof for a HTTP request rather than simply returning an access token (to be used as a Bearer token)

Parameters

options: DPoPOptions

Returns

Promise<Request>

Remarks

This method is only documented as abstract, but is not marked abstract in the type definition. Not all implementations of CredentialOrchestrator will required this method.

See

  • Okta Documentation: DPoP

Overrides

CredentialOrchestrator.getDPoPSignature