Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-sso

Package Overview
Dependencies
Maintainers
5
Versions
303
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.484.0 to 3.485.0

4

dist-cjs/resolveSSOCredentials.js

@@ -10,2 +10,3 @@ "use strict";

const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => {
var _a;
let token;

@@ -50,7 +51,8 @@ const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;

const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
const credentialScope = (_a = ssoResp === null || ssoResp === void 0 ? void 0 : ssoResp.roleCredentials) === null || _a === void 0 ? void 0 : _a.credentialScope;
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
}
return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
};
exports.resolveSSOCredentials = resolveSSOCredentials;

@@ -46,6 +46,7 @@ import { GetRoleCredentialsCommand, SSOClient } from "@aws-sdk/client-sso";

const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp;
const credentialScope = ssoResp?.roleCredentials?.credentialScope;
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
throw new CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
}
return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) };
return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
};
import { AwsCredentialIdentity } from "@smithy/types";
import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
/**
* @private
* @internal
*/
export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
{
"name": "@aws-sdk/credential-provider-sso",
"version": "3.484.0",
"version": "3.485.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.484.0",
"@aws-sdk/token-providers": "3.484.0",
"@aws-sdk/types": "3.468.0",
"@aws-sdk/client-sso": "3.485.0",
"@aws-sdk/token-providers": "3.485.0",
"@aws-sdk/types": "3.485.0",
"@smithy/property-provider": "^2.0.0",
"@smithy/shared-ini-file-loader": "^2.0.6",
"@smithy/types": "^2.7.0",
"@smithy/types": "^2.8.0",
"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