@vizamodo/aws-sts-core 0.2.8 → 0.2.12
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.d.ts +0 -1
- package/dist/federation/login.js +0 -1
- package/dist/sts/issue.js +1 -10
- package/package.json +1 -1
package/dist/federation/login.js
CHANGED
package/dist/sts/issue.js
CHANGED
|
@@ -23,7 +23,7 @@ async function getSigningMaterial(input) {
|
|
|
23
23
|
function resolveSessionTtlByProfile(profile) {
|
|
24
24
|
switch (profile) {
|
|
25
25
|
case "HubConsoleReadOnly":
|
|
26
|
-
return
|
|
26
|
+
return 12 * 60 * 60; // 12h
|
|
27
27
|
case "HubBillingReadonly":
|
|
28
28
|
case "HubBillingAdmin":
|
|
29
29
|
return 2 * 60 * 60; // 2h
|
|
@@ -154,15 +154,6 @@ export async function issueAwsCredentials(input) {
|
|
|
154
154
|
}
|
|
155
155
|
const json = await res.json();
|
|
156
156
|
const creds = json?.credentialSet?.[0]?.credentials;
|
|
157
|
-
console.log("[issueAwsCredentials][aws-response]", {
|
|
158
|
-
raw: json,
|
|
159
|
-
});
|
|
160
|
-
console.log("[issueAwsCredentials][parsed-credentials]", {
|
|
161
|
-
accessKeyId: creds?.accessKeyId,
|
|
162
|
-
secretAccessKey: creds.secretAccessKey,
|
|
163
|
-
sessionToken: creds.sessionToken,
|
|
164
|
-
expiration: creds?.expiration,
|
|
165
|
-
});
|
|
166
157
|
return {
|
|
167
158
|
accessKeyId: creds.accessKeyId,
|
|
168
159
|
secretAccessKey: creds.secretAccessKey,
|