@itentialopensource/adapter-utils 5.9.2 → 5.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -122,7 +122,7 @@ class AuthenticationHandler {
|
|
|
122
122
|
sessionToken: this.allProps.authentication.aws_session_token,
|
|
123
123
|
accessKeyId: this.allProps.authentication.aws_access_key,
|
|
124
124
|
secretAccessKey: this.allProps.authentication.aws_secret_key,
|
|
125
|
-
region:
|
|
125
|
+
region: options.region
|
|
126
126
|
};
|
|
127
127
|
// Add optional config items (ssl, endpoint, proxy)
|
|
128
128
|
if (this.allProps.authentication.aws_sts) {
|
|
@@ -132,6 +132,9 @@ class AuthenticationHandler {
|
|
|
132
132
|
if (this.allProps.authentication.aws_sts.endpoint) {
|
|
133
133
|
configObj.endpoint = this.allProps.authentication.aws_sts.endpoint;
|
|
134
134
|
}
|
|
135
|
+
if (this.allProps.authentication.aws_sts.region) {
|
|
136
|
+
configObj.region = this.allProps.authentication.aws_sts.region;
|
|
137
|
+
}
|
|
135
138
|
if (this.allProps.authentication.aws_sts.proxy) {
|
|
136
139
|
configObj.httpOptions = {
|
|
137
140
|
proxy: this.allProps.authentication.aws_sts.proxy
|
|
@@ -144,6 +147,7 @@ class AuthenticationHandler {
|
|
|
144
147
|
}
|
|
145
148
|
// set the original AWS access information (from properties)
|
|
146
149
|
AWS.config.update(configObj);
|
|
150
|
+
log.debug(`STS OPTIONS: ${JSON.stringify(configObj)}`);
|
|
147
151
|
|
|
148
152
|
// use STS to get the AWS access information for the user defined in STWS Params
|
|
149
153
|
const sts = new AWS.STS();
|
package/package.json
CHANGED
|
Binary file
|