File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export class JwtAuth implements IAuthentication {
7777
7878 const requestOptions : request . Options = {
7979 method : "POST" ,
80- uri : configuration . authUrl + "connect/token" ,
80+ uri : configuration . getAuthUrl ( ) + "connect/token" ,
8181 body : postData ,
8282 headers : {
8383 "Content-Type" : "application/x-www-form-urlencoded" ,
Original file line number Diff line number Diff line change @@ -109,4 +109,12 @@ export class Configuration {
109109 public getApiBaseUrl ( ) : string {
110110 return this . baseUrl + this . apiVersion ;
111111 }
112+
113+ public getAuthUrl ( ) : string {
114+ if ( ! this . authUrl . endsWith ( "/" ) ) {
115+ return this . authUrl + "/" ;
116+ } else {
117+ return this . authUrl ;
118+ }
119+ }
112120}
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import * as requests from '../src/model/requests/requests';
33import uuidv4 from 'uuid/v4' ;
44import * as models from '../src/model/model' ;
55
6+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
7+
68describe ( 'EmailApi' , function ( ) {
79 var api :EmailApi ;
810 var folder :string ;
@@ -13,7 +15,6 @@ describe('EmailApi', function() {
1315 var authUrl = process . env . authUrl ;
1416 if ( authUrl != null ) api . configuration . authUrl = authUrl ;
1517 folder = uuidv4 ( ) ;
16- jasmine . DEFAULT_TIMEOUT_INTERVAL = 100000 ;
1718 await api . createFolder ( new requests . CreateFolderRequest ( folder , storage ) ) ;
1819 } )
1920
You can’t perform that action at this time.
0 commit comments