File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11export class CxConfig {
22 baseUri : string = "" ;
3+ baseAuthUri : string = "" ;
34 pathToExecutable : string = "" ;
45 clientId : string = "" ;
56 clientSecret : string = "" ;
67 apiKey : string = "" ;
7- tenant :string = "" ;
8- }
8+ tenant : string = "" ;
9+ }
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ export class CxWrapper {
4141 if ( cxScanConfig . baseUri ) {
4242 this . config . baseUri = cxScanConfig . baseUri ;
4343 }
44+ if ( cxScanConfig . baseAuthUri ) {
45+ this . config . baseAuthUri = cxScanConfig . baseAuthUri ;
46+ }
4447 if ( cxScanConfig . tenant ) {
4548 this . config . tenant = cxScanConfig . tenant ;
4649 }
@@ -64,6 +67,10 @@ export class CxWrapper {
6467 list . push ( CxConstants . BASE_URI ) ;
6568 list . push ( this . config . baseUri ) ;
6669 }
70+ if ( this . config . baseAuthUri ) {
71+ list . push ( CxConstants . BASE_AUTH_URI ) ;
72+ list . push ( this . config . baseAuthUri ) ;
73+ }
6774 if ( this . config . tenant ) {
6875 list . push ( CxConstants . TENANT ) ;
6976 list . push ( this . config . tenant ) ;
Original file line number Diff line number Diff line change 11export class BaseTest {
22 baseUri : string = "" ;
3+ baseAuthUri : string = "" ;
34 clientId : string = "" ;
45 clientSecret : string = "" ;
56 apiKey : string = "" ;
@@ -8,6 +9,7 @@ export class BaseTest {
89
910 constructor ( ) {
1011 this . baseUri = process . env [ "CX_BASE_URI" ] ;
12+ this . baseAuthUri = process . env [ "CX_BASE_AUTH_URI" ] ;
1113 this . clientId = process . env [ "CX_CLIENT_ID" ] ;
1214 this . clientSecret = process . env [ "CX_CLIENT_SECRET" ] ;
1315 this . tenant = process . env [ "CX_TENANT" ] ;
You can’t perform that action at this time.
0 commit comments