Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-sso

Package Overview
Dependencies
Maintainers
5
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-provider-sso - npm Package Compare versions

Comparing version 3.395.0 to 3.398.0

3

dist-cjs/resolveSSOCredentials.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc