@aws-sdk/client-cognito-identity-provider 3.511.0 → 3.513.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +156 -0
- package/dist-cjs/index.js +142 -237
- package/dist-cjs/runtimeConfig.shared.js +16 -0
- package/dist-es/CognitoIdentityProviderClient.js +17 -3
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +150 -0
- package/dist-es/commands/AddCustomAttributesCommand.js +0 -2
- package/dist-es/commands/AdminAddUserToGroupCommand.js +0 -2
- package/dist-es/commands/AdminConfirmSignUpCommand.js +0 -2
- package/dist-es/commands/AdminCreateUserCommand.js +0 -2
- package/dist-es/commands/AdminDeleteUserAttributesCommand.js +0 -2
- package/dist-es/commands/AdminDeleteUserCommand.js +0 -2
- package/dist-es/commands/AdminDisableProviderForUserCommand.js +0 -2
- package/dist-es/commands/AdminDisableUserCommand.js +0 -2
- package/dist-es/commands/AdminEnableUserCommand.js +0 -2
- package/dist-es/commands/AdminForgetDeviceCommand.js +0 -2
- package/dist-es/commands/AdminGetDeviceCommand.js +0 -2
- package/dist-es/commands/AdminGetUserCommand.js +0 -2
- package/dist-es/commands/AdminInitiateAuthCommand.js +0 -2
- package/dist-es/commands/AdminLinkProviderForUserCommand.js +0 -2
- package/dist-es/commands/AdminListDevicesCommand.js +0 -2
- package/dist-es/commands/AdminListGroupsForUserCommand.js +0 -2
- package/dist-es/commands/AdminListUserAuthEventsCommand.js +0 -2
- package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +0 -2
- package/dist-es/commands/AdminResetUserPasswordCommand.js +0 -2
- package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +0 -2
- package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +0 -2
- package/dist-es/commands/AdminSetUserPasswordCommand.js +0 -2
- package/dist-es/commands/AdminSetUserSettingsCommand.js +0 -2
- package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +0 -2
- package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +0 -2
- package/dist-es/commands/AdminUpdateUserAttributesCommand.js +0 -2
- package/dist-es/commands/AdminUserGlobalSignOutCommand.js +0 -2
- package/dist-es/commands/CreateGroupCommand.js +0 -2
- package/dist-es/commands/CreateIdentityProviderCommand.js +0 -2
- package/dist-es/commands/CreateResourceServerCommand.js +0 -2
- package/dist-es/commands/CreateUserImportJobCommand.js +0 -2
- package/dist-es/commands/CreateUserPoolClientCommand.js +0 -2
- package/dist-es/commands/CreateUserPoolCommand.js +0 -2
- package/dist-es/commands/CreateUserPoolDomainCommand.js +0 -2
- package/dist-es/commands/DeleteGroupCommand.js +0 -2
- package/dist-es/commands/DeleteIdentityProviderCommand.js +0 -2
- package/dist-es/commands/DeleteResourceServerCommand.js +0 -2
- package/dist-es/commands/DeleteUserPoolClientCommand.js +0 -2
- package/dist-es/commands/DeleteUserPoolCommand.js +0 -2
- package/dist-es/commands/DeleteUserPoolDomainCommand.js +0 -2
- package/dist-es/commands/DescribeIdentityProviderCommand.js +0 -2
- package/dist-es/commands/DescribeResourceServerCommand.js +0 -2
- package/dist-es/commands/DescribeRiskConfigurationCommand.js +0 -2
- package/dist-es/commands/DescribeUserImportJobCommand.js +0 -2
- package/dist-es/commands/DescribeUserPoolClientCommand.js +0 -2
- package/dist-es/commands/DescribeUserPoolCommand.js +0 -2
- package/dist-es/commands/DescribeUserPoolDomainCommand.js +0 -2
- package/dist-es/commands/GetCSVHeaderCommand.js +0 -2
- package/dist-es/commands/GetGroupCommand.js +0 -2
- package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +0 -2
- package/dist-es/commands/GetLogDeliveryConfigurationCommand.js +0 -2
- package/dist-es/commands/GetSigningCertificateCommand.js +0 -2
- package/dist-es/commands/GetUICustomizationCommand.js +0 -2
- package/dist-es/commands/GetUserPoolMfaConfigCommand.js +0 -2
- package/dist-es/commands/ListGroupsCommand.js +0 -2
- package/dist-es/commands/ListIdentityProvidersCommand.js +0 -2
- package/dist-es/commands/ListResourceServersCommand.js +0 -2
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -2
- package/dist-es/commands/ListUserImportJobsCommand.js +0 -2
- package/dist-es/commands/ListUserPoolClientsCommand.js +0 -2
- package/dist-es/commands/ListUserPoolsCommand.js +0 -2
- package/dist-es/commands/ListUsersCommand.js +0 -2
- package/dist-es/commands/ListUsersInGroupCommand.js +0 -2
- package/dist-es/commands/SetLogDeliveryConfigurationCommand.js +0 -2
- package/dist-es/commands/SetRiskConfigurationCommand.js +0 -2
- package/dist-es/commands/SetUICustomizationCommand.js +0 -2
- package/dist-es/commands/SetUserPoolMfaConfigCommand.js +0 -2
- package/dist-es/commands/StartUserImportJobCommand.js +0 -2
- package/dist-es/commands/StopUserImportJobCommand.js +0 -2
- package/dist-es/commands/TagResourceCommand.js +0 -2
- package/dist-es/commands/UntagResourceCommand.js +0 -2
- package/dist-es/commands/UpdateGroupCommand.js +0 -2
- package/dist-es/commands/UpdateIdentityProviderCommand.js +0 -2
- package/dist-es/commands/UpdateResourceServerCommand.js +0 -2
- package/dist-es/commands/UpdateUserPoolClientCommand.js +0 -2
- package/dist-es/commands/UpdateUserPoolCommand.js +0 -2
- package/dist-es/commands/UpdateUserPoolDomainCommand.js +0 -2
- package/dist-es/runtimeConfig.shared.js +16 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +13 -11
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +13 -3
- package/dist-types/runtimeConfig.d.ts +12 -2
- package/dist-types/runtimeConfig.native.d.ts +14 -4
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +30 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +29 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +33 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/package.json +7 -7
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
2
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
@@ -14,7 +13,6 @@ export class UpdateResourceServerCommand extends $Command
|
|
|
14
13
|
return [
|
|
15
14
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
15
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
getAwsAuthPlugin(config),
|
|
18
16
|
];
|
|
19
17
|
})
|
|
20
18
|
.s("AWSCognitoIdentityProviderService", "UpdateResourceServer", {})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
2
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
@@ -15,7 +14,6 @@ export class UpdateUserPoolClientCommand extends $Command
|
|
|
15
14
|
return [
|
|
16
15
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
17
16
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
18
|
-
getAwsAuthPlugin(config),
|
|
19
17
|
];
|
|
20
18
|
})
|
|
21
19
|
.s("AWSCognitoIdentityProviderService", "UpdateUserPoolClient", {})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
2
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
@@ -14,7 +13,6 @@ export class UpdateUserPoolCommand extends $Command
|
|
|
14
13
|
return [
|
|
15
14
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
15
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
getAwsAuthPlugin(config),
|
|
18
16
|
];
|
|
19
17
|
})
|
|
20
18
|
.s("AWSCognitoIdentityProviderService", "UpdateUserPool", {})
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
2
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
@@ -14,7 +13,6 @@ export class UpdateUserPoolDomainCommand extends $Command
|
|
|
14
13
|
return [
|
|
15
14
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
15
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
getAwsAuthPlugin(config),
|
|
18
16
|
];
|
|
19
17
|
})
|
|
20
18
|
.s("AWSCognitoIdentityProviderService", "UpdateUserPoolDomain", {})
|
|
@@ -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 { defaultCognitoIdentityProviderHttpAuthSchemeProvider } 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 ?? defaultCognitoIdentityProviderHttpAuthSchemeProvider,
|
|
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 ?? "Cognito Identity Provider",
|
|
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
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
-
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
3
2
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
3
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
4
|
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
6
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
-
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";
|
|
8
|
+
import { AwsCredentialIdentityProvider, 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";
|
|
11
10
|
import { AddCustomAttributesCommandInput, AddCustomAttributesCommandOutput } from "./commands/AddCustomAttributesCommand";
|
|
12
11
|
import { AdminAddUserToGroupCommandInput, AdminAddUserToGroupCommandOutput } from "./commands/AdminAddUserToGroupCommand";
|
|
13
12
|
import { AdminConfirmSignUpCommandInput, AdminConfirmSignUpCommandOutput } from "./commands/AdminConfirmSignUpCommand";
|
|
@@ -194,20 +193,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
194
193
|
* Enables FIPS compatible endpoints.
|
|
195
194
|
*/
|
|
196
195
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
196
|
+
/**
|
|
197
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
197
201
|
/**
|
|
198
202
|
* The AWS region to which this client will send requests
|
|
199
203
|
*/
|
|
200
204
|
region?: string | __Provider<string>;
|
|
201
205
|
/**
|
|
202
206
|
* Default credentials provider; Not available in browser runtime.
|
|
207
|
+
* @deprecated
|
|
203
208
|
* @internal
|
|
204
209
|
*/
|
|
205
|
-
credentialDefaultProvider?: (input: any) =>
|
|
206
|
-
/**
|
|
207
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
210
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
211
211
|
/**
|
|
212
212
|
* Value for how many times a request will be made at most in case of retry.
|
|
213
213
|
*/
|
|
@@ -234,7 +234,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
234
234
|
/**
|
|
235
235
|
* @public
|
|
236
236
|
*/
|
|
237
|
-
export type CognitoIdentityProviderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig &
|
|
237
|
+
export type CognitoIdentityProviderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
238
238
|
/**
|
|
239
239
|
* @public
|
|
240
240
|
*
|
|
@@ -245,7 +245,7 @@ export interface CognitoIdentityProviderClientConfig extends CognitoIdentityProv
|
|
|
245
245
|
/**
|
|
246
246
|
* @public
|
|
247
247
|
*/
|
|
248
|
-
export type CognitoIdentityProviderClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig &
|
|
248
|
+
export type CognitoIdentityProviderClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
249
249
|
/**
|
|
250
250
|
* @public
|
|
251
251
|
*
|
|
@@ -351,4 +351,6 @@ export declare class CognitoIdentityProviderClient extends __Client<__HttpHandle
|
|
|
351
351
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
352
352
|
*/
|
|
353
353
|
destroy(): void;
|
|
354
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
355
|
+
private getIdentityProviderConfigProvider;
|
|
354
356
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { CognitoIdentityProviderHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: CognitoIdentityProviderHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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 { CognitoIdentityProviderClientResolvedConfig } from "../CognitoIdentityProviderClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface CognitoIdentityProviderHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface CognitoIdentityProviderHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<CognitoIdentityProviderClientResolvedConfig, HandlerExecutionContext, CognitoIdentityProviderHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultCognitoIdentityProviderHttpAuthSchemeParametersProvider: (config: CognitoIdentityProviderClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<CognitoIdentityProviderHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface CognitoIdentityProviderHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CognitoIdentityProviderHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultCognitoIdentityProviderHttpAuthSchemeProvider: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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?: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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 CognitoIdentityProviderExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
8
|
+
export interface CognitoIdentityProviderExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
8
9
|
}
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
@@ -36,11 +36,21 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
36
36
|
}) => import("@smithy/types").EndpointV2;
|
|
37
37
|
tls?: boolean | undefined;
|
|
38
38
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
39
|
-
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
41
|
+
schemeId: string;
|
|
42
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
43
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
44
|
+
} | {
|
|
45
|
+
schemeId: string;
|
|
46
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
47
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
48
|
+
})[];
|
|
49
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
50
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
40
51
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
52
|
signingEscapePath?: boolean | undefined;
|
|
42
53
|
systemClockOffset?: number | undefined;
|
|
43
54
|
signingRegion?: string | undefined;
|
|
44
55
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
45
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
56
|
};
|
|
@@ -36,11 +36,21 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
36
36
|
}) => import("@smithy/types").EndpointV2;
|
|
37
37
|
tls?: boolean | undefined;
|
|
38
38
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
39
|
-
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
41
|
+
schemeId: string;
|
|
42
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
43
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
44
|
+
} | {
|
|
45
|
+
schemeId: string;
|
|
46
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
47
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
48
|
+
})[];
|
|
49
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
50
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
40
51
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
52
|
signingEscapePath?: boolean | undefined;
|
|
42
53
|
systemClockOffset?: number | undefined;
|
|
43
54
|
signingRegion?: string | undefined;
|
|
44
55
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
45
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
56
|
};
|
|
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
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,21 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
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
|
+
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").CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
49
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
39
50
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
40
51
|
signingEscapePath?: boolean | undefined;
|
|
41
52
|
systemClockOffset?: number | undefined;
|
|
42
53
|
signingRegion?: string | undefined;
|
|
43
54
|
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
55
|
};
|
|
@@ -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 { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProviderClient";
|
|
2
5
|
/**
|
|
3
6
|
* @internal
|
|
@@ -11,6 +14,16 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
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").CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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;
|
|
@@ -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
|
AddCustomAttributesCommandInput,
|
|
50
50
|
AddCustomAttributesCommandOutput,
|
|
@@ -688,9 +688,9 @@ export interface ClientDefaults
|
|
|
688
688
|
serviceId?: string;
|
|
689
689
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
690
690
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
691
|
-
region?: string | __Provider<string>;
|
|
692
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
693
691
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
692
|
+
region?: string | __Provider<string>;
|
|
693
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
694
694
|
maxAttempts?: number | __Provider<number>;
|
|
695
695
|
retryMode?: string | __Provider<string>;
|
|
696
696
|
logger?: __Logger;
|
|
@@ -705,8 +705,8 @@ export type CognitoIdentityProviderClientConfigType = Partial<
|
|
|
705
705
|
EndpointInputConfig<EndpointParameters> &
|
|
706
706
|
RetryInputConfig &
|
|
707
707
|
HostHeaderInputConfig &
|
|
708
|
-
AwsAuthInputConfig &
|
|
709
708
|
UserAgentInputConfig &
|
|
709
|
+
HttpAuthSchemeInputConfig &
|
|
710
710
|
ClientInputEndpointParameters;
|
|
711
711
|
export interface CognitoIdentityProviderClientConfig
|
|
712
712
|
extends CognitoIdentityProviderClientConfigType {}
|
|
@@ -718,8 +718,8 @@ export type CognitoIdentityProviderClientResolvedConfigType =
|
|
|
718
718
|
EndpointResolvedConfig<EndpointParameters> &
|
|
719
719
|
RetryResolvedConfig &
|
|
720
720
|
HostHeaderResolvedConfig &
|
|
721
|
-
AwsAuthResolvedConfig &
|
|
722
721
|
UserAgentResolvedConfig &
|
|
722
|
+
HttpAuthSchemeResolvedConfig &
|
|
723
723
|
ClientResolvedEndpointParameters;
|
|
724
724
|
export interface CognitoIdentityProviderClientResolvedConfig
|
|
725
725
|
extends CognitoIdentityProviderClientResolvedConfigType {}
|
|
@@ -736,4 +736,6 @@ export declare class CognitoIdentityProviderClient extends __Client<
|
|
|
736
736
|
]: __CheckOptionalClientConfig<CognitoIdentityProviderClientConfig>
|
|
737
737
|
);
|
|
738
738
|
destroy(): void;
|
|
739
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
740
|
+
private getIdentityProviderConfigProvider;
|
|
739
741
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { CognitoIdentityProviderHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: CognitoIdentityProviderHttpAuthSchemeProvider
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
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 { CognitoIdentityProviderClientResolvedConfig } from "../CognitoIdentityProviderClient";
|
|
14
|
+
export interface CognitoIdentityProviderHttpAuthSchemeParameters
|
|
15
|
+
extends HttpAuthSchemeParameters {
|
|
16
|
+
region?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CognitoIdentityProviderHttpAuthSchemeParametersProvider
|
|
19
|
+
extends HttpAuthSchemeParametersProvider<
|
|
20
|
+
CognitoIdentityProviderClientResolvedConfig,
|
|
21
|
+
HandlerExecutionContext,
|
|
22
|
+
CognitoIdentityProviderHttpAuthSchemeParameters,
|
|
23
|
+
object
|
|
24
|
+
> {}
|
|
25
|
+
export declare const defaultCognitoIdentityProviderHttpAuthSchemeParametersProvider: (
|
|
26
|
+
config: CognitoIdentityProviderClientResolvedConfig,
|
|
27
|
+
context: HandlerExecutionContext,
|
|
28
|
+
input: object
|
|
29
|
+
) => Promise<CognitoIdentityProviderHttpAuthSchemeParameters>;
|
|
30
|
+
export interface CognitoIdentityProviderHttpAuthSchemeProvider
|
|
31
|
+
extends HttpAuthSchemeProvider<CognitoIdentityProviderHttpAuthSchemeParameters> {}
|
|
32
|
+
export declare const defaultCognitoIdentityProviderHttpAuthSchemeProvider: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
33
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
34
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
|
+
httpAuthSchemeProvider?: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
36
|
+
}
|
|
37
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
38
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
39
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
40
|
+
readonly httpAuthSchemeProvider: CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
41
|
+
}
|
|
42
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
43
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
44
|
+
) => 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 CognitoIdentityProviderExtensionConfiguration
|
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
|
6
7
|
DefaultExtensionConfiguration,
|
|
7
|
-
AwsRegionExtensionConfiguration
|
|
8
|
+
AwsRegionExtensionConfiguration,
|
|
9
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (
|
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
11
|
credentialDefaultProvider: (
|
|
12
12
|
input: any
|
|
13
|
-
) => import("@smithy/types").
|
|
13
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
14
14
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
15
15
|
import("@smithy/types").UserAgent
|
|
16
16
|
>;
|
|
@@ -74,11 +74,37 @@ export declare const getRuntimeConfig: (
|
|
|
74
74
|
| import("@smithy/types").RetryStrategy
|
|
75
75
|
| import("@smithy/types").RetryStrategyV2
|
|
76
76
|
| undefined;
|
|
77
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
78
|
+
httpAuthSchemes:
|
|
79
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
80
|
+
| (
|
|
81
|
+
| {
|
|
82
|
+
schemeId: string;
|
|
83
|
+
identityProvider: (
|
|
84
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
85
|
+
) =>
|
|
86
|
+
| import("@smithy/types").IdentityProvider<
|
|
87
|
+
import("@smithy/types").Identity
|
|
88
|
+
>
|
|
89
|
+
| undefined;
|
|
90
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
91
|
+
}
|
|
92
|
+
| {
|
|
93
|
+
schemeId: string;
|
|
94
|
+
identityProvider: (
|
|
95
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
96
|
+
) =>
|
|
97
|
+
| import("@smithy/types").IdentityProvider<
|
|
98
|
+
import("@smithy/types").Identity
|
|
99
|
+
>
|
|
100
|
+
| (() => Promise<{}>);
|
|
101
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
102
|
+
}
|
|
103
|
+
)[];
|
|
104
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityProviderHttpAuthSchemeProvider;
|
|
77
105
|
credentials?:
|
|
78
106
|
| import("@smithy/types").AwsCredentialIdentity
|
|
79
|
-
| import("@smithy/types").
|
|
80
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
81
|
-
>
|
|
107
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
82
108
|
| undefined;
|
|
83
109
|
signer?:
|
|
84
110
|
| import("@smithy/types").RequestSigner
|
|
@@ -95,5 +121,4 @@ export declare const getRuntimeConfig: (
|
|
|
95
121
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
96
122
|
) => import("@smithy/types").RequestSigner)
|
|
97
123
|
| undefined;
|
|
98
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
99
124
|
};
|