@aws-sdk/client-sts 3.489.0 → 3.490.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/STSClient.js +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-cjs/runtimeConfig.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js +1 -1
- package/dist-es/STSClient.js +8 -8
- package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-es/runtimeConfig.js +2 -2
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/STSClient.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/dist-types/ts3.4/STSClient.d.ts +2 -2
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/package.json +3 -3
package/dist-cjs/STSClient.js
CHANGED
|
@@ -17,14 +17,6 @@ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
|
17
17
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
18
18
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
19
19
|
class STSClient extends smithy_client_1.Client {
|
|
20
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
21
|
-
return httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider;
|
|
22
|
-
}
|
|
23
|
-
getIdentityProviderConfigProvider() {
|
|
24
|
-
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
25
|
-
"aws.auth#sigv4": config.credentials,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
20
|
constructor(...[configuration]) {
|
|
29
21
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
30
22
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
@@ -52,5 +44,13 @@ class STSClient extends smithy_client_1.Client {
|
|
|
52
44
|
destroy() {
|
|
53
45
|
super.destroy();
|
|
54
46
|
}
|
|
47
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
48
|
+
return httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider;
|
|
49
|
+
}
|
|
50
|
+
getIdentityProviderConfigProvider() {
|
|
51
|
+
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
52
|
+
"aws.auth#sigv4": config.credentials,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
55
|
}
|
|
56
56
|
exports.STSClient = STSClient;
|
|
@@ -59,7 +59,7 @@ const resolveStsAuthConfig = (input) => ({
|
|
|
59
59
|
exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
|
60
60
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
61
61
|
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
|
62
|
-
const config_1 = (0, core_1.
|
|
62
|
+
const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
|
|
63
63
|
return {
|
|
64
64
|
...config_1,
|
|
65
65
|
};
|
|
@@ -39,7 +39,7 @@ const getRuntimeConfig = (config) => {
|
|
|
39
39
|
schemeId: "aws.auth#sigv4",
|
|
40
40
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
|
41
41
|
(async (idProps) => await (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider)(idProps?.__config || {})()),
|
|
42
|
-
signer: new core_1.
|
|
42
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
schemeId: "smithy.api#noAuth",
|
|
@@ -22,7 +22,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
22
|
{
|
|
23
23
|
schemeId: "aws.auth#sigv4",
|
|
24
24
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new core_1.
|
|
25
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
schemeId: "smithy.api#noAuth",
|
package/dist-es/STSClient.js
CHANGED
|
@@ -14,14 +14,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class STSClient extends __Client {
|
|
17
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
18
|
-
return defaultSTSHttpAuthSchemeParametersProvider;
|
|
19
|
-
}
|
|
20
|
-
getIdentityProviderConfigProvider() {
|
|
21
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
22
|
-
"aws.auth#sigv4": config.credentials,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
17
|
constructor(...[configuration]) {
|
|
26
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
27
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -49,4 +41,12 @@ export class STSClient extends __Client {
|
|
|
49
41
|
destroy() {
|
|
50
42
|
super.destroy();
|
|
51
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultSTSHttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
2
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
3
|
import { STSClient } from "../STSClient";
|
|
4
4
|
export const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
@@ -53,7 +53,7 @@ export const resolveStsAuthConfig = (input) => ({
|
|
|
53
53
|
});
|
|
54
54
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
55
55
|
const config_0 = resolveStsAuthConfig(config);
|
|
56
|
-
const config_1 =
|
|
56
|
+
const config_1 = resolveAwsSdkSigV4Config(config_0);
|
|
57
57
|
return {
|
|
58
58
|
...config_1,
|
|
59
59
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers";
|
|
3
|
-
import {
|
|
3
|
+
import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
6
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -35,7 +35,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
schemeId: "aws.auth#sigv4",
|
|
36
36
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
|
|
37
37
|
(async (idProps) => await decorateDefaultCredentialProvider(credentialDefaultProvider)(idProps?.__config || {})()),
|
|
38
|
-
signer: new
|
|
38
|
+
signer: new AwsSdkSigV4Signer(),
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
schemeId: "smithy.api#noAuth",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoAuthSigner } from "@smithy/core";
|
|
3
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
@@ -19,7 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
19
19
|
{
|
|
20
20
|
schemeId: "aws.auth#sigv4",
|
|
21
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
schemeId: "smithy.api#noAuth",
|
|
@@ -170,8 +170,6 @@ export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
170
170
|
* The resolved configuration of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}.
|
|
171
171
|
*/
|
|
172
172
|
readonly config: STSClientResolvedConfig;
|
|
173
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
174
|
-
private getIdentityProviderConfigProvider;
|
|
175
173
|
constructor(...[configuration]: __CheckOptionalClientConfig<STSClientConfig>);
|
|
176
174
|
/**
|
|
177
175
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -179,4 +177,6 @@ export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
179
177
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
180
178
|
*/
|
|
181
179
|
destroy(): void;
|
|
180
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
181
|
+
private getIdentityProviderConfigProvider;
|
|
182
182
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
2
|
import { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
3
|
import { STSClientResolvedConfig } from "../STSClient";
|
|
4
4
|
/**
|
|
@@ -38,7 +38,7 @@ export declare const resolveStsAuthConfig: <T>(input: T & StsAuthInputConfig) =>
|
|
|
38
38
|
/**
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
|
-
export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig,
|
|
41
|
+
export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig {
|
|
42
42
|
/**
|
|
43
43
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
44
44
|
* @internal
|
|
@@ -53,7 +53,7 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AWSSDKSig
|
|
|
53
53
|
/**
|
|
54
54
|
* @internal
|
|
55
55
|
*/
|
|
56
|
-
export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig,
|
|
56
|
+
export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig {
|
|
57
57
|
/**
|
|
58
58
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
59
59
|
* @internal
|
|
@@ -68,4 +68,4 @@ export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AWS
|
|
|
68
68
|
/**
|
|
69
69
|
* @internal
|
|
70
70
|
*/
|
|
71
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig &
|
|
71
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -40,7 +40,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
40
40
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
41
41
|
schemeId: string;
|
|
42
42
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
43
|
-
signer: import("@aws-sdk/core").
|
|
43
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
44
44
|
} | {
|
|
45
45
|
schemeId: string;
|
|
46
46
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
@@ -39,7 +39,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
39
39
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
40
40
|
schemeId: string;
|
|
41
41
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
42
|
-
signer: import("@aws-sdk/core").
|
|
42
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
43
43
|
} | {
|
|
44
44
|
schemeId: string;
|
|
45
45
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoAuthSigner } from "@smithy/core";
|
|
3
3
|
import { IdentityProviderConfig } from "@smithy/types";
|
|
4
4
|
import { STSClientConfig } from "./STSClient";
|
|
@@ -18,7 +18,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
18
18
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
19
19
|
schemeId: string;
|
|
20
20
|
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
21
|
-
signer:
|
|
21
|
+
signer: AwsSdkSigV4Signer;
|
|
22
22
|
} | {
|
|
23
23
|
schemeId: string;
|
|
24
24
|
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
@@ -158,8 +158,8 @@ export declare class STSClient extends __Client<
|
|
|
158
158
|
STSClientResolvedConfig
|
|
159
159
|
> {
|
|
160
160
|
readonly config: STSClientResolvedConfig;
|
|
161
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
162
|
-
private getIdentityProviderConfigProvider;
|
|
163
161
|
constructor(...[configuration]: __CheckOptionalClientConfig<STSClientConfig>);
|
|
164
162
|
destroy(): void;
|
|
163
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
164
|
+
private getIdentityProviderConfigProvider;
|
|
165
165
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
5
|
} from "@aws-sdk/core";
|
|
6
6
|
import {
|
|
7
7
|
Client,
|
|
@@ -39,16 +39,16 @@ export declare const resolveStsAuthConfig: <T>(
|
|
|
39
39
|
) => T & StsAuthResolvedConfig;
|
|
40
40
|
export interface HttpAuthSchemeInputConfig
|
|
41
41
|
extends StsAuthInputConfig,
|
|
42
|
-
|
|
42
|
+
AwsSdkSigV4AuthInputConfig {
|
|
43
43
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
44
|
httpAuthSchemeProvider?: STSHttpAuthSchemeProvider;
|
|
45
45
|
}
|
|
46
46
|
export interface HttpAuthSchemeResolvedConfig
|
|
47
47
|
extends StsAuthResolvedConfig,
|
|
48
|
-
|
|
48
|
+
AwsSdkSigV4AuthResolvedConfig {
|
|
49
49
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
50
50
|
readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider;
|
|
51
51
|
}
|
|
52
52
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
53
|
-
config: T & HttpAuthSchemeInputConfig &
|
|
53
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
54
54
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -87,7 +87,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
87
87
|
import("@smithy/types").Identity
|
|
88
88
|
>
|
|
89
89
|
| undefined;
|
|
90
|
-
signer: import("@aws-sdk/core").
|
|
90
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
91
91
|
}
|
|
92
92
|
| {
|
|
93
93
|
schemeId: string;
|
|
@@ -78,7 +78,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
78
78
|
import("@smithy/types").Identity
|
|
79
79
|
>
|
|
80
80
|
| undefined;
|
|
81
|
-
signer: import("@aws-sdk/core").
|
|
81
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
82
82
|
}
|
|
83
83
|
| {
|
|
84
84
|
schemeId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoAuthSigner } from "@smithy/core";
|
|
3
3
|
import { IdentityProviderConfig } from "@smithy/types";
|
|
4
4
|
import { STSClientConfig } from "./STSClient";
|
|
@@ -29,7 +29,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
29
29
|
import("@smithy/types").Identity
|
|
30
30
|
>
|
|
31
31
|
| undefined;
|
|
32
|
-
signer:
|
|
32
|
+
signer: AwsSdkSigV4Signer;
|
|
33
33
|
}
|
|
34
34
|
| {
|
|
35
35
|
schemeId: string;
|
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.490.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,8 +22,8 @@
|
|
|
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.
|
|
25
|
+
"@aws-sdk/core": "3.490.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.490.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.489.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.489.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.489.0",
|