@cdk8s/awscdk-resolver 0.0.58 → 0.0.60
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 +4 -4
- 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
@@ -0,0 +1,38 @@
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
5
|
+
return {
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
8
|
+
if (index === -1) {
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
10
|
+
}
|
11
|
+
else {
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
13
|
+
}
|
14
|
+
},
|
15
|
+
httpAuthSchemes() {
|
16
|
+
return _httpAuthSchemes;
|
17
|
+
},
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
20
|
+
},
|
21
|
+
httpAuthSchemeProvider() {
|
22
|
+
return _httpAuthSchemeProvider;
|
23
|
+
},
|
24
|
+
setCredentials(credentials) {
|
25
|
+
_credentials = credentials;
|
26
|
+
},
|
27
|
+
credentials() {
|
28
|
+
return _credentials;
|
29
|
+
},
|
30
|
+
};
|
31
|
+
};
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
33
|
+
return {
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
36
|
+
credentials: config.credentials(),
|
37
|
+
};
|
38
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
3
|
+
export const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
4
|
+
return {
|
5
|
+
operation: getSmithyContext(context).operation,
|
6
|
+
region: (await normalizeProvider(config.region)()) ||
|
7
|
+
(() => {
|
8
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
9
|
+
})(),
|
10
|
+
};
|
11
|
+
};
|
12
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
13
|
+
return {
|
14
|
+
schemeId: "aws.auth#sigv4",
|
15
|
+
signingProperties: {
|
16
|
+
name: "awsssoportal",
|
17
|
+
region: authParameters.region,
|
18
|
+
},
|
19
|
+
propertiesExtractor: (config, context) => ({
|
20
|
+
signingProperties: {
|
21
|
+
config,
|
22
|
+
context,
|
23
|
+
},
|
24
|
+
}),
|
25
|
+
};
|
26
|
+
}
|
27
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
28
|
+
return {
|
29
|
+
schemeId: "smithy.api#noAuth",
|
30
|
+
};
|
31
|
+
}
|
32
|
+
export const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
33
|
+
const options = [];
|
34
|
+
switch (authParameters.operation) {
|
35
|
+
case "GetRoleCredentials": {
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
37
|
+
break;
|
38
|
+
}
|
39
|
+
case "ListAccountRoles": {
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
41
|
+
break;
|
42
|
+
}
|
43
|
+
case "ListAccounts": {
|
44
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
45
|
+
break;
|
46
|
+
}
|
47
|
+
case "Logout": {
|
48
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
49
|
+
break;
|
50
|
+
}
|
51
|
+
default: {
|
52
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return options;
|
56
|
+
};
|
57
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
58
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
59
|
+
return {
|
60
|
+
...config_0,
|
61
|
+
};
|
62
|
+
};
|
@@ -1,7 +1,10 @@
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
1
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
2
4
|
import { parseUrl } from "@smithy/url-parser";
|
3
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
4
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
7
|
+
import { defaultSSOHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
5
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
6
9
|
export const getRuntimeConfig = (config) => {
|
7
10
|
return {
|
@@ -11,6 +14,19 @@ export const getRuntimeConfig = (config) => {
|
|
11
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
12
15
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
13
16
|
extensions: config?.extensions ?? [],
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
19
|
+
{
|
20
|
+
schemeId: "aws.auth#sigv4",
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
23
|
+
},
|
24
|
+
{
|
25
|
+
schemeId: "smithy.api#noAuth",
|
26
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
27
|
+
signer: new NoAuthSigner(),
|
28
|
+
},
|
29
|
+
],
|
14
30
|
logger: config?.logger ?? new NoOpLogger(),
|
15
31
|
serviceId: config?.serviceId ?? "SSO",
|
16
32
|
urlParser: config?.urlParser ?? parseUrl,
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
4
5
|
const asPartial = (t) => t;
|
5
6
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
6
7
|
const extensionConfiguration = {
|
7
8
|
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
8
9
|
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
9
10
|
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
10
12
|
};
|
11
13
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
12
14
|
return {
|
@@ -14,5 +16,6 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
14
16
|
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
15
17
|
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
16
18
|
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
17
20
|
};
|
18
21
|
};
|
@@ -6,6 +6,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
8
8
|
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
9
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
9
10
|
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
10
11
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
|
11
12
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
|
@@ -93,15 +94,15 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
93
94
|
* Enables FIPS compatible endpoints.
|
94
95
|
*/
|
95
96
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
96
|
-
/**
|
97
|
-
* The AWS region to which this client will send requests
|
98
|
-
*/
|
99
|
-
region?: string | __Provider<string>;
|
100
97
|
/**
|
101
98
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
102
99
|
* @internal
|
103
100
|
*/
|
104
101
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
102
|
+
/**
|
103
|
+
* The AWS region to which this client will send requests
|
104
|
+
*/
|
105
|
+
region?: string | __Provider<string>;
|
105
106
|
/**
|
106
107
|
* Value for how many times a request will be made at most in case of retry.
|
107
108
|
*/
|
@@ -128,7 +129,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
128
129
|
/**
|
129
130
|
* @public
|
130
131
|
*/
|
131
|
-
export type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
132
|
+
export type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
132
133
|
/**
|
133
134
|
* @public
|
134
135
|
*
|
@@ -139,7 +140,7 @@ export interface SSOClientConfig extends SSOClientConfigType {
|
|
139
140
|
/**
|
140
141
|
* @public
|
141
142
|
*/
|
142
|
-
export type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
143
|
+
export type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
143
144
|
/**
|
144
145
|
* @public
|
145
146
|
*
|
@@ -178,4 +179,6 @@ export declare class SSOClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
178
179
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
179
180
|
*/
|
180
181
|
destroy(): void;
|
182
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
183
|
+
private getIdentityProviderConfigProvider;
|
181
184
|
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
2
|
+
import { SSOHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SSOHttpAuthSchemeProvider): void;
|
10
|
+
httpAuthSchemeProvider(): SSOHttpAuthSchemeProvider;
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* @internal
|
16
|
+
*/
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
19
|
+
httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
21
|
+
}>;
|
22
|
+
/**
|
23
|
+
* @internal
|
24
|
+
*/
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
26
|
+
/**
|
27
|
+
* @internal
|
28
|
+
*/
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
3
|
+
import { SSOClientResolvedConfig } from "../SSOClient";
|
4
|
+
/**
|
5
|
+
* @internal
|
6
|
+
*/
|
7
|
+
export interface SSOHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
8
|
+
region?: string;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* @internal
|
12
|
+
*/
|
13
|
+
export interface SSOHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SSOClientResolvedConfig, HandlerExecutionContext, SSOHttpAuthSchemeParameters, object> {
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* @internal
|
17
|
+
*/
|
18
|
+
export declare const defaultSSOHttpAuthSchemeParametersProvider: (config: SSOClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SSOHttpAuthSchemeParameters>;
|
19
|
+
/**
|
20
|
+
* @internal
|
21
|
+
*/
|
22
|
+
export interface SSOHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SSOHttpAuthSchemeParameters> {
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* @internal
|
26
|
+
*/
|
27
|
+
export declare const defaultSSOHttpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
32
|
+
/**
|
33
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
34
|
+
* @internal
|
35
|
+
*/
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
37
|
+
/**
|
38
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
39
|
+
* @internal
|
40
|
+
*/
|
41
|
+
httpAuthSchemeProvider?: SSOHttpAuthSchemeProvider;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* @internal
|
45
|
+
*/
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
47
|
+
/**
|
48
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
49
|
+
* @internal
|
50
|
+
*/
|
51
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
52
|
+
/**
|
53
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
54
|
+
* @internal
|
55
|
+
*/
|
56
|
+
readonly httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* @internal
|
60
|
+
*/
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
@@ -1,8 +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
|
/**
|
5
6
|
* @internal
|
6
7
|
*/
|
7
|
-
export interface SSOExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
8
|
+
export interface SSOExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
8
9
|
}
|
@@ -36,4 +36,20 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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
|
+
schemeId: string;
|
41
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
42
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
43
|
+
} | {
|
44
|
+
schemeId: string;
|
45
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
46
|
+
signer: import("@smithy/core").NoAuthSigner;
|
47
|
+
})[];
|
48
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider;
|
49
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
50
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
51
|
+
signingEscapePath?: boolean | undefined;
|
52
|
+
systemClockOffset?: number | undefined;
|
53
|
+
signingRegion?: string | undefined;
|
54
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
39
55
|
};
|
@@ -36,4 +36,20 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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
|
+
schemeId: string;
|
41
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
42
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
43
|
+
} | {
|
44
|
+
schemeId: string;
|
45
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
46
|
+
signer: import("@smithy/core").NoAuthSigner;
|
47
|
+
})[];
|
48
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider;
|
49
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
50
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
51
|
+
signingEscapePath?: boolean | undefined;
|
52
|
+
systemClockOffset?: number | undefined;
|
53
|
+
signingRegion?: string | undefined;
|
54
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
39
55
|
};
|
@@ -21,8 +21,8 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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
24
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
25
|
+
region: string | import("@smithy/types").Provider<any>;
|
26
26
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
28
28
|
logger: import("@smithy/types").Logger;
|
@@ -35,4 +35,20 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
35
35
|
tls?: boolean | undefined;
|
36
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
37
37
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
38
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
39
|
+
schemeId: string;
|
40
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
41
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
42
|
+
} | {
|
43
|
+
schemeId: string;
|
44
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
45
|
+
signer: import("@smithy/core").NoAuthSigner;
|
46
|
+
})[];
|
47
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider;
|
48
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
49
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
50
|
+
signingEscapePath?: boolean | undefined;
|
51
|
+
systemClockOffset?: number | undefined;
|
52
|
+
signingRegion?: string | undefined;
|
53
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
38
54
|
};
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
1
4
|
import { SSOClientConfig } from "./SSOClient";
|
2
5
|
/**
|
3
6
|
* @internal
|
@@ -11,6 +14,16 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
11
14
|
logger?: import("@smithy/types").Logger | undefined;
|
12
15
|
}) => import("@smithy/types").EndpointV2;
|
13
16
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
17
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider;
|
18
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
19
|
+
schemeId: string;
|
20
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
21
|
+
signer: AwsSdkSigV4Signer;
|
22
|
+
} | {
|
23
|
+
schemeId: string;
|
24
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
25
|
+
signer: NoAuthSigner;
|
26
|
+
})[];
|
14
27
|
logger: import("@smithy/types").Logger;
|
15
28
|
serviceId: string;
|
16
29
|
urlParser: import("@smithy/types").UrlParser;
|
@@ -40,6 +40,10 @@ import {
|
|
40
40
|
UrlParser as __UrlParser,
|
41
41
|
UserAgent as __UserAgent,
|
42
42
|
} from "@smithy/types";
|
43
|
+
import {
|
44
|
+
HttpAuthSchemeInputConfig,
|
45
|
+
HttpAuthSchemeResolvedConfig,
|
46
|
+
} from "./auth/httpAuthSchemeProvider";
|
43
47
|
import {
|
44
48
|
GetRoleCredentialsCommandInput,
|
45
49
|
GetRoleCredentialsCommandOutput,
|
@@ -89,8 +93,8 @@ export interface ClientDefaults
|
|
89
93
|
serviceId?: string;
|
90
94
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
91
95
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
92
|
-
region?: string | __Provider<string>;
|
93
96
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
97
|
+
region?: string | __Provider<string>;
|
94
98
|
maxAttempts?: number | __Provider<number>;
|
95
99
|
retryMode?: string | __Provider<string>;
|
96
100
|
logger?: __Logger;
|
@@ -106,6 +110,7 @@ export type SSOClientConfigType = Partial<
|
|
106
110
|
RetryInputConfig &
|
107
111
|
HostHeaderInputConfig &
|
108
112
|
UserAgentInputConfig &
|
113
|
+
HttpAuthSchemeInputConfig &
|
109
114
|
ClientInputEndpointParameters;
|
110
115
|
export interface SSOClientConfig extends SSOClientConfigType {}
|
111
116
|
export type SSOClientResolvedConfigType =
|
@@ -117,6 +122,7 @@ export type SSOClientResolvedConfigType =
|
|
117
122
|
RetryResolvedConfig &
|
118
123
|
HostHeaderResolvedConfig &
|
119
124
|
UserAgentResolvedConfig &
|
125
|
+
HttpAuthSchemeResolvedConfig &
|
120
126
|
ClientResolvedEndpointParameters;
|
121
127
|
export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {}
|
122
128
|
export declare class SSOClient extends __Client<
|
@@ -128,4 +134,6 @@ export declare class SSOClient extends __Client<
|
|
128
134
|
readonly config: SSOClientResolvedConfig;
|
129
135
|
constructor(...[configuration]: __CheckOptionalClientConfig<SSOClientConfig>);
|
130
136
|
destroy(): void;
|
137
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
138
|
+
private getIdentityProviderConfigProvider;
|
131
139
|
}
|
package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
import {
|
2
|
+
AwsCredentialIdentity,
|
3
|
+
AwsCredentialIdentityProvider,
|
4
|
+
HttpAuthScheme,
|
5
|
+
} from "@smithy/types";
|
6
|
+
import { SSOHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
10
|
+
setHttpAuthSchemeProvider(
|
11
|
+
httpAuthSchemeProvider: SSOHttpAuthSchemeProvider
|
12
|
+
): void;
|
13
|
+
httpAuthSchemeProvider(): SSOHttpAuthSchemeProvider;
|
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: SSOHttpAuthSchemeProvider;
|
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,43 @@
|
|
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 { SSOClientResolvedConfig } from "../SSOClient";
|
14
|
+
export interface SSOHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
15
|
+
region?: string;
|
16
|
+
}
|
17
|
+
export interface SSOHttpAuthSchemeParametersProvider
|
18
|
+
extends HttpAuthSchemeParametersProvider<
|
19
|
+
SSOClientResolvedConfig,
|
20
|
+
HandlerExecutionContext,
|
21
|
+
SSOHttpAuthSchemeParameters,
|
22
|
+
object
|
23
|
+
> {}
|
24
|
+
export declare const defaultSSOHttpAuthSchemeParametersProvider: (
|
25
|
+
config: SSOClientResolvedConfig,
|
26
|
+
context: HandlerExecutionContext,
|
27
|
+
input: object
|
28
|
+
) => Promise<SSOHttpAuthSchemeParameters>;
|
29
|
+
export interface SSOHttpAuthSchemeProvider
|
30
|
+
extends HttpAuthSchemeProvider<SSOHttpAuthSchemeParameters> {}
|
31
|
+
export declare const defaultSSOHttpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
32
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
33
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
34
|
+
httpAuthSchemeProvider?: SSOHttpAuthSchemeProvider;
|
35
|
+
}
|
36
|
+
export interface HttpAuthSchemeResolvedConfig
|
37
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
38
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
39
|
+
readonly httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
40
|
+
}
|
41
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
43
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
@@ -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 SSOExtensionConfiguration
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
6
7
|
DefaultExtensionConfiguration,
|
7
|
-
AwsRegionExtensionConfiguration
|
8
|
+
AwsRegionExtensionConfiguration,
|
9
|
+
HttpAuthExtensionConfiguration {}
|
@@ -70,4 +70,50 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
70
70
|
| import("@smithy/types").RetryStrategyV2
|
71
71
|
| undefined;
|
72
72
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
73
|
+
httpAuthSchemes:
|
74
|
+
| import("@smithy/types").HttpAuthScheme[]
|
75
|
+
| (
|
76
|
+
| {
|
77
|
+
schemeId: string;
|
78
|
+
identityProvider: (
|
79
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
80
|
+
) =>
|
81
|
+
| import("@smithy/types").IdentityProvider<
|
82
|
+
import("@smithy/types").Identity
|
83
|
+
>
|
84
|
+
| undefined;
|
85
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
86
|
+
}
|
87
|
+
| {
|
88
|
+
schemeId: string;
|
89
|
+
identityProvider: (
|
90
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
91
|
+
) =>
|
92
|
+
| import("@smithy/types").IdentityProvider<
|
93
|
+
import("@smithy/types").Identity
|
94
|
+
>
|
95
|
+
| (() => Promise<{}>);
|
96
|
+
signer: import("@smithy/core").NoAuthSigner;
|
97
|
+
}
|
98
|
+
)[];
|
99
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider;
|
100
|
+
credentials?:
|
101
|
+
| import("@smithy/types").AwsCredentialIdentity
|
102
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
103
|
+
| undefined;
|
104
|
+
signer?:
|
105
|
+
| import("@smithy/types").RequestSigner
|
106
|
+
| ((
|
107
|
+
authScheme?: import("@smithy/types").AuthScheme | undefined
|
108
|
+
) => Promise<import("@smithy/types").RequestSigner>)
|
109
|
+
| undefined;
|
110
|
+
signingEscapePath?: boolean | undefined;
|
111
|
+
systemClockOffset?: number | undefined;
|
112
|
+
signingRegion?: string | undefined;
|
113
|
+
signerConstructor?:
|
114
|
+
| (new (
|
115
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
116
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
117
|
+
) => import("@smithy/types").RequestSigner)
|
118
|
+
| undefined;
|
73
119
|
};
|
@@ -70,4 +70,50 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
70
70
|
| import("@smithy/types").RetryStrategyV2
|
71
71
|
| undefined;
|
72
72
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
73
|
+
httpAuthSchemes:
|
74
|
+
| import("@smithy/types").HttpAuthScheme[]
|
75
|
+
| (
|
76
|
+
| {
|
77
|
+
schemeId: string;
|
78
|
+
identityProvider: (
|
79
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
80
|
+
) =>
|
81
|
+
| import("@smithy/types").IdentityProvider<
|
82
|
+
import("@smithy/types").Identity
|
83
|
+
>
|
84
|
+
| undefined;
|
85
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
86
|
+
}
|
87
|
+
| {
|
88
|
+
schemeId: string;
|
89
|
+
identityProvider: (
|
90
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
91
|
+
) =>
|
92
|
+
| import("@smithy/types").IdentityProvider<
|
93
|
+
import("@smithy/types").Identity
|
94
|
+
>
|
95
|
+
| (() => Promise<{}>);
|
96
|
+
signer: import("@smithy/core").NoAuthSigner;
|
97
|
+
}
|
98
|
+
)[];
|
99
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOHttpAuthSchemeProvider;
|
100
|
+
credentials?:
|
101
|
+
| import("@smithy/types").AwsCredentialIdentity
|
102
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
103
|
+
| undefined;
|
104
|
+
signer?:
|
105
|
+
| import("@smithy/types").RequestSigner
|
106
|
+
| ((
|
107
|
+
authScheme?: import("@smithy/types").AuthScheme | undefined
|
108
|
+
) => Promise<import("@smithy/types").RequestSigner>)
|
109
|
+
| undefined;
|
110
|
+
signingEscapePath?: boolean | undefined;
|
111
|
+
systemClockOffset?: number | undefined;
|
112
|
+
signingRegion?: string | undefined;
|
113
|
+
signerConstructor?:
|
114
|
+
| (new (
|
115
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
116
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
117
|
+
) => import("@smithy/types").RequestSigner)
|
118
|
+
| undefined;
|
73
119
|
};
|