ag-awsauth 0.0.298 → 0.0.299
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/dist/helpers/sso.js +2 -1
- package/dist/helpers/sts.js +4 -3
- package/package.json +14 -14
package/dist/helpers/sso.js
CHANGED
|
@@ -47,7 +47,8 @@ function fetchPortalJson(url, p, isValid) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
const getAssumedRole = (p) => __awaiter(void 0, void 0, void 0, function* () {
|
|
50
|
-
var _a, _b, _c
|
|
50
|
+
var _a, _b, _c;
|
|
51
|
+
var _d;
|
|
51
52
|
const sso = new client_sso_1.SSOClient({ region: config_1.identityCenterRegion });
|
|
52
53
|
let accountId = p.accountId;
|
|
53
54
|
if (!accountId) {
|
package/dist/helpers/sts.js
CHANGED
|
@@ -42,7 +42,8 @@ function validateCredentials(credentials) {
|
|
|
42
42
|
}
|
|
43
43
|
function getApplicationCreds(p) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
var _a
|
|
45
|
+
var _a;
|
|
46
|
+
var _b;
|
|
46
47
|
const sts = new client_sts_1.STS({
|
|
47
48
|
credentials: p.originCreds,
|
|
48
49
|
region: p.targetRegion,
|
|
@@ -53,11 +54,11 @@ function getApplicationCreds(p) {
|
|
|
53
54
|
SAMLAssertion: p.samlAssertion,
|
|
54
55
|
DurationSeconds: config_1.stsDurationSeconds,
|
|
55
56
|
});
|
|
56
|
-
if (((
|
|
57
|
+
if (((_b = ret.$metadata.httpStatusCode) !== null && _b !== void 0 ? _b : 500) >= 400) {
|
|
57
58
|
(0, log_1.error)('bad assume saml role', ret);
|
|
58
59
|
throw new Error('bad assume saml role');
|
|
59
60
|
}
|
|
60
|
-
if (!((
|
|
61
|
+
if (!((_a = ret.Credentials) === null || _a === void 0 ? void 0 : _a.AccessKeyId) ||
|
|
61
62
|
!ret.Credentials.SecretAccessKey ||
|
|
62
63
|
!ret.Credentials.SessionToken) {
|
|
63
64
|
throw new Error('no creds');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-awsauth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.299",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "auth to aws sso/iamv2 easily",
|
|
6
6
|
"license": "ISC",
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
],
|
|
17
17
|
"main": "dist/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aws-sdk/client-sso": "3.
|
|
20
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
19
|
+
"@aws-sdk/client-sso": "3.1146.0",
|
|
20
|
+
"@aws-sdk/client-sso-oidc": "3.1146.0",
|
|
21
|
+
"@aws-sdk/client-sts": "3.1146.0",
|
|
22
22
|
"@aws-sdk/shared-ini-file-loader": "3.374.0",
|
|
23
|
-
"ag-common": "0.0.
|
|
23
|
+
"ag-common": "0.0.914",
|
|
24
24
|
"cli-select": "1.1.2",
|
|
25
|
-
"dotenv": "
|
|
25
|
+
"dotenv": "18.0.5",
|
|
26
26
|
"envfile": "7.1.0",
|
|
27
|
-
"eslint-config-e7npm": "0.1.
|
|
28
|
-
"ini": "
|
|
27
|
+
"eslint-config-e7npm": "0.1.70",
|
|
28
|
+
"ini": "7.0.0",
|
|
29
29
|
"node-fetch": "3.3.2",
|
|
30
|
-
"oxfmt": "^0.
|
|
31
|
-
"oxlint": "^1.
|
|
32
|
-
"puppeteer": "
|
|
30
|
+
"oxfmt": "^0.71.0",
|
|
31
|
+
"oxlint": "^1.86.0",
|
|
32
|
+
"puppeteer": "25.12.0",
|
|
33
33
|
"readline-sync": "1.4.10",
|
|
34
|
-
"typescript": "
|
|
35
|
-
"yargs": "18.
|
|
34
|
+
"typescript": "7.0.2",
|
|
35
|
+
"yargs": "18.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/ini": "4.1.1",
|
|
39
|
-
"@types/node": "
|
|
39
|
+
"@types/node": "26.6.4",
|
|
40
40
|
"@types/node-fetch": "2.6.13",
|
|
41
41
|
"@types/readline-sync": "1.4.8",
|
|
42
42
|
"@types/yargs": "17.0.35"
|