@aws-sdk/client-sts 3.481.0 → 3.485.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.
|
@@ -40,6 +40,7 @@ const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
|
40
40
|
secretAccessKey: Credentials.SecretAccessKey,
|
|
41
41
|
sessionToken: Credentials.SessionToken,
|
|
42
42
|
expiration: Credentials.Expiration,
|
|
43
|
+
credentialScope: Credentials.CredentialScope,
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
};
|
|
@@ -64,6 +65,7 @@ const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => {
|
|
|
64
65
|
secretAccessKey: Credentials.SecretAccessKey,
|
|
65
66
|
sessionToken: Credentials.SessionToken,
|
|
66
67
|
expiration: Credentials.Expiration,
|
|
68
|
+
credentialScope: Credentials.CredentialScope,
|
|
67
69
|
};
|
|
68
70
|
};
|
|
69
71
|
};
|
|
@@ -37,6 +37,7 @@ export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
|
37
37
|
secretAccessKey: Credentials.SecretAccessKey,
|
|
38
38
|
sessionToken: Credentials.SessionToken,
|
|
39
39
|
expiration: Credentials.Expiration,
|
|
40
|
+
credentialScope: Credentials.CredentialScope,
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
};
|
|
@@ -60,6 +61,7 @@ export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor)
|
|
|
60
61
|
secretAccessKey: Credentials.SecretAccessKey,
|
|
61
62
|
sessionToken: Credentials.SessionToken,
|
|
62
63
|
expiration: Credentials.Expiration,
|
|
64
|
+
credentialScope: Credentials.CredentialScope,
|
|
63
65
|
};
|
|
64
66
|
};
|
|
65
67
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider } from "@smithy/types";
|
|
1
|
+
import { AwsCredentialIdentity, Provider } from "@smithy/types";
|
|
3
2
|
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
4
3
|
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
5
4
|
import type { STSClient, STSClientConfig } from "./STSClient";
|
|
6
5
|
/**
|
|
7
6
|
* @internal
|
|
8
7
|
*/
|
|
9
|
-
export type RoleAssumer = (sourceCreds:
|
|
8
|
+
export type RoleAssumer = (sourceCreds: AwsCredentialIdentity, params: AssumeRoleCommandInput) => Promise<AwsCredentialIdentity>;
|
|
10
9
|
/**
|
|
11
10
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
12
11
|
* @internal
|
|
@@ -15,7 +14,7 @@ export declare const getDefaultRoleAssumer: (stsOptions: Pick<STSClientConfig, "
|
|
|
15
14
|
/**
|
|
16
15
|
* @internal
|
|
17
16
|
*/
|
|
18
|
-
export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityCommandInput) => Promise<
|
|
17
|
+
export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityCommandInput) => Promise<AwsCredentialIdentity>;
|
|
19
18
|
/**
|
|
20
19
|
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
21
20
|
* @internal
|
|
@@ -24,7 +23,7 @@ export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: Pick<STS
|
|
|
24
23
|
/**
|
|
25
24
|
* @internal
|
|
26
25
|
*/
|
|
27
|
-
export type DefaultCredentialProvider = (input: any) => Provider<
|
|
26
|
+
export type DefaultCredentialProvider = (input: any) => Provider<AwsCredentialIdentity>;
|
|
28
27
|
/**
|
|
29
28
|
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
30
29
|
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider } from "@smithy/types";
|
|
1
|
+
import { AwsCredentialIdentity, Provider } from "@smithy/types";
|
|
3
2
|
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
4
3
|
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
5
4
|
import { STSClient, STSClientConfig } from "./STSClient";
|
|
6
5
|
export type RoleAssumer = (
|
|
7
|
-
sourceCreds:
|
|
6
|
+
sourceCreds: AwsCredentialIdentity,
|
|
8
7
|
params: AssumeRoleCommandInput
|
|
9
|
-
) => Promise<
|
|
8
|
+
) => Promise<AwsCredentialIdentity>;
|
|
10
9
|
export declare const getDefaultRoleAssumer: (
|
|
11
10
|
stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
|
|
12
11
|
stsClientCtor: new (options: STSClientConfig) => STSClient
|
|
13
12
|
) => RoleAssumer;
|
|
14
13
|
export type RoleAssumerWithWebIdentity = (
|
|
15
14
|
params: AssumeRoleWithWebIdentityCommandInput
|
|
16
|
-
) => Promise<
|
|
15
|
+
) => Promise<AwsCredentialIdentity>;
|
|
17
16
|
export declare const getDefaultRoleAssumerWithWebIdentity: (
|
|
18
17
|
stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
|
|
19
18
|
stsClientCtor: new (options: STSClientConfig) => STSClient
|
|
20
19
|
) => RoleAssumerWithWebIdentity;
|
|
21
|
-
export type DefaultCredentialProvider = (
|
|
20
|
+
export type DefaultCredentialProvider = (
|
|
21
|
+
input: any
|
|
22
|
+
) => Provider<AwsCredentialIdentity>;
|
|
22
23
|
export declare const decorateDefaultCredentialProvider: (
|
|
23
24
|
provider: DefaultCredentialProvider
|
|
24
25
|
) => DefaultCredentialProvider;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.485.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -22,41 +22,41 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0.
|
|
37
|
-
"@smithy/core": "^1.2.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.3.
|
|
39
|
-
"@smithy/hash-node": "^2.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0.
|
|
44
|
-
"@smithy/middleware-serde": "^2.0.
|
|
45
|
-
"@smithy/middleware-stack": "^2.0.
|
|
46
|
-
"@smithy/node-config-provider": "^2.1.
|
|
47
|
-
"@smithy/node-http-handler": "^2.2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0.
|
|
49
|
-
"@smithy/smithy-client": "^2.2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0.
|
|
25
|
+
"@aws-sdk/core": "3.485.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.485.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.485.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.485.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.485.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.485.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.485.0",
|
|
32
|
+
"@aws-sdk/types": "3.485.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.485.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.485.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.485.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.0.23",
|
|
37
|
+
"@smithy/core": "^1.2.2",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.3.2",
|
|
39
|
+
"@smithy/hash-node": "^2.0.18",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.0.16",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.0.18",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.3.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.0.26",
|
|
44
|
+
"@smithy/middleware-serde": "^2.0.16",
|
|
45
|
+
"@smithy/middleware-stack": "^2.0.10",
|
|
46
|
+
"@smithy/node-config-provider": "^2.1.9",
|
|
47
|
+
"@smithy/node-http-handler": "^2.2.2",
|
|
48
|
+
"@smithy/protocol-http": "^3.0.12",
|
|
49
|
+
"@smithy/smithy-client": "^2.2.1",
|
|
50
|
+
"@smithy/types": "^2.8.0",
|
|
51
|
+
"@smithy/url-parser": "^2.0.16",
|
|
52
52
|
"@smithy/util-base64": "^2.0.1",
|
|
53
53
|
"@smithy/util-body-length-browser": "^2.0.1",
|
|
54
54
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
57
|
-
"@smithy/util-endpoints": "^1.0.
|
|
58
|
-
"@smithy/util-middleware": "^2.0.
|
|
59
|
-
"@smithy/util-retry": "^2.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.0.24",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.0.32",
|
|
57
|
+
"@smithy/util-endpoints": "^1.0.8",
|
|
58
|
+
"@smithy/util-middleware": "^2.0.9",
|
|
59
|
+
"@smithy/util-retry": "^2.0.9",
|
|
60
60
|
"@smithy/util-utf8": "^2.0.2",
|
|
61
61
|
"fast-xml-parser": "4.2.5",
|
|
62
62
|
"tslib": "^2.5.0"
|