@aws-sdk/credential-provider-sso 3.721.0 → 3.726.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 +5 -6
- package/package.json +11 -11
package/dist-cjs/index.js
CHANGED
|
@@ -104,8 +104,8 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
|
104
104
|
const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
|
105
105
|
const sso = ssoClient || new SSOClient2(
|
|
106
106
|
Object.assign({}, clientConfig ?? {}, {
|
|
107
|
-
logger:
|
|
108
|
-
region:
|
|
107
|
+
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
108
|
+
region: clientConfig?.region ?? ssoRegion
|
|
109
109
|
})
|
|
110
110
|
);
|
|
111
111
|
let ssoResp;
|
|
@@ -166,12 +166,11 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
166
166
|
|
|
167
167
|
// src/fromSSO.ts
|
|
168
168
|
var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
|
|
169
|
-
|
|
170
|
-
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
169
|
+
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
171
170
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
172
171
|
const { ssoClient } = init;
|
|
173
172
|
const profileName = (0, import_shared_ini_file_loader.getProfileName)({
|
|
174
|
-
profile: init.profile ??
|
|
173
|
+
profile: init.profile ?? callerClientConfig?.profile
|
|
175
174
|
});
|
|
176
175
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
177
176
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
@@ -184,7 +183,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig
|
|
|
184
183
|
logger: init.logger
|
|
185
184
|
});
|
|
186
185
|
}
|
|
187
|
-
if (profile
|
|
186
|
+
if (profile?.sso_session) {
|
|
188
187
|
const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init);
|
|
189
188
|
const session = ssoSessions[profile.sso_session];
|
|
190
189
|
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.726.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,26 +25,26 @@
|
|
|
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.
|
|
32
|
-
"@smithy/property-provider": "^
|
|
33
|
-
"@smithy/shared-ini-file-loader": "^
|
|
34
|
-
"@smithy/types": "^
|
|
28
|
+
"@aws-sdk/client-sso": "3.726.0",
|
|
29
|
+
"@aws-sdk/core": "3.723.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.723.0",
|
|
31
|
+
"@aws-sdk/types": "3.723.0",
|
|
32
|
+
"@smithy/property-provider": "^4.0.0",
|
|
33
|
+
"@smithy/shared-ini-file-loader": "^4.0.0",
|
|
34
|
+
"@smithy/types": "^4.0.0",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@tsconfig/recommended": "1.0.1",
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^18.19.69",
|
|
40
40
|
"concurrently": "7.0.0",
|
|
41
41
|
"downlevel-dts": "0.10.1",
|
|
42
42
|
"rimraf": "3.0.2",
|
|
43
|
-
"typescript": "~
|
|
43
|
+
"typescript": "~5.2.2"
|
|
44
44
|
},
|
|
45
45
|
"types": "./dist-types/index.d.ts",
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": ">=
|
|
47
|
+
"node": ">=18.0.0"
|
|
48
48
|
},
|
|
49
49
|
"typesVersions": {
|
|
50
50
|
"<4.0": {
|