File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ var Configuration = class _Configuration {
5858 _Configuration . #checkMandatoryVariables( [
5959 "SALESFORCE_LOGIN_URL" ,
6060 "SALESFORCE_USERNAME" ,
61- "SALESFORCE_PASSWORD" ,
62- "SALESFORCE_TOKEN"
61+ "SALESFORCE_PASSWORD"
6362 ] ) ;
6463 } else if ( _Configuration . isOAuthClientCredentialsAuth ( ) ) {
6564 _Configuration . #checkMandatoryVariables( [
@@ -91,7 +90,10 @@ var Configuration = class _Configuration {
9190 return process . env . SALESFORCE_USERNAME ;
9291 }
9392 static getSfSecuredPassword ( ) {
94- return process . env . SALESFORCE_PASSWORD + process . env . SALESFORCE_TOKEN ;
93+ if ( process . env . SALESFORCE_TOKEN ) {
94+ return process . env . SALESFORCE_PASSWORD + process . env . SALESFORCE_TOKEN ;
95+ }
96+ return process . env . SALESFORCE_PASSWORD ;
9597 }
9698 static getSfClientId ( ) {
9799 return process . env . SALESFORCE_CLIENT_ID ;
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ var Configuration = class _Configuration {
2525 _Configuration . #checkMandatoryVariables( [
2626 "SALESFORCE_LOGIN_URL" ,
2727 "SALESFORCE_USERNAME" ,
28- "SALESFORCE_PASSWORD" ,
29- "SALESFORCE_TOKEN"
28+ "SALESFORCE_PASSWORD"
3029 ] ) ;
3130 } else if ( _Configuration . isOAuthClientCredentialsAuth ( ) ) {
3231 _Configuration . #checkMandatoryVariables( [
@@ -58,7 +57,10 @@ var Configuration = class _Configuration {
5857 return process . env . SALESFORCE_USERNAME ;
5958 }
6059 static getSfSecuredPassword ( ) {
61- return process . env . SALESFORCE_PASSWORD + process . env . SALESFORCE_TOKEN ;
60+ if ( process . env . SALESFORCE_TOKEN ) {
61+ return process . env . SALESFORCE_PASSWORD + process . env . SALESFORCE_TOKEN ;
62+ }
63+ return process . env . SALESFORCE_PASSWORD ;
6264 }
6365 static getSfClientId ( ) {
6466 return process . env . SALESFORCE_CLIENT_ID ;
You can’t perform that action at this time.
0 commit comments