@aws-sdk/client-sts 3.796.0 → 3.798.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.
@@ -59,6 +59,8 @@ exports.resolveStsAuthConfig = resolveStsAuthConfig;
59
59
  const resolveHttpAuthSchemeConfig = (config) => {
60
60
  const config_0 = (0, exports.resolveStsAuthConfig)(config);
61
61
  const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
62
- return Object.assign(config_1, {});
62
+ return Object.assign(config_1, {
63
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
64
+ });
63
65
  };
64
66
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -53,5 +53,7 @@ export const resolveStsAuthConfig = (input) => Object.assign(input, {
53
53
  export const resolveHttpAuthSchemeConfig = (config) => {
54
54
  const config_0 = resolveStsAuthConfig(config);
55
55
  const config_1 = resolveAwsSdkSigV4Config(config_0);
56
- return Object.assign(config_1, {});
56
+ return Object.assign(config_1, {
57
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
58
+ });
57
59
  };
@@ -1,5 +1,5 @@
1
1
  import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
- import { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
2
+ import { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
3
  import { STSClientResolvedConfig } from "../STSClient";
4
4
  /**
5
5
  * @internal
@@ -39,6 +39,13 @@ export declare const resolveStsAuthConfig: <T>(input: T & StsAuthInputConfig) =>
39
39
  * @internal
40
40
  */
41
41
  export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig {
42
+ /**
43
+ * A comma-separated list of case-sensitive auth scheme names.
44
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
45
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
46
+ * @public
47
+ */
48
+ authSchemePreference?: string[] | Provider<string[]>;
42
49
  /**
43
50
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
44
51
  * @internal
@@ -54,6 +61,13 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSig
54
61
  * @internal
55
62
  */
56
63
  export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig {
64
+ /**
65
+ * A comma-separated list of case-sensitive auth scheme names.
66
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
67
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
68
+ * @public
69
+ */
70
+ readonly authSchemePreference: Provider<string[]>;
57
71
  /**
58
72
  * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
59
73
  * @internal
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
38
38
  } | undefined) => import("@smithy/types").EndpointV2;
39
39
  tls?: boolean | undefined;
40
40
  serviceConfiguredEndpoint?: undefined;
41
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
41
42
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
42
43
  schemeId: string;
43
44
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -45,6 +45,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
45
45
  } | undefined) => import("@smithy/types").EndpointV2;
46
46
  tls?: boolean | undefined;
47
47
  serviceConfiguredEndpoint?: undefined;
48
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
48
49
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
49
50
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
50
51
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
@@ -37,6 +37,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
37
37
  } | undefined) => import("@smithy/types").EndpointV2;
38
38
  tls?: boolean | undefined;
39
39
  serviceConfiguredEndpoint?: undefined;
40
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
40
41
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
41
42
  schemeId: string;
42
43
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
@@ -10,6 +10,7 @@ import {
10
10
  HttpAuthSchemeParameters,
11
11
  HttpAuthSchemeParametersProvider,
12
12
  HttpAuthSchemeProvider,
13
+ Provider,
13
14
  } from "@smithy/types";
14
15
  import { STSClientResolvedConfig } from "../STSClient";
15
16
  export interface STSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
@@ -40,12 +41,14 @@ export declare const resolveStsAuthConfig: <T>(
40
41
  export interface HttpAuthSchemeInputConfig
41
42
  extends StsAuthInputConfig,
42
43
  AwsSdkSigV4AuthInputConfig {
44
+ authSchemePreference?: string[] | Provider<string[]>;
43
45
  httpAuthSchemes?: HttpAuthScheme[];
44
46
  httpAuthSchemeProvider?: STSHttpAuthSchemeProvider;
45
47
  }
46
48
  export interface HttpAuthSchemeResolvedConfig
47
49
  extends StsAuthResolvedConfig,
48
50
  AwsSdkSigV4AuthResolvedConfig {
51
+ readonly authSchemePreference: Provider<string[]>;
49
52
  readonly httpAuthSchemes: HttpAuthScheme[];
50
53
  readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider;
51
54
  }
@@ -74,6 +74,10 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
74
74
  ) => import("@smithy/types").EndpointV2;
75
75
  tls?: boolean | undefined;
76
76
  serviceConfiguredEndpoint?: undefined;
77
+ authSchemePreference?:
78
+ | string[]
79
+ | import("@smithy/types").Provider<string[]>
80
+ | undefined;
77
81
  httpAuthSchemes:
78
82
  | import("@smithy/types").HttpAuthScheme[]
79
83
  | (
@@ -90,6 +90,10 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
90
90
  ) => import("@smithy/types").EndpointV2;
91
91
  tls?: boolean | undefined;
92
92
  serviceConfiguredEndpoint?: undefined;
93
+ authSchemePreference?:
94
+ | string[]
95
+ | import("@smithy/types").Provider<string[]>
96
+ | undefined;
93
97
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
94
98
  credentials?:
95
99
  | import("@smithy/types").AwsCredentialIdentity
@@ -78,6 +78,10 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
78
78
  ) => import("@smithy/types").EndpointV2;
79
79
  tls?: boolean | undefined;
80
80
  serviceConfiguredEndpoint?: undefined;
81
+ authSchemePreference?:
82
+ | string[]
83
+ | import("@smithy/types").Provider<string[]>
84
+ | undefined;
81
85
  httpAuthSchemes:
82
86
  | import("@smithy/types").HttpAuthScheme[]
83
87
  | (
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.796.0",
4
+ "version": "3.798.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -22,38 +22,38 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/core": "3.796.0",
26
- "@aws-sdk/credential-provider-node": "3.796.0",
25
+ "@aws-sdk/core": "3.798.0",
26
+ "@aws-sdk/credential-provider-node": "3.798.0",
27
27
  "@aws-sdk/middleware-host-header": "3.775.0",
28
28
  "@aws-sdk/middleware-logger": "3.775.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
30
- "@aws-sdk/middleware-user-agent": "3.796.0",
30
+ "@aws-sdk/middleware-user-agent": "3.798.0",
31
31
  "@aws-sdk/region-config-resolver": "3.775.0",
32
32
  "@aws-sdk/types": "3.775.0",
33
33
  "@aws-sdk/util-endpoints": "3.787.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.775.0",
35
- "@aws-sdk/util-user-agent-node": "3.796.0",
35
+ "@aws-sdk/util-user-agent-node": "3.798.0",
36
36
  "@smithy/config-resolver": "^4.1.0",
37
- "@smithy/core": "^3.2.0",
37
+ "@smithy/core": "^3.3.0",
38
38
  "@smithy/fetch-http-handler": "^5.0.2",
39
39
  "@smithy/hash-node": "^4.0.2",
40
40
  "@smithy/invalid-dependency": "^4.0.2",
41
41
  "@smithy/middleware-content-length": "^4.0.2",
42
- "@smithy/middleware-endpoint": "^4.1.0",
43
- "@smithy/middleware-retry": "^4.1.0",
42
+ "@smithy/middleware-endpoint": "^4.1.1",
43
+ "@smithy/middleware-retry": "^4.1.1",
44
44
  "@smithy/middleware-serde": "^4.0.3",
45
45
  "@smithy/middleware-stack": "^4.0.2",
46
46
  "@smithy/node-config-provider": "^4.0.2",
47
47
  "@smithy/node-http-handler": "^4.0.4",
48
48
  "@smithy/protocol-http": "^5.1.0",
49
- "@smithy/smithy-client": "^4.2.0",
49
+ "@smithy/smithy-client": "^4.2.1",
50
50
  "@smithy/types": "^4.2.0",
51
51
  "@smithy/url-parser": "^4.0.2",
52
52
  "@smithy/util-base64": "^4.0.0",
53
53
  "@smithy/util-body-length-browser": "^4.0.0",
54
54
  "@smithy/util-body-length-node": "^4.0.0",
55
- "@smithy/util-defaults-mode-browser": "^4.0.8",
56
- "@smithy/util-defaults-mode-node": "^4.0.8",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.9",
56
+ "@smithy/util-defaults-mode-node": "^4.0.9",
57
57
  "@smithy/util-endpoints": "^3.0.2",
58
58
  "@smithy/util-middleware": "^4.0.2",
59
59
  "@smithy/util-retry": "^4.0.2",