@cdk8s/awscdk-resolver 0.0.58 → 0.0.59
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/.jsii +2 -2
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +65 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +10 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +17 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +10 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeExtensions.js +3 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +4 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +6 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +11 -9
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +7 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +68 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +67 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +19 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +62 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js +3 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +9 -6
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +17 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +9 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +47 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso/package.json +5 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +64 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +66 -9
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +17 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +58 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +0 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +3 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +13 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +13 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +12 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +14 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +11 -9
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +30 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +29 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +33 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +7 -7
- package/node_modules/@aws-sdk/client-sts/package.json +5 -5
- package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-signing/LICENSE +0 -201
- package/node_modules/@aws-sdk/middleware-signing/README.md +0 -4
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +0 -235
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +0 -107
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthMiddleware.js +0 -55
- package/node_modules/@aws-sdk/middleware-signing/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getSkewCorrectedDate.js +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getUpdatedSystemClockOffset.js +0 -8
- package/node_modules/@aws-sdk/middleware-signing/dist-es/utils/isClockSkewed.js +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthConfiguration.d.ts +0 -99
- package/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthMiddleware.d.ts +0 -6
- package/node_modules/@aws-sdk/middleware-signing/dist-types/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthConfiguration.d.ts +0 -68
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthMiddleware.d.ts +0 -19
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getSkewCorrectedDate.d.ts +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getUpdatedSystemClockOffset.d.ts +0 -4
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/isClockSkewed.d.ts +0 -4
- package/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getSkewCorrectedDate.d.ts +0 -6
- package/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getUpdatedSystemClockOffset.d.ts +0 -8
- package/node_modules/@aws-sdk/middleware-signing/dist-types/utils/isClockSkewed.d.ts +0 -7
- package/node_modules/@aws-sdk/middleware-signing/package.json +0 -59
- /package/node_modules/@aws-sdk/{middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js → client-cloudformation/dist-cjs/auth/httpAuthExtensionConfiguration.js} +0 -0
- /package/node_modules/@aws-sdk/{middleware-signing/dist-cjs/utils/isClockSkewed.js → client-sso/dist-cjs/auth/httpAuthExtensionConfiguration.js} +0 -0
- /package/node_modules/@aws-sdk/{middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js → client-sso-oidc/dist-cjs/auth/httpAuthExtensionConfiguration.js} +0 -0
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
21
21
|
serviceId: string;
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
24
|
-
region: string | import("@smithy/types").Provider<any>;
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
26
24
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
25
|
+
region: string | import("@smithy/types").Provider<any>;
|
26
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
27
27
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
28
28
|
retryMode: string | import("@smithy/types").Provider<string>;
|
29
29
|
logger: import("@smithy/types").Logger;
|
@@ -35,11 +35,13 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
35
35
|
}) => import("@smithy/types").EndpointV2;
|
36
36
|
tls?: boolean | undefined;
|
37
37
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
38
|
-
|
38
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
39
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
40
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFormationHttpAuthSchemeProvider;
|
41
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
39
42
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
40
43
|
signingEscapePath?: boolean | undefined;
|
41
44
|
systemClockOffset?: number | undefined;
|
42
45
|
signingRegion?: string | undefined;
|
43
46
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
44
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
45
47
|
};
|
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
11
11
|
logger?: import("@smithy/types").Logger | undefined;
|
12
12
|
}) => import("@smithy/types").EndpointV2;
|
13
13
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
14
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFormationHttpAuthSchemeProvider;
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
14
16
|
logger: import("@smithy/types").Logger;
|
15
17
|
serviceId: string;
|
16
18
|
urlParser: import("@smithy/types").UrlParser;
|
package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts
CHANGED
@@ -2,15 +2,10 @@ import {
|
|
2
2
|
HostHeaderInputConfig,
|
3
3
|
HostHeaderResolvedConfig,
|
4
4
|
} from "@aws-sdk/middleware-host-header";
|
5
|
-
import {
|
6
|
-
AwsAuthInputConfig,
|
7
|
-
AwsAuthResolvedConfig,
|
8
|
-
} from "@aws-sdk/middleware-signing";
|
9
5
|
import {
|
10
6
|
UserAgentInputConfig,
|
11
7
|
UserAgentResolvedConfig,
|
12
8
|
} from "@aws-sdk/middleware-user-agent";
|
13
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
14
9
|
import {
|
15
10
|
RegionInputConfig,
|
16
11
|
RegionResolvedConfig,
|
@@ -31,6 +26,7 @@ import {
|
|
31
26
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
32
27
|
} from "@smithy/smithy-client";
|
33
28
|
import {
|
29
|
+
AwsCredentialIdentityProvider,
|
34
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
35
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
36
32
|
ChecksumConstructor as __ChecksumConstructor,
|
@@ -45,6 +41,10 @@ import {
|
|
45
41
|
UrlParser as __UrlParser,
|
46
42
|
UserAgent as __UserAgent,
|
47
43
|
} from "@smithy/types";
|
44
|
+
import {
|
45
|
+
HttpAuthSchemeInputConfig,
|
46
|
+
HttpAuthSchemeResolvedConfig,
|
47
|
+
} from "./auth/httpAuthSchemeProvider";
|
48
48
|
import {
|
49
49
|
ActivateOrganizationsAccessCommandInput,
|
50
50
|
ActivateOrganizationsAccessCommandOutput,
|
@@ -556,9 +556,9 @@ export interface ClientDefaults
|
|
556
556
|
serviceId?: string;
|
557
557
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
558
558
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
559
|
-
region?: string | __Provider<string>;
|
560
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
561
559
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
560
|
+
region?: string | __Provider<string>;
|
561
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
562
562
|
maxAttempts?: number | __Provider<number>;
|
563
563
|
retryMode?: string | __Provider<string>;
|
564
564
|
logger?: __Logger;
|
@@ -573,8 +573,8 @@ export type CloudFormationClientConfigType = Partial<
|
|
573
573
|
EndpointInputConfig<EndpointParameters> &
|
574
574
|
RetryInputConfig &
|
575
575
|
HostHeaderInputConfig &
|
576
|
-
AwsAuthInputConfig &
|
577
576
|
UserAgentInputConfig &
|
577
|
+
HttpAuthSchemeInputConfig &
|
578
578
|
ClientInputEndpointParameters;
|
579
579
|
export interface CloudFormationClientConfig
|
580
580
|
extends CloudFormationClientConfigType {}
|
@@ -586,8 +586,8 @@ export type CloudFormationClientResolvedConfigType =
|
|
586
586
|
EndpointResolvedConfig<EndpointParameters> &
|
587
587
|
RetryResolvedConfig &
|
588
588
|
HostHeaderResolvedConfig &
|
589
|
-
AwsAuthResolvedConfig &
|
590
589
|
UserAgentResolvedConfig &
|
590
|
+
HttpAuthSchemeResolvedConfig &
|
591
591
|
ClientResolvedEndpointParameters;
|
592
592
|
export interface CloudFormationClientResolvedConfig
|
593
593
|
extends CloudFormationClientResolvedConfigType {}
|
@@ -602,4 +602,6 @@ export declare class CloudFormationClient extends __Client<
|
|
602
602
|
...[configuration]: __CheckOptionalClientConfig<CloudFormationClientConfig>
|
603
603
|
);
|
604
604
|
destroy(): void;
|
605
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
606
|
+
private getIdentityProviderConfigProvider;
|
605
607
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import {
|
2
|
+
AwsCredentialIdentity,
|
3
|
+
AwsCredentialIdentityProvider,
|
4
|
+
HttpAuthScheme,
|
5
|
+
} from "@smithy/types";
|
6
|
+
import { CloudFormationHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
10
|
+
setHttpAuthSchemeProvider(
|
11
|
+
httpAuthSchemeProvider: CloudFormationHttpAuthSchemeProvider
|
12
|
+
): void;
|
13
|
+
httpAuthSchemeProvider(): CloudFormationHttpAuthSchemeProvider;
|
14
|
+
setCredentials(
|
15
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
|
16
|
+
): void;
|
17
|
+
credentials():
|
18
|
+
| AwsCredentialIdentity
|
19
|
+
| AwsCredentialIdentityProvider
|
20
|
+
| undefined;
|
21
|
+
}
|
22
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
23
|
+
httpAuthSchemes: HttpAuthScheme[];
|
24
|
+
httpAuthSchemeProvider: CloudFormationHttpAuthSchemeProvider;
|
25
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
26
|
+
}>;
|
27
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
28
|
+
runtimeConfig: HttpAuthRuntimeConfig
|
29
|
+
) => HttpAuthExtensionConfiguration;
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
31
|
+
config: HttpAuthExtensionConfiguration
|
32
|
+
) => HttpAuthRuntimeConfig;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import {
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
5
|
+
} from "@aws-sdk/core";
|
6
|
+
import {
|
7
|
+
HandlerExecutionContext,
|
8
|
+
HttpAuthScheme,
|
9
|
+
HttpAuthSchemeParameters,
|
10
|
+
HttpAuthSchemeParametersProvider,
|
11
|
+
HttpAuthSchemeProvider,
|
12
|
+
} from "@smithy/types";
|
13
|
+
import { CloudFormationClientResolvedConfig } from "../CloudFormationClient";
|
14
|
+
export interface CloudFormationHttpAuthSchemeParameters
|
15
|
+
extends HttpAuthSchemeParameters {
|
16
|
+
region?: string;
|
17
|
+
}
|
18
|
+
export interface CloudFormationHttpAuthSchemeParametersProvider
|
19
|
+
extends HttpAuthSchemeParametersProvider<
|
20
|
+
CloudFormationClientResolvedConfig,
|
21
|
+
HandlerExecutionContext,
|
22
|
+
CloudFormationHttpAuthSchemeParameters,
|
23
|
+
object
|
24
|
+
> {}
|
25
|
+
export declare const defaultCloudFormationHttpAuthSchemeParametersProvider: (
|
26
|
+
config: CloudFormationClientResolvedConfig,
|
27
|
+
context: HandlerExecutionContext,
|
28
|
+
input: object
|
29
|
+
) => Promise<CloudFormationHttpAuthSchemeParameters>;
|
30
|
+
export interface CloudFormationHttpAuthSchemeProvider
|
31
|
+
extends HttpAuthSchemeProvider<CloudFormationHttpAuthSchemeParameters> {}
|
32
|
+
export declare const defaultCloudFormationHttpAuthSchemeProvider: CloudFormationHttpAuthSchemeProvider;
|
33
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
34
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
35
|
+
httpAuthSchemeProvider?: CloudFormationHttpAuthSchemeProvider;
|
36
|
+
}
|
37
|
+
export interface HttpAuthSchemeResolvedConfig
|
38
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
39
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
40
|
+
readonly httpAuthSchemeProvider: CloudFormationHttpAuthSchemeProvider;
|
41
|
+
}
|
42
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
43
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
44
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/extensionConfiguration.d.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
4
5
|
export interface CloudFormationExtensionConfiguration
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
6
7
|
DefaultExtensionConfiguration,
|
7
|
-
AwsRegionExtensionConfiguration
|
8
|
+
AwsRegionExtensionConfiguration,
|
9
|
+
HttpAuthExtensionConfiguration {}
|
package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts
CHANGED
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
9
9
|
credentialDefaultProvider: (
|
10
10
|
input: any
|
11
|
-
) => import("@smithy/types").
|
11
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
13
13
|
import("@smithy/types").UserAgent
|
14
14
|
>;
|
@@ -72,11 +72,12 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
72
72
|
| import("@smithy/types").RetryStrategy
|
73
73
|
| import("@smithy/types").RetryStrategyV2
|
74
74
|
| undefined;
|
75
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
76
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
77
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFormationHttpAuthSchemeProvider;
|
75
78
|
credentials?:
|
76
79
|
| import("@smithy/types").AwsCredentialIdentity
|
77
|
-
| import("@smithy/types").
|
78
|
-
import("@smithy/types").AwsCredentialIdentity
|
79
|
-
>
|
80
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
80
81
|
| undefined;
|
81
82
|
signer?:
|
82
83
|
| import("@smithy/types").RequestSigner
|
@@ -93,5 +94,4 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
93
94
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
94
95
|
) => import("@smithy/types").RequestSigner)
|
95
96
|
| undefined;
|
96
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
97
97
|
};
|
@@ -76,11 +76,12 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
76
76
|
| import("@smithy/types").RetryStrategy
|
77
77
|
| import("@smithy/types").RetryStrategyV2
|
78
78
|
| undefined;
|
79
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
80
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
81
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFormationHttpAuthSchemeProvider;
|
79
82
|
credentials?:
|
80
83
|
| import("@smithy/types").AwsCredentialIdentity
|
81
|
-
| import("@smithy/types").
|
82
|
-
import("@smithy/types").AwsCredentialIdentity
|
83
|
-
>
|
84
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
84
85
|
| undefined;
|
85
86
|
signer?:
|
86
87
|
| import("@smithy/types").RequestSigner
|
@@ -97,5 +98,4 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
97
98
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
98
99
|
) => import("@smithy/types").RequestSigner)
|
99
100
|
| undefined;
|
100
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
101
101
|
};
|
package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts
CHANGED
@@ -29,13 +29,13 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
29
29
|
serviceId: string;
|
30
30
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
31
31
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
32
|
-
region: string | import("@smithy/types").Provider<any>;
|
33
|
-
credentialDefaultProvider: (
|
34
|
-
input: any
|
35
|
-
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
36
32
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
37
33
|
import("@smithy/types").UserAgent
|
38
34
|
>;
|
35
|
+
region: string | import("@smithy/types").Provider<any>;
|
36
|
+
credentialDefaultProvider: (
|
37
|
+
input: any
|
38
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
39
39
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
40
40
|
retryMode: string | import("@smithy/types").Provider<string>;
|
41
41
|
logger: import("@smithy/types").Logger;
|
@@ -63,11 +63,12 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
63
63
|
| import("@smithy/types").RetryStrategy
|
64
64
|
| import("@smithy/types").RetryStrategyV2
|
65
65
|
| undefined;
|
66
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
67
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
68
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFormationHttpAuthSchemeProvider;
|
66
69
|
credentials?:
|
67
70
|
| import("@smithy/types").AwsCredentialIdentity
|
68
|
-
| import("@smithy/types").
|
69
|
-
import("@smithy/types").AwsCredentialIdentity
|
70
|
-
>
|
71
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
71
72
|
| undefined;
|
72
73
|
signer?:
|
73
74
|
| import("@smithy/types").RequestSigner
|
@@ -84,5 +85,4 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
84
85
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
85
86
|
) => import("@smithy/types").RequestSigner)
|
86
87
|
| undefined;
|
87
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
88
88
|
};
|
package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts
CHANGED
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
|
|
11
11
|
}
|
12
12
|
) => import("@smithy/types").EndpointV2;
|
13
13
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
14
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFormationHttpAuthSchemeProvider;
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
14
16
|
logger: import("@smithy/types").Logger;
|
15
17
|
serviceId: string;
|
16
18
|
urlParser: import("@smithy/types").UrlParser;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.513.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-cloudformation",
|
@@ -20,13 +20,12 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
23
|
-
"@aws-sdk/client-sts": "3.
|
24
|
-
"@aws-sdk/core": "3.
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
23
|
+
"@aws-sdk/client-sts": "3.513.0",
|
24
|
+
"@aws-sdk/core": "3.513.0",
|
25
|
+
"@aws-sdk/credential-provider-node": "3.513.0",
|
26
26
|
"@aws-sdk/middleware-host-header": "3.511.0",
|
27
27
|
"@aws-sdk/middleware-logger": "3.511.0",
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.511.0",
|
29
|
-
"@aws-sdk/middleware-signing": "3.511.0",
|
30
29
|
"@aws-sdk/middleware-user-agent": "3.511.0",
|
31
30
|
"@aws-sdk/region-config-resolver": "3.511.0",
|
32
31
|
"@aws-sdk/types": "3.511.0",
|
@@ -34,7 +33,7 @@
|
|
34
33
|
"@aws-sdk/util-user-agent-browser": "3.511.0",
|
35
34
|
"@aws-sdk/util-user-agent-node": "3.511.0",
|
36
35
|
"@smithy/config-resolver": "^2.1.1",
|
37
|
-
"@smithy/core": "^1.3.
|
36
|
+
"@smithy/core": "^1.3.2",
|
38
37
|
"@smithy/fetch-http-handler": "^2.4.1",
|
39
38
|
"@smithy/hash-node": "^2.1.1",
|
40
39
|
"@smithy/invalid-dependency": "^2.1.1",
|
@@ -53,8 +52,9 @@
|
|
53
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
54
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
55
54
|
"@smithy/util-defaults-mode-browser": "^2.1.1",
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.0",
|
57
56
|
"@smithy/util-endpoints": "^1.1.1",
|
57
|
+
"@smithy/util-middleware": "^2.1.1",
|
58
58
|
"@smithy/util-retry": "^2.1.1",
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
60
60
|
"@smithy/util-waiter": "^2.1.1",
|
@@ -0,0 +1,68 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
6
|
+
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
7
|
+
return {
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
9
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
10
|
+
(() => {
|
11
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
12
|
+
})(),
|
13
|
+
};
|
14
|
+
};
|
15
|
+
exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
17
|
+
return {
|
18
|
+
schemeId: "aws.auth#sigv4",
|
19
|
+
signingProperties: {
|
20
|
+
name: "awsssoportal",
|
21
|
+
region: authParameters.region,
|
22
|
+
},
|
23
|
+
propertiesExtractor: (config, context) => ({
|
24
|
+
signingProperties: {
|
25
|
+
config,
|
26
|
+
context,
|
27
|
+
},
|
28
|
+
}),
|
29
|
+
};
|
30
|
+
}
|
31
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
32
|
+
return {
|
33
|
+
schemeId: "smithy.api#noAuth",
|
34
|
+
};
|
35
|
+
}
|
36
|
+
const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
37
|
+
const options = [];
|
38
|
+
switch (authParameters.operation) {
|
39
|
+
case "GetRoleCredentials": {
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
41
|
+
break;
|
42
|
+
}
|
43
|
+
case "ListAccountRoles": {
|
44
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
45
|
+
break;
|
46
|
+
}
|
47
|
+
case "ListAccounts": {
|
48
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
49
|
+
break;
|
50
|
+
}
|
51
|
+
case "Logout": {
|
52
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
53
|
+
break;
|
54
|
+
}
|
55
|
+
default: {
|
56
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
57
|
+
}
|
58
|
+
}
|
59
|
+
return options;
|
60
|
+
};
|
61
|
+
exports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
|
62
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
63
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
64
|
+
return {
|
65
|
+
...config_0,
|
66
|
+
};
|
67
|
+
};
|
68
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
@@ -50,10 +50,12 @@ var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
50
50
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
51
51
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
52
52
|
var import_config_resolver = require("@smithy/config-resolver");
|
53
|
+
var import_core = require("@smithy/core");
|
53
54
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
54
55
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
55
56
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
56
57
|
|
58
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
57
59
|
|
58
60
|
// src/endpoint/EndpointParameters.ts
|
59
61
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
@@ -78,19 +80,62 @@ var import_runtimeConfig = require("././runtimeConfig");
|
|
78
80
|
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
79
81
|
var import_protocol_http = require("@smithy/protocol-http");
|
80
82
|
var import_smithy_client = require("@smithy/smithy-client");
|
83
|
+
|
84
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
85
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
86
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
87
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
88
|
+
let _credentials = runtimeConfig.credentials;
|
89
|
+
return {
|
90
|
+
setHttpAuthScheme(httpAuthScheme) {
|
91
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
92
|
+
if (index === -1) {
|
93
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
94
|
+
} else {
|
95
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
96
|
+
}
|
97
|
+
},
|
98
|
+
httpAuthSchemes() {
|
99
|
+
return _httpAuthSchemes;
|
100
|
+
},
|
101
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
102
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
103
|
+
},
|
104
|
+
httpAuthSchemeProvider() {
|
105
|
+
return _httpAuthSchemeProvider;
|
106
|
+
},
|
107
|
+
setCredentials(credentials) {
|
108
|
+
_credentials = credentials;
|
109
|
+
},
|
110
|
+
credentials() {
|
111
|
+
return _credentials;
|
112
|
+
}
|
113
|
+
};
|
114
|
+
}, "getHttpAuthExtensionConfiguration");
|
115
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
116
|
+
return {
|
117
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
118
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
119
|
+
credentials: config.credentials()
|
120
|
+
};
|
121
|
+
}, "resolveHttpAuthRuntimeConfig");
|
122
|
+
|
123
|
+
// src/runtimeExtensions.ts
|
81
124
|
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
82
125
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
83
126
|
const extensionConfiguration = {
|
84
127
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
85
128
|
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
86
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
129
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
130
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
87
131
|
};
|
88
132
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
89
133
|
return {
|
90
134
|
...runtimeConfig,
|
91
135
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
92
136
|
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
93
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
137
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
138
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
94
139
|
};
|
95
140
|
}, "resolveRuntimeExtensions");
|
96
141
|
|
@@ -104,15 +149,23 @@ var _SSOClient = class _SSOClient extends import_smithy_client.Client {
|
|
104
149
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
105
150
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
106
151
|
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
107
|
-
const _config_7 =
|
108
|
-
|
109
|
-
|
152
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
153
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
154
|
+
super(_config_8);
|
155
|
+
this.config = _config_8;
|
110
156
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
111
157
|
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
112
158
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
113
159
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
114
160
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
115
161
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
162
|
+
this.middlewareStack.use(
|
163
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
164
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
165
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
166
|
+
})
|
167
|
+
);
|
168
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
116
169
|
}
|
117
170
|
/**
|
118
171
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
@@ -122,6 +175,14 @@ var _SSOClient = class _SSOClient extends import_smithy_client.Client {
|
|
122
175
|
destroy() {
|
123
176
|
super.destroy();
|
124
177
|
}
|
178
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
179
|
+
return import_httpAuthSchemeProvider.defaultSSOHttpAuthSchemeParametersProvider;
|
180
|
+
}
|
181
|
+
getIdentityProviderConfigProvider() {
|
182
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
183
|
+
"aws.auth#sigv4": config.credentials
|
184
|
+
});
|
185
|
+
}
|
125
186
|
};
|
126
187
|
__name(_SSOClient, "SSOClient");
|
127
188
|
var SSOClient = _SSOClient;
|
@@ -248,7 +309,7 @@ var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
248
309
|
}), "LogoutRequestFilterSensitiveLog");
|
249
310
|
|
250
311
|
// src/protocols/Aws_restJson1.ts
|
251
|
-
|
312
|
+
|
252
313
|
|
253
314
|
var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
254
315
|
const b = (0, import_core.requestBuilder)(input, context);
|
@@ -1,10 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuntimeConfig = void 0;
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
5
|
+
const core_2 = require("@smithy/core");
|
4
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
5
7
|
const url_parser_1 = require("@smithy/url-parser");
|
6
8
|
const util_base64_1 = require("@smithy/util-base64");
|
7
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
10
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
8
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
9
12
|
const getRuntimeConfig = (config) => {
|
10
13
|
return {
|
@@ -14,6 +17,19 @@ const getRuntimeConfig = (config) => {
|
|
14
17
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
15
18
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
16
19
|
extensions: config?.extensions ?? [],
|
20
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOHttpAuthSchemeProvider,
|
21
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
22
|
+
{
|
23
|
+
schemeId: "aws.auth#sigv4",
|
24
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
25
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
26
|
+
},
|
27
|
+
{
|
28
|
+
schemeId: "smithy.api#noAuth",
|
29
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
30
|
+
signer: new core_2.NoAuthSigner(),
|
31
|
+
},
|
32
|
+
],
|
17
33
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
18
34
|
serviceId: config?.serviceId ?? "SSO",
|
19
35
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
@@ -3,10 +3,12 @@ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
3
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
6
7
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
7
8
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
8
9
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
9
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
11
|
+
import { defaultSSOHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
10
12
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
11
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
12
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
@@ -20,17 +22,31 @@ export class SSOClient extends __Client {
|
|
20
22
|
const _config_4 = resolveRetryConfig(_config_3);
|
21
23
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
22
24
|
const _config_6 = resolveUserAgentConfig(_config_5);
|
23
|
-
const _config_7 =
|
24
|
-
|
25
|
-
|
25
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
26
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
27
|
+
super(_config_8);
|
28
|
+
this.config = _config_8;
|
26
29
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
27
30
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
28
31
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
29
32
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
30
33
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
31
34
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
35
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
36
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
37
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
38
|
+
}));
|
39
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
32
40
|
}
|
33
41
|
destroy() {
|
34
42
|
super.destroy();
|
35
43
|
}
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
45
|
+
return defaultSSOHttpAuthSchemeParametersProvider;
|
46
|
+
}
|
47
|
+
getIdentityProviderConfigProvider() {
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
50
|
+
});
|
51
|
+
}
|
36
52
|
}
|