@aws-sdk/credential-provider-sso
Advanced tools
Comparing version 3.395.0 to 3.398.0
@@ -8,3 +8,2 @@ "use strict"; | ||
const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); | ||
const EXPIRE_WINDOW_MS = 15 * 60 * 1000; | ||
const SHOULD_FAIL_CREDENTIAL_CHAIN = false; | ||
@@ -34,3 +33,3 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => { | ||
} | ||
if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { | ||
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { | ||
throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); | ||
@@ -37,0 +36,0 @@ } |
@@ -5,3 +5,2 @@ import { GetRoleCredentialsCommand, SSOClient } from "@aws-sdk/client-sso"; | ||
import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader"; | ||
const EXPIRE_WINDOW_MS = 15 * 60 * 1000; | ||
const SHOULD_FAIL_CREDENTIAL_CHAIN = false; | ||
@@ -31,3 +30,3 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => { | ||
} | ||
if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { | ||
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { | ||
throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); | ||
@@ -34,0 +33,0 @@ } |
{ | ||
"name": "@aws-sdk/credential-provider-sso", | ||
"version": "3.395.0", | ||
"version": "3.398.0", | ||
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials", | ||
@@ -27,8 +27,8 @@ "main": "./dist-cjs/index.js", | ||
"dependencies": { | ||
"@aws-sdk/client-sso": "3.395.0", | ||
"@aws-sdk/token-providers": "3.391.0", | ||
"@aws-sdk/types": "3.391.0", | ||
"@aws-sdk/client-sso": "3.398.0", | ||
"@aws-sdk/token-providers": "3.398.0", | ||
"@aws-sdk/types": "3.398.0", | ||
"@smithy/property-provider": "^2.0.0", | ||
"@smithy/shared-ini-file-loader": "^2.0.0", | ||
"@smithy/types": "^2.2.0", | ||
"@smithy/types": "^2.2.2", | ||
"tslib": "^2.5.0" | ||
@@ -35,0 +35,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31997
448
+ Added@aws-sdk/client-sso@3.398.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.398.0(transitive)
+ Added@aws-sdk/middleware-logger@3.398.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.398.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.398.0(transitive)
+ Added@aws-sdk/token-providers@3.398.0(transitive)
+ Added@aws-sdk/types@3.398.0(transitive)
+ Added@aws-sdk/util-endpoints@3.398.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.398.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.398.0(transitive)
- Removed@aws-sdk/client-sso@3.395.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.391.0(transitive)
- Removed@aws-sdk/middleware-logger@3.391.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.391.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.391.0(transitive)
- Removed@aws-sdk/token-providers@3.391.0(transitive)
- Removed@aws-sdk/types@3.391.0(transitive)
- Removed@aws-sdk/util-endpoints@3.391.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.391.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.391.0(transitive)
Updated@aws-sdk/client-sso@3.398.0
Updated@aws-sdk/types@3.398.0
Updated@smithy/types@^2.2.2