Skip to content

Commit c3b8c3d

Browse files
committed
Added external auth url support
1 parent c0c38e7 commit c3b8c3d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/internal/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class JwtAuth implements IAuthentication {
7777

7878
const requestOptions: request.Options = {
7979
method: "POST",
80-
uri: configuration.baseUrl + "connect/token",
80+
uri: configuration.authUrl + "connect/token",
8181
body: postData,
8282
headers: {
8383
"Content-Type": "application/x-www-form-urlencoded",

src/internal/configuration.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export class Configuration {
5959
*/
6060
public apiVersion: string = "v3.0";
6161

62+
/**
63+
* Should not be used
64+
*/
65+
public authUrl: string;
66+
6267
/**
6368
* If you use custom on-premise server with metered license.
6469
* This way, you only need to specify the API base URL.
@@ -79,6 +84,7 @@ export class Configuration {
7984

8085
this.baseUrl = baseUrl;
8186
}
87+
this.authUrl = this.baseUrl;
8288

8389
this.appSID = appSID;
8490
this.appKey = appKey;

0 commit comments

Comments
 (0)