@aws-sdk/credential-provider-ini 3.696.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
|
@@ -180,7 +180,9 @@ var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData,
|
|
|
180
180
|
const { fromSSO } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
|
|
181
181
|
return fromSSO({
|
|
182
182
|
profile,
|
|
183
|
-
logger: options.logger
|
|
183
|
+
logger: options.logger,
|
|
184
|
+
parentClientConfig: options.parentClientConfig,
|
|
185
|
+
clientConfig: options.clientConfig
|
|
184
186
|
})().then((creds) => {
|
|
185
187
|
if (profileData.sso_session) {
|
|
186
188
|
return (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
@@ -4,6 +4,8 @@ export const resolveSsoCredentials = async (profile, profileData, options = {})
|
|
|
4
4
|
return fromSSO({
|
|
5
5
|
profile,
|
|
6
6
|
logger: options.logger,
|
|
7
|
+
parentClientConfig: options.parentClientConfig,
|
|
8
|
+
clientConfig: options.clientConfig,
|
|
7
9
|
})().then((creds) => {
|
|
8
10
|
if (profileData.sso_session) {
|
|
9
11
|
return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
package/dist-types/fromIni.d.ts
CHANGED
|
@@ -33,7 +33,8 @@ export interface FromIniInit extends SourceProfileInit, CredentialProviderOption
|
|
|
33
33
|
*/
|
|
34
34
|
roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise<AwsCredentialIdentity>;
|
|
35
35
|
/**
|
|
36
|
-
* STSClientConfig to be used for creating
|
|
36
|
+
* STSClientConfig or SSOClientConfig to be used for creating inner client
|
|
37
|
+
* for auth operations.
|
|
37
38
|
* @internal
|
|
38
39
|
*/
|
|
39
40
|
clientConfig?: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
3
2
|
import type { IniSection, Profile } from "@smithy/types";
|
|
3
|
+
import type { FromIniInit } from "./fromIni";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export declare const resolveSsoCredentials: (profile: string, profileData: IniSection, options?:
|
|
7
|
+
export declare const resolveSsoCredentials: (profile: string, profileData: IniSection, options?: FromIniInit) => Promise<import("@aws-sdk/types").AttributedAwsCredentialIdentity>;
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
* duplicated from \@aws-sdk/credential-provider-sso to defer import.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SsoProfile } from "@aws-sdk/credential-provider-sso";
|
|
2
|
-
import { CredentialProviderOptions } from "@aws-sdk/types";
|
|
3
2
|
import { IniSection, Profile } from "@smithy/types";
|
|
3
|
+
import { FromIniInit } from "./fromIni";
|
|
4
4
|
export declare const resolveSsoCredentials: (
|
|
5
5
|
profile: string,
|
|
6
6
|
profileData: IniSection,
|
|
7
|
-
options?:
|
|
7
|
+
options?: FromIniInit
|
|
8
8
|
) => Promise<import("@aws-sdk/types").AttributedAwsCredentialIdentity>;
|
|
9
9
|
export declare const isSsoProfile: (arg: Profile) => arg is Partial<SsoProfile>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.699.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@aws-sdk/credential-provider-env": "3.696.0",
|
|
30
30
|
"@aws-sdk/credential-provider-http": "3.696.0",
|
|
31
31
|
"@aws-sdk/credential-provider-process": "3.696.0",
|
|
32
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
32
|
+
"@aws-sdk/credential-provider-sso": "3.699.0",
|
|
33
33
|
"@aws-sdk/credential-provider-web-identity": "3.696.0",
|
|
34
34
|
"@aws-sdk/types": "3.696.0",
|
|
35
35
|
"@smithy/credential-provider-imds": "^3.2.6",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "~4.9.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@aws-sdk/client-sts": "^3.
|
|
50
|
+
"@aws-sdk/client-sts": "^3.699.0"
|
|
51
51
|
},
|
|
52
52
|
"types": "./dist-types/index.d.ts",
|
|
53
53
|
"engines": {
|