@vizamodo/aws-sts-core 0.3.44 → 0.3.46
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/federation/login.js +3 -1
- package/package.json +2 -2
package/dist/federation/login.js
CHANGED
|
@@ -66,15 +66,17 @@ export async function buildFederationLoginUrl(input) {
|
|
|
66
66
|
expiryIso,
|
|
67
67
|
now: Date.now()
|
|
68
68
|
});
|
|
69
|
+
// restore primitive storage (cache layer now handles primitive safely)
|
|
69
70
|
return wrapResult(token, expiryIso);
|
|
70
71
|
}, { ttlSec: 60, ...(input.forceRefresh !== undefined ? { forceRefresh: input.forceRefresh } : {}) } // allow caller-controlled retry
|
|
71
72
|
);
|
|
72
73
|
if (!SigninToken) {
|
|
73
74
|
throw new Error("[federation] unable to obtain SigninToken");
|
|
74
75
|
}
|
|
76
|
+
const rawToken = SigninToken;
|
|
75
77
|
const baseLogin = `https://signin.aws.amazon.com/federation?Action=login` +
|
|
76
78
|
`&Issuer=viza` +
|
|
77
|
-
`&SigninToken=${
|
|
79
|
+
`&SigninToken=${rawToken}`;
|
|
78
80
|
const intent = input.intent ?? "console";
|
|
79
81
|
let destinationUrl;
|
|
80
82
|
switch (intent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizamodo/aws-sts-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.46",
|
|
4
4
|
"description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"vitest": "^4.1.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vizamodo/edge-cache-core": "^0.3.
|
|
31
|
+
"@vizamodo/edge-cache-core": "^0.3.36"
|
|
32
32
|
}
|
|
33
33
|
}
|