@aws-sdk/credential-provider-sso 3.693.0 → 3.699.0
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-cjs/index.js
CHANGED
|
@@ -65,6 +65,7 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
|
65
65
|
ssoRoleName,
|
|
66
66
|
ssoClient,
|
|
67
67
|
clientConfig,
|
|
68
|
+
parentClientConfig,
|
|
68
69
|
profile,
|
|
69
70
|
logger
|
|
70
71
|
}) => {
|
|
@@ -103,6 +104,7 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
|
103
104
|
const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
|
104
105
|
const sso = ssoClient || new SSOClient2(
|
|
105
106
|
Object.assign({}, clientConfig ?? {}, {
|
|
107
|
+
logger: (clientConfig == null ? void 0 : clientConfig.logger) ?? (parentClientConfig == null ? void 0 : parentClientConfig.logger),
|
|
106
108
|
region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion
|
|
107
109
|
})
|
|
108
110
|
);
|
|
@@ -211,6 +213,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
|
211
213
|
ssoRoleName: sso_role_name,
|
|
212
214
|
ssoClient,
|
|
213
215
|
clientConfig: init.clientConfig,
|
|
216
|
+
parentClientConfig: init.parentClientConfig,
|
|
214
217
|
profile: profileName
|
|
215
218
|
});
|
|
216
219
|
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
@@ -227,6 +230,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
|
227
230
|
ssoRoleName,
|
|
228
231
|
ssoClient,
|
|
229
232
|
clientConfig: init.clientConfig,
|
|
233
|
+
parentClientConfig: init.parentClientConfig,
|
|
230
234
|
profile: profileName
|
|
231
235
|
});
|
|
232
236
|
}
|
package/dist-es/fromSSO.js
CHANGED
|
@@ -47,6 +47,7 @@ export const fromSSO = (init = {}) => async () => {
|
|
|
47
47
|
ssoRoleName: sso_role_name,
|
|
48
48
|
ssoClient: ssoClient,
|
|
49
49
|
clientConfig: init.clientConfig,
|
|
50
|
+
parentClientConfig: init.parentClientConfig,
|
|
50
51
|
profile: profileName,
|
|
51
52
|
});
|
|
52
53
|
}
|
|
@@ -63,6 +64,7 @@ export const fromSSO = (init = {}) => async () => {
|
|
|
63
64
|
ssoRoleName,
|
|
64
65
|
ssoClient,
|
|
65
66
|
clientConfig: init.clientConfig,
|
|
67
|
+
parentClientConfig: init.parentClientConfig,
|
|
66
68
|
profile: profileName,
|
|
67
69
|
});
|
|
68
70
|
}
|
|
@@ -3,7 +3,7 @@ import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers";
|
|
|
3
3
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
|
4
4
|
import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader";
|
|
5
5
|
const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
6
|
-
export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, profile, logger, }) => {
|
|
6
|
+
export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger, }) => {
|
|
7
7
|
let token;
|
|
8
8
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
9
9
|
if (ssoSession) {
|
|
@@ -42,6 +42,7 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
|
|
|
42
42
|
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso");
|
|
43
43
|
const sso = ssoClient ||
|
|
44
44
|
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
45
|
+
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
45
46
|
region: clientConfig?.region ?? ssoRegion,
|
|
46
47
|
}));
|
|
47
48
|
let ssoResp;
|
|
@@ -3,4 +3,4 @@ import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
|
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, profile, logger, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
|
|
6
|
+
export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.699.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso": "3.
|
|
29
|
-
"@aws-sdk/core": "3.
|
|
30
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/client-sso": "3.696.0",
|
|
29
|
+
"@aws-sdk/core": "3.696.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.699.0",
|
|
31
|
+
"@aws-sdk/types": "3.696.0",
|
|
32
32
|
"@smithy/property-provider": "^3.1.9",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^3.1.10",
|
|
34
|
-
"@smithy/types": "^3.7.
|
|
34
|
+
"@smithy/types": "^3.7.1",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|