Class ClientCredentialsOAuthClient
Hierarchy
ClientCredentialsOAuthClient
Constructors
constructor
Defined in build/repo/src/oauth.ts:39
Parameters
tokenUrl: string
clientId: string
clientSecret: string
Properties
Private clientId
clientId: string
Defined in build/repo/src/oauth.ts:35
Private clientSecret
clientSecret: string
Defined in build/repo/src/oauth.ts:36
Private jobId
jobId: any
Defined in build/repo/src/oauth.ts:38
Private mut
mut: Mutex
Defined in build/repo/src/oauth.ts:39
Private token
token: string
Defined in build/repo/src/oauth.ts:37
Private tokenUrl
tokenUrl: string
Defined in build/repo/src/oauth.ts:34
Methods
destroy
Defined in build/repo/src/oauth.ts:178
Returns void
fetch
fetch( ... args: [ input: RequestInfo , init?: RequestInit ] ) : Promise < Response >
Defined in build/repo/src/oauth.ts:152
Parameters
Rest ... args: [ input: RequestInfo , init?: RequestInit ]
Returns Promise < Response >
Private fetchOAuthResponse
fetchOAuthResponse( ) : Promise < any >
Defined in build/repo/src/oauth.ts:64
Returns Promise < any >
getHeader
getHeader( ) : Promise < { Authorization: string } >
Defined in build/repo/src/oauth.ts:86
Returns Promise < { Authorization: string } >
getToken
getToken( ) : Promise < string >
Defined in build/repo/src/oauth.ts:98
Returns Promise < string >
Legend
Variable
Function
Type alias
Type alias with type parameter
Class
Class with type parameter
Constructor
Method
Interface
Interface with type parameter
Private property
Private method
Client Credential OAuth Client
Will automatically process the token refresh logic
refresh policy: half expire-in