ibm-cloud-sdk-core 2.17.1 → 2.17.2
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,3 +1,10 @@
|
|
|
1
|
+
## [2.17.2](https://github.com/IBM/node-sdk-core/compare/v2.17.1...v2.17.2) (2021-12-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **VpcInstanceAuthenticator:** omit request body for default profile scenario ([#181](https://github.com/IBM/node-sdk-core/issues/181)) ([1e3fb2d](https://github.com/IBM/node-sdk-core/commit/1e3fb2d8efede7f1382538d4a4918b16e04deeea))
|
|
7
|
+
|
|
1
8
|
## [2.17.1](https://github.com/IBM/node-sdk-core/compare/v2.17.0...v2.17.1) (2021-12-06)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -129,12 +129,15 @@ var VpcInstanceTokenManager = /** @class */ (function (_super) {
|
|
|
129
129
|
case 0: return [4 /*yield*/, this.getInstanceIdentityToken()];
|
|
130
130
|
case 1:
|
|
131
131
|
instanceIdentityToken = _a.sent();
|
|
132
|
-
body = {};
|
|
133
132
|
if (this.iamProfileId) {
|
|
134
|
-
body
|
|
133
|
+
body = {
|
|
134
|
+
trusted_profile: { id: this.iamProfileId },
|
|
135
|
+
};
|
|
135
136
|
}
|
|
136
137
|
else if (this.iamProfileCrn) {
|
|
137
|
-
body
|
|
138
|
+
body = {
|
|
139
|
+
trusted_profile: { crn: this.iamProfileCrn },
|
|
140
|
+
};
|
|
138
141
|
}
|
|
139
142
|
parameters = {
|
|
140
143
|
options: {
|
|
@@ -77,12 +77,16 @@ export class VpcInstanceTokenManager extends JwtTokenManager {
|
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const instanceIdentityToken = yield this.getInstanceIdentityToken();
|
|
79
79
|
// construct request body
|
|
80
|
-
|
|
80
|
+
let body;
|
|
81
81
|
if (this.iamProfileId) {
|
|
82
|
-
body
|
|
82
|
+
body = {
|
|
83
|
+
trusted_profile: { id: this.iamProfileId },
|
|
84
|
+
};
|
|
83
85
|
}
|
|
84
86
|
else if (this.iamProfileCrn) {
|
|
85
|
-
body
|
|
87
|
+
body = {
|
|
88
|
+
trusted_profile: { crn: this.iamProfileCrn },
|
|
89
|
+
};
|
|
86
90
|
}
|
|
87
91
|
const parameters = {
|
|
88
92
|
options: {
|