@acceleratxr/core_sdk / OAuthService
Class: OAuthService#
The OAuthService provides an API for implementing OAuth 2.0 compatible single-sign on between an XBE cluster and
third party applications.
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
-
↳ OAuthService
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new OAuthService(apiClient: ApiClient, config: Configuration): OAuthService
Overrides ServiceBase.constructor
Defined in src/services/OAuthService.ts:15
Parameters:#
Name |
Type |
|---|---|
|
|
|
Returns: OAuthService
Properties#
apiClient#
• Protected apiClient: ApiClient
Inherited from ServiceBase.apiClient
Defined in src/ServiceBase.ts:14
The API Client used when making requests to the API backend server.
config#
• Protected config: Configuration
Inherited from ServiceBase.config
Defined in src/ServiceBase.ts:19
The SDK configuration to use.
uuid#
▪ Static uuid: string = “21cd7e58-88b5-4e63-b10a-8ec7d1fef73d”
Defined in src/services/OAuthService.ts:21
Methods#
getAccessToken#
▸ getAccessToken(code: string, clientID: string, clientSecret: string, redirectURI: string, codeVerifier?: undefined | string): Promise<any>
Defined in src/services/OAuthService.ts:98
Requests an access token for the specified OAuth 2.0 authorization token and application configuration.
Parameters:#
Name |
Type |
|---|---|
|
string |
|
string |
|
string |
|
string |
|
undefined | string |
Returns: Promise<any>