@aws-sdk/credential-provider-sso 3.713.0 → 3.714.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
|
@@ -165,12 +165,14 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
165
165
|
}, "validateSsoProfile");
|
|
166
166
|
|
|
167
167
|
// src/fromSSO.ts
|
|
168
|
-
var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
168
|
+
var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
|
|
169
169
|
var _a;
|
|
170
170
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
171
171
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
172
172
|
const { ssoClient } = init;
|
|
173
|
-
const profileName = (0, import_shared_ini_file_loader.getProfileName)(
|
|
173
|
+
const profileName = (0, import_shared_ini_file_loader.getProfileName)({
|
|
174
|
+
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
|
|
175
|
+
});
|
|
174
176
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
175
177
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
176
178
|
const profile = profiles[profileName];
|
package/dist-es/fromSSO.js
CHANGED
|
@@ -3,11 +3,13 @@ import { getProfileName, loadSsoSessionData, parseKnownFiles } from "@smithy/sha
|
|
|
3
3
|
import { isSsoProfile } from "./isSsoProfile";
|
|
4
4
|
import { resolveSSOCredentials } from "./resolveSSOCredentials";
|
|
5
5
|
import { validateSsoProfile } from "./validateSsoProfile";
|
|
6
|
-
export const fromSSO = (init = {}) => async () => {
|
|
6
|
+
export const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
7
7
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
8
8
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
9
9
|
const { ssoClient } = init;
|
|
10
|
-
const profileName = getProfileName(
|
|
10
|
+
const profileName = getProfileName({
|
|
11
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
12
|
+
});
|
|
11
13
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
12
14
|
const profiles = await parseKnownFiles(init);
|
|
13
15
|
const profile = profiles[profileName];
|
package/dist-types/fromSSO.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
3
|
import type { SSOClient, SSOClientConfig } from "./loadSso";
|
|
5
4
|
/**
|
|
6
5
|
* @internal
|
|
@@ -66,4 +65,4 @@ export interface FromSSOInit extends SourceProfileInit, CredentialProviderOption
|
|
|
66
65
|
* sso_start_url = https://www.....com/start
|
|
67
66
|
* ```
|
|
68
67
|
*/
|
|
69
|
-
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) =>
|
|
68
|
+
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CredentialProviderOptions,
|
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
2
5
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
6
|
import { SSOClient, SSOClientConfig } from "./loadSso";
|
|
5
7
|
export interface SsoCredentialsParameters {
|
|
6
8
|
ssoStartUrl: string;
|
|
@@ -17,4 +19,4 @@ export interface FromSSOInit
|
|
|
17
19
|
}
|
|
18
20
|
export declare const fromSSO: (
|
|
19
21
|
init?: FromSSOInit & Partial<SsoCredentialsParameters>
|
|
20
|
-
) =>
|
|
22
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.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,10 +25,10 @@
|
|
|
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.714.0",
|
|
29
|
+
"@aws-sdk/core": "3.714.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.714.0",
|
|
31
|
+
"@aws-sdk/types": "3.714.0",
|
|
32
32
|
"@smithy/property-provider": "^3.1.11",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
34
34
|
"@smithy/types": "^3.7.2",
|