@@ -63,6 +63,8 @@ export interface Credentials {
63
63
iam_access_token ?: string ;
64
64
iam_apikey ?: string ;
65
65
iam_url ?: string ;
66
+ iam_client_id ?: string ;
67
+ iam_client_secret ?: string ;
66
68
authentication_type ?: string ;
67
69
}
68
70
@@ -243,6 +245,12 @@ export class BaseService {
243
245
if ( this . _options . iam_url ) {
244
246
credentials . iam_url = this . _options . iam_url ;
245
247
}
248
+ if ( this . _options . iam_client_id ) {
249
+ credentials . iam_client_id = this . _options . iam_client_id ;
250
+ }
251
+ if ( this . _options . iam_client_secret ) {
252
+ credentials . iam_client_secret = this . _options . iam_client_secret ;
253
+ }
246
254
if ( this . _options . icp4d_access_token ) {
247
255
credentials . icp4d_access_token = this . _options . icp4d_access_token ;
248
256
}
@@ -421,6 +429,8 @@ export class BaseService {
421
429
const iamAccessToken : string = envObj [ `${ _name } _IAM_ACCESS_TOKEN` ] || envObj [ `${ nameWithUnderscore } _IAM_ACCESS_TOKEN` ] ;
422
430
const iamApiKey : string = envObj [ `${ _name } _IAM_APIKEY` ] || envObj [ `${ nameWithUnderscore } _IAM_APIKEY` ] ;
423
431
const iamUrl : string = envObj [ `${ _name } _IAM_URL` ] || envObj [ `${ nameWithUnderscore } _IAM_URL` ] ;
432
+ const iamClientId : string = envObj [ `${ _name } _IAM_CLIENT_ID` ] || envObj [ `${ _name } _IAM_CLIENT_ID` ] ;
433
+ const iamClientSecret : string = envObj [ `${ _name } _IAM_CLIENT_SECRET` ] || envObj [ `${ _name } _IAM_CLIENT_SECRET` ] ;
424
434
const icp4dAccessToken : string = envObj [ `${ _name } _ICP4D_ACCESS_TOKEN` ] || envObj [ `${ nameWithUnderscore } _ICP4D_ACCESS_TOKEN` ] ;
425
435
const icp4dUrl : string = envObj [ `${ _name } _ICP4D_URL` ] || envObj [ `${ nameWithUnderscore } _ICP4D_URL` ] ;
426
436
const authenticationType : string = envObj [ `${ _name } _AUTHENTICATION_TYPE` ] || envObj [ `${ nameWithUnderscore } _AUTHENTICATION_TYPE` ] ;
@@ -432,6 +442,8 @@ export class BaseService {
432
442
iam_access_token : iamAccessToken ,
433
443
iam_apikey : iamApiKey ,
434
444
iam_url : iamUrl ,
445
+ iam_client_id : iamClientId ,
446
+ iam_client_secret : iamClientSecret ,
435
447
icp4d_access_token : icp4dAccessToken ,
436
448
icp4d_url : icp4dUrl ,
437
449
authentication_type : authenticationType ,
0 commit comments