Skip to content

ClientCredentialsStrategy

Implements

Constructors

new ClientCredentialsStrategy()

new ClientCredentialsStrategy(clientId, clientSecret): ClientCredentialsStrategy

Parameters

clientId: string

clientSecret: string

Returns

ClientCredentialsStrategy

Source

auth/ClientCredentialsStrategy.ts:17

Methods

getAccessToken()

getAccessToken(): Promise<null | AccessToken>

Returns

Promise<null | AccessToken>

Implementation of

IAuthStrategy.getAccessToken

Source

auth/ClientCredentialsStrategy.ts:39


getOrCreateAccessToken()

getOrCreateAccessToken(): Promise<AccessToken>

Returns

Promise<AccessToken>

Implementation of

IAuthStrategy.getOrCreateAccessToken

Source

auth/ClientCredentialsStrategy.ts:23


removeAccessToken()

removeAccessToken(): Promise<void>

Returns

Promise<void>

Implementation of

IAuthStrategy.removeAccessToken

Source

auth/ClientCredentialsStrategy.ts:46


setConfiguration()

setConfiguration(configuration): void

Parameters

configuration: SdkConfiguration

Returns

void

Implementation of

IAuthStrategy.setConfiguration

Source

auth/ClientCredentialsStrategy.ts:19