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
readonlyflow:AuthorizationCodeFlow
Methods
on()
on(
eventName,handler):EventEmitter
binds event listeners to events throw by the CredentialOrchestrator
Parameters
• eventName: string
• handler
Returns
EventEmitter
Inherited from
off()
off(
eventName,handler):EventEmitter
Parameters
• eventName: string
• handler
Returns
EventEmitter
Inherited from
selectCredential()
protectedselectCredential(options):null|Credential
Parameters
• options: AuthOptions
Returns
null | Credential
getToken()
abstractgetToken(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()
abstractgetDPoPSignature(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