@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
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 5.9.3 [10-10-2024]
3
+
4
+ * add sts region
5
+
6
+ See merge request itentialopensource/adapter-utils!307
7
+
8
+ ---
9
+
2
10
  ## 5.9.2 [10-07-2024]
3
11
 
4
12
  * add token logs
@@ -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: this.allProps.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-utils",
3
- "version": "5.9.2",
3
+ "version": "5.9.3",
4
4
  "description": "Itential Adapter Utility Libraries",
5
5
  "scripts": {
6
6
  "postinstall": "node utils/setup.js",
Binary file