@kensio/yulin 1.16.1 → 1.16.2
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/sdk/wire/sim-sdk-wire-operation.d.ts +12 -2
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts +0 -4
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +8 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +13 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +2 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +2 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +8 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/user/password-reset.command.d.ts +80 -0
- package/dist/service/cognito/command/user/password-reset.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/password-reset.command.js +2 -0
- package/dist/service/cognito/command/user/password-reset.command.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts +74 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js +121 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts +34 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.js +54 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +3 -3
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts +29 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js +36 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js.map +1 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts +23 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +27 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +2 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +2 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -5
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +18 -5
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts +26 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js +57 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +9 -6
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +26 -11
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +18 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +23 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts +12 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.js +18 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts +27 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js +65 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +2 -10
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +16 -21
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
- package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.js +25 -0
- package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +10 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +11 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts +44 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js +78 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +10 -6
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +5 -2
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +5 -2
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +15 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +18 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +4 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +5 -2
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +14 -6
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +20 -9
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts +62 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js +65 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +55 -11
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +67 -10
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +15 -12
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js +31 -20
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js +5 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +7 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js +1 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts +3 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +3 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +6 -9
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +3 -3
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +11 -3
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +13 -8
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +21 -2
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +18 -2
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +26 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +17 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts +17 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js +43 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts +44 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js +83 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts +50 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js +83 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts +42 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.js +88 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.js.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.d.ts → outbound/sim-lambda-http-request.d.ts} +20 -7
- package/dist/service/lambda/function/outbound/sim-lambda-http-request.d.ts.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.js → outbound/sim-lambda-http-request.js} +27 -29
- package/dist/service/lambda/function/outbound/sim-lambda-http-request.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts +18 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.js +23 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.js.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.d.ts → outbound/sim-lambda-http-target.d.ts} +9 -7
- package/dist/service/lambda/function/outbound/sim-lambda-http-target.d.ts.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.js → outbound/sim-lambda-http-target.js} +4 -38
- package/dist/service/lambda/function/outbound/sim-lambda-http-target.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts +15 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js +38 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts +27 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts +13 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js +107 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js +2 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts +16 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js +29 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -6
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +9 -10
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +2 -1
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
- package/package.json +2 -2
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +0 -27
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +0 -78
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +0 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { requireSimCognitoSecretHash } from "../../user-pool/auth/sim-cognito-secret-hash.js";
|
|
2
|
+
import { simCognitoCodeDelivery, simCognitoHiddenCodeDelivery, } from "../../user-pool/message/sim-cognito-code-delivery.js";
|
|
3
|
+
import { SimCognitoPasswordCheck } from "../../user-pool/sim-cognito-password-check.js";
|
|
4
|
+
import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
|
|
5
|
+
import { requireSimCognitoUsername } from "../../user-pool/user/sim-cognito-username.js";
|
|
6
|
+
import { findSimCognitoResettingUser, requireSimCognitoResetDelivery, requireSimCognitoResettingUser, } from "./sim-cognito-resetting-user.js";
|
|
7
|
+
import { SimCognitoUnsimulatedPasswordResetOptions } from "./sim-cognito-unsimulated-password-reset-options.js";
|
|
8
|
+
/**
|
|
9
|
+
* The commands a user resets a forgotten password with, and the one an
|
|
10
|
+
* administrator resets it for them with.
|
|
11
|
+
*
|
|
12
|
+
* The first two are what a browser or mobile app calls for someone who cannot
|
|
13
|
+
* sign in, so no IAM permission is involved and no caller is read: the app
|
|
14
|
+
* client id is what finds the pool, as it does for sign-up and sign-in.
|
|
15
|
+
* `AdminResetUserPassword` authorizes against the pool's ARN the way every
|
|
16
|
+
* other admin operation does.
|
|
17
|
+
*
|
|
18
|
+
* Nothing here delivers the code. It is issued and held on the user,
|
|
19
|
+
* `SimCognitoUserPool.confirmationCode` is where a test reads it from, and the
|
|
20
|
+
* message the pool would have sent it in is recorded on the pool.
|
|
21
|
+
*/
|
|
22
|
+
export class SimCognitoPasswordResetCommands {
|
|
23
|
+
authResolver;
|
|
24
|
+
resolver;
|
|
25
|
+
triggers;
|
|
26
|
+
messenger;
|
|
27
|
+
unsimulatedOptions = new SimCognitoUnsimulatedPasswordResetOptions();
|
|
28
|
+
constructor(properties) {
|
|
29
|
+
this.authResolver = properties.authResolver;
|
|
30
|
+
this.resolver = properties.resolver;
|
|
31
|
+
this.triggers = properties.triggers;
|
|
32
|
+
this.messenger = properties.messenger;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Start a password reset, and answer with where the code went.
|
|
36
|
+
*
|
|
37
|
+
* The user keeps the password it has and stays where it is, because asking
|
|
38
|
+
* to reset is not resetting: `ConfirmForgotPassword` is what changes
|
|
39
|
+
* anything. A second request issues a second code and forgets the first.
|
|
40
|
+
*
|
|
41
|
+
* A pool with nowhere to send the code refuses, in the words real Cognito
|
|
42
|
+
* refuses with, rather than answering as though a message had gone out. The
|
|
43
|
+
* code goes to an attribute the pool verifies automatically, which is the
|
|
44
|
+
* same address a sign-up code goes to.
|
|
45
|
+
*/
|
|
46
|
+
async forgotPassword(command) {
|
|
47
|
+
const { input } = command;
|
|
48
|
+
const { pool, client } = this.authResolver.client(input.ClientId);
|
|
49
|
+
this.unsimulatedOptions.refuseInForgot(input);
|
|
50
|
+
const username = requireSimCognitoUsername(input.Username);
|
|
51
|
+
requireSimCognitoSecretHash(username, client, input.SecretHash);
|
|
52
|
+
const user = findSimCognitoResettingUser(pool, client, username);
|
|
53
|
+
if (user === undefined) {
|
|
54
|
+
return {
|
|
55
|
+
$metadata: {},
|
|
56
|
+
CodeDeliveryDetails: simCognitoHiddenCodeDelivery(username),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
user.status.requireSelfResettable();
|
|
60
|
+
const delivery = requireSimCognitoResetDelivery(pool, user);
|
|
61
|
+
user.passwordReset.start();
|
|
62
|
+
await this.messenger.send({
|
|
63
|
+
pool,
|
|
64
|
+
user,
|
|
65
|
+
client,
|
|
66
|
+
occasion: "ForgotPassword",
|
|
67
|
+
code: user.confirmationCode,
|
|
68
|
+
clientMetadata: input.ClientMetadata,
|
|
69
|
+
});
|
|
70
|
+
return {
|
|
71
|
+
$metadata: {},
|
|
72
|
+
CodeDeliveryDetails: simCognitoCodeDelivery(delivery),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Finish a password reset with the code the pool issued.
|
|
77
|
+
*
|
|
78
|
+
* The user reaches `CONFIRMED` and signs in with the password it chose from
|
|
79
|
+
* then on. The password is checked against the pool's policy first, as every
|
|
80
|
+
* other password is, and the code is spent whether or not the user had one
|
|
81
|
+
* outstanding: a second attempt with the same code is refused.
|
|
82
|
+
*
|
|
83
|
+
* The pool's `PostConfirmation` trigger runs last, reporting
|
|
84
|
+
* `PostConfirmation_ConfirmForgotPassword`, so a handler that fires on a
|
|
85
|
+
* sign-up being confirmed can tell this occasion from that one.
|
|
86
|
+
*/
|
|
87
|
+
async confirmForgotPassword(command) {
|
|
88
|
+
const { input } = command;
|
|
89
|
+
const { pool, client } = this.authResolver.client(input.ClientId);
|
|
90
|
+
this.unsimulatedOptions.refuseInConfirm(input);
|
|
91
|
+
const username = requireSimCognitoUsername(input.Username);
|
|
92
|
+
requireSimCognitoSecretHash(username, client, input.SecretHash);
|
|
93
|
+
const user = requireSimCognitoResettingUser(pool, client, username);
|
|
94
|
+
const password = new SimCognitoPasswordCheck(pool.settings.passwordPolicy).require("Password", input.Password);
|
|
95
|
+
user.passwordReset.confirm(input.ConfirmationCode, password);
|
|
96
|
+
await this.triggers.postConfirmation(SimCognitoTriggerOccasion.confirmForgotPassword, { pool, client, user, clientMetadata: input.ClientMetadata });
|
|
97
|
+
return { $metadata: {} };
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Take a user's password away, leaving it in `RESET_REQUIRED`.
|
|
101
|
+
*
|
|
102
|
+
* The user cannot sign in until it sets another one, which is what the
|
|
103
|
+
* status is for, and the pool records the message carrying the code it sets
|
|
104
|
+
* that one with. A user the pool has nowhere to write to is still reset, and
|
|
105
|
+
* simply gets no message: the status change is what this operation is for.
|
|
106
|
+
*/
|
|
107
|
+
async adminResetUserPassword(command, options) {
|
|
108
|
+
const { input } = command;
|
|
109
|
+
const { pool, user } = this.resolver.poolUser("cognito-idp:AdminResetUserPassword", input, options);
|
|
110
|
+
user.passwordReset.require();
|
|
111
|
+
await this.messenger.send({
|
|
112
|
+
pool,
|
|
113
|
+
user,
|
|
114
|
+
occasion: "ForgotPassword",
|
|
115
|
+
code: user.confirmationCode,
|
|
116
|
+
clientMetadata: input.ClientMetadata,
|
|
117
|
+
});
|
|
118
|
+
return { $metadata: {} };
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=sim-cognito-password-reset-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-password-reset-commands.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-password-reset-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,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CAAC,cAAc,CAC7B,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEtC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QAE7D,MAAM,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAClC,yBAAyB,CAAC,qBAAqB,EAC/C,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE,CAC7D,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAyC,EACzC,OAAkC;QAElC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAC1B,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAC3C,oCAAoC,EACpC,KAAK,EACL,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QAE7B,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACxB,IAAI;YACJ,IAAI;YACJ,QAAQ,EAAE,gBAAgB;YAC1B,IAAI,EAAE,IAAI,CAAC,gBAAgB;YAC3B,cAAc,EAAE,KAAK,CAAC,cAAc;SACrC,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SimCognitoUserPoolClient } from "../../user-pool/client/sim-cognito-user-pool-client.js";
|
|
2
|
+
import { SimCognitoMessageDelivery } from "../../user-pool/message/sim-cognito-message-delivery.js";
|
|
3
|
+
import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
|
|
4
|
+
import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
|
|
5
|
+
/**
|
|
6
|
+
* Find the user a `ForgotPassword` names, or answer with nothing where the app
|
|
7
|
+
* client hides that it is missing.
|
|
8
|
+
*
|
|
9
|
+
* A client on the `LEGACY` default says the user does not exist. One with
|
|
10
|
+
* `PreventUserExistenceErrors` of `ENABLED` leaves the caller to answer as
|
|
11
|
+
* though a code had gone out, which is what stops the operation being used to
|
|
12
|
+
* find out who has an account.
|
|
13
|
+
*/
|
|
14
|
+
export declare function findSimCognitoResettingUser(pool: SimCognitoUserPool, client: SimCognitoUserPoolClient, username: string): SimCognitoUser | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Resolve the user a `ConfirmForgotPassword` names, as the app client reports
|
|
17
|
+
* one that is not there.
|
|
18
|
+
*
|
|
19
|
+
* A client hiding user existence answers with the same code mismatch a wrong
|
|
20
|
+
* code gets. Saying the user is missing would be the leak the setting exists
|
|
21
|
+
* to close.
|
|
22
|
+
*/
|
|
23
|
+
export declare function requireSimCognitoResettingUser(pool: SimCognitoUserPool, client: SimCognitoUserPoolClient, username: string): SimCognitoUser;
|
|
24
|
+
/**
|
|
25
|
+
* Where a reset code would go, or a refusal where the pool has nowhere to send
|
|
26
|
+
* one.
|
|
27
|
+
*
|
|
28
|
+
* The code goes to an attribute the pool verifies automatically, which is the
|
|
29
|
+
* address a sign-up code goes to. Real Cognito chooses by the pool's
|
|
30
|
+
* `AccountRecoverySetting` and refuses a user it can reach at neither address
|
|
31
|
+
* in these words.
|
|
32
|
+
*/
|
|
33
|
+
export declare function requireSimCognitoResetDelivery(pool: SimCognitoUserPool, user: SimCognitoUser): SimCognitoMessageDelivery;
|
|
34
|
+
//# sourceMappingURL=sim-cognito-resetting-user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-resetting-user.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-resetting-user.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,EAAE,MAAM,GACf,cAAc,GAAG,SAAS,CAY5B;AAED;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,EAAE,MAAM,GACf,cAAc,CAUhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,kBAAkB,EACxB,IAAI,EAAE,cAAc,GACnB,yBAAyB,CAe3B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SimCognitoCodeMismatchException, SimCognitoInvalidParameterException, SimCognitoUserNotFoundException, } from "../../error/sim-cognito.error.js";
|
|
2
|
+
import { SimCognitoMessageDelivery } from "../../user-pool/message/sim-cognito-message-delivery.js";
|
|
3
|
+
/**
|
|
4
|
+
* Find the user a `ForgotPassword` names, or answer with nothing where the app
|
|
5
|
+
* client hides that it is missing.
|
|
6
|
+
*
|
|
7
|
+
* A client on the `LEGACY` default says the user does not exist. One with
|
|
8
|
+
* `PreventUserExistenceErrors` of `ENABLED` leaves the caller to answer as
|
|
9
|
+
* though a code had gone out, which is what stops the operation being used to
|
|
10
|
+
* find out who has an account.
|
|
11
|
+
*/
|
|
12
|
+
export function findSimCognitoResettingUser(pool, client, username) {
|
|
13
|
+
const user = pool.findUser(username);
|
|
14
|
+
if (user !== undefined) {
|
|
15
|
+
return user;
|
|
16
|
+
}
|
|
17
|
+
if (client.preventUserExistenceErrors.hidesUserExistence) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
throw new SimCognitoUserNotFoundException("User does not exist.");
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolve the user a `ConfirmForgotPassword` names, as the app client reports
|
|
24
|
+
* one that is not there.
|
|
25
|
+
*
|
|
26
|
+
* A client hiding user existence answers with the same code mismatch a wrong
|
|
27
|
+
* code gets. Saying the user is missing would be the leak the setting exists
|
|
28
|
+
* to close.
|
|
29
|
+
*/
|
|
30
|
+
export function requireSimCognitoResettingUser(pool, client, username) {
|
|
31
|
+
const user = findSimCognitoResettingUser(pool, client, username);
|
|
32
|
+
if (user === undefined) {
|
|
33
|
+
throw new SimCognitoCodeMismatchException("Invalid verification code provided, please try again.");
|
|
34
|
+
}
|
|
35
|
+
return user;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Where a reset code would go, or a refusal where the pool has nowhere to send
|
|
39
|
+
* one.
|
|
40
|
+
*
|
|
41
|
+
* The code goes to an attribute the pool verifies automatically, which is the
|
|
42
|
+
* address a sign-up code goes to. Real Cognito chooses by the pool's
|
|
43
|
+
* `AccountRecoverySetting` and refuses a user it can reach at neither address
|
|
44
|
+
* in these words.
|
|
45
|
+
*/
|
|
46
|
+
export function requireSimCognitoResetDelivery(pool, user) {
|
|
47
|
+
const delivery = SimCognitoMessageDelivery.forOccasion(pool, user, "ForgotPassword");
|
|
48
|
+
if (delivery === undefined) {
|
|
49
|
+
throw new SimCognitoInvalidParameterException(`Cannot reset password for the user as there is no ` +
|
|
50
|
+
`registered/verified email or phone_number`);
|
|
51
|
+
}
|
|
52
|
+
return delivery;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=sim-cognito-resetting-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-resetting-user.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-resetting-user.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/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,YAAY,UAAU,EAAE,kCAAkC,EAMzD;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACG,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-up-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-sign-up-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAG1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAGrG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAE5G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAGpF,OAAO,KAAK,EACV,4BAA4B,EAC5B,kCAAkC,EAElC,uBAAuB,EACvB,6BAA6B,EAC7B,gCAAgC,EAChC,sCAAsC,EACtC,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAC9C,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;CAC7C;AAED,UAAU,wBAAwB;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4B;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwB;IACpD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B;IACpD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CACQ;IAE3C,YAAY,UAAU,EAAE,kCAAkC,EAMzD;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACG,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAuEvE;IAED;;;;;;;OAOG;IACG,aAAa,CACjB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,6BAA6B,CAAC,CAsBxC;IAED;;;;;;;;OAQG;IACG,sBAAsB,CAC1B,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,sCAAsC,CAAC,CAoBjD;IAED;;;;;;;;;;;;OAYG;IACG,kBAAkB,CACtB,OAAO,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kCAAkC,CAAC,CAqB7C;IAED;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;CAWtB"}
|
|
@@ -80,7 +80,7 @@ export class SimCognitoSignUpCommands {
|
|
|
80
80
|
pool.addUser(user);
|
|
81
81
|
if (preSignUp.autoConfirmUser) {
|
|
82
82
|
user.confirm();
|
|
83
|
-
await this.triggers.postConfirmation({
|
|
83
|
+
await this.triggers.postConfirmation(SimCognitoTriggerOccasion.confirmSignUp, {
|
|
84
84
|
pool,
|
|
85
85
|
client,
|
|
86
86
|
user,
|
|
@@ -118,7 +118,7 @@ export class SimCognitoSignUpCommands {
|
|
|
118
118
|
const user = this.signingUpUser(pool, client, input);
|
|
119
119
|
user.confirmSignUp(input.ConfirmationCode);
|
|
120
120
|
user.verifyAttributes(pool.settings.autoVerifiedAttributes.names);
|
|
121
|
-
await this.triggers.postConfirmation({
|
|
121
|
+
await this.triggers.postConfirmation(SimCognitoTriggerOccasion.confirmSignUp, {
|
|
122
122
|
pool,
|
|
123
123
|
client,
|
|
124
124
|
user,
|
|
@@ -168,7 +168,7 @@ export class SimCognitoSignUpCommands {
|
|
|
168
168
|
const { input } = command;
|
|
169
169
|
const { pool, user } = this.resolver.poolUser("cognito-idp:AdminConfirmSignUp", input, options);
|
|
170
170
|
user.confirm();
|
|
171
|
-
await this.triggers.postConfirmation({
|
|
171
|
+
await this.triggers.postConfirmation(SimCognitoTriggerOccasion.confirmSignUp, {
|
|
172
172
|
pool,
|
|
173
173
|
user,
|
|
174
174
|
clientMetadata: input.ClientMetadata,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sign-up-commands.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-sign-up-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAI9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAIpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAGzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAyBlG;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,QAAQ,CAA4B;IACpC,WAAW,CAAwB;IACnC,QAAQ,CAA6B;IACrC,SAAS,CAA0B;IACnC,kBAAkB,GACjC,IAAI,kCAAkC,EAAE,CAAC;IAE3C,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ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AwB,CACtC,KAAK,CAAC,cAAc,EACpB,QAAQ,CACT;SACF,CACF,CAAC;QAEF,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnB,IAAI,SAAS,CAAC,eAAe,EAAE,CAAC;YAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-up-commands.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-sign-up-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAI9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAIpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAGzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAyBlG;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,QAAQ,CAA4B;IACpC,WAAW,CAAwB;IACnC,QAAQ,CAA6B;IACrC,SAAS,CAA0B;IACnC,kBAAkB,GACjC,IAAI,kCAAkC,EAAE,CAAC;IAE3C,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;IACxC,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK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a,EACvC;YACE,IAAI;YACJ,IAAI;YACJ,cAAc,EAAE,KAAK,CAAC,cAAc;SACrC,CACF,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;;OAMG;IACK,aAAa,CACnB,IAAwB,EACxB,MAAgC,EAChC,KAAmC;QAEnC,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAE3D,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SimCognitoPasswordResetCommandInput } from "./password-reset.command.js";
|
|
2
|
+
/**
|
|
3
|
+
* Refuses the password reset inputs this simulation does not model.
|
|
4
|
+
*
|
|
5
|
+
* Both client-side operations carry the analytics and device context a real
|
|
6
|
+
* app sends, and none of that is simulated, so an input asking for any of it
|
|
7
|
+
* is refused rather than dropped.
|
|
8
|
+
*
|
|
9
|
+
* `ClientMetadata` is not among them. It exists to reach a Lambda trigger, and
|
|
10
|
+
* the custom message and post confirmation triggers both run here, so the data
|
|
11
|
+
* reaches the handler instead of being refused.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimCognitoUnsimulatedPasswordResetOptions {
|
|
14
|
+
private readonly forgotInput;
|
|
15
|
+
private readonly confirmInput;
|
|
16
|
+
/**
|
|
17
|
+
* Refuse a `ForgotPassword` request this simulation cannot honour.
|
|
18
|
+
*/
|
|
19
|
+
refuseInForgot(input: SimCognitoPasswordResetCommandInput): void;
|
|
20
|
+
/**
|
|
21
|
+
* Refuse a `ConfirmForgotPassword` request this simulation cannot honour.
|
|
22
|
+
*/
|
|
23
|
+
refuseInConfirm(input: SimCognitoPasswordResetCommandInput): void;
|
|
24
|
+
/**
|
|
25
|
+
* Refuse the two inputs both operations share.
|
|
26
|
+
*/
|
|
27
|
+
private refuseAppContext;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=sim-cognito-unsimulated-password-reset-options.d.ts.map
|
package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-unsimulated-password-reset-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAEvF;;;;;;;;;;GAUG;AACH,qBAAa,yCAAyC;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IACF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAE3B;IAEF;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,mCAAmC,GAAG,IAAI,CAE/D;IAED;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,mCAAmC,GAAG,IAAI,CAEhE;IAED;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAezB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SimCognitoUnsimulatedInput } from "../sim-cognito-unsimulated-input.js";
|
|
2
|
+
/**
|
|
3
|
+
* Refuses the password reset inputs this simulation does not model.
|
|
4
|
+
*
|
|
5
|
+
* Both client-side operations carry the analytics and device context a real
|
|
6
|
+
* app sends, and none of that is simulated, so an input asking for any of it
|
|
7
|
+
* is refused rather than dropped.
|
|
8
|
+
*
|
|
9
|
+
* `ClientMetadata` is not among them. It exists to reach a Lambda trigger, and
|
|
10
|
+
* the custom message and post confirmation triggers both run here, so the data
|
|
11
|
+
* reaches the handler instead of being refused.
|
|
12
|
+
*/
|
|
13
|
+
export class SimCognitoUnsimulatedPasswordResetOptions {
|
|
14
|
+
forgotInput = new SimCognitoUnsimulatedInput("ForgotPassword");
|
|
15
|
+
confirmInput = new SimCognitoUnsimulatedInput("ConfirmForgotPassword");
|
|
16
|
+
/**
|
|
17
|
+
* Refuse a `ForgotPassword` request this simulation cannot honour.
|
|
18
|
+
*/
|
|
19
|
+
refuseInForgot(input) {
|
|
20
|
+
this.refuseAppContext(this.forgotInput, input);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Refuse a `ConfirmForgotPassword` request this simulation cannot honour.
|
|
24
|
+
*/
|
|
25
|
+
refuseInConfirm(input) {
|
|
26
|
+
this.refuseAppContext(this.confirmInput, input);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Refuse the two inputs both operations share.
|
|
30
|
+
*/
|
|
31
|
+
refuseAppContext(unsimulated, input) {
|
|
32
|
+
unsimulated.refuse("AnalyticsMetadata", input.AnalyticsMetadata, "recording the request against a Pinpoint analytics endpoint");
|
|
33
|
+
unsimulated.refuse("UserContextData", input.UserContextData, "the device data threat protection judges a request by");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=sim-cognito-unsimulated-password-reset-options.js.map
|
package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-unsimulated-password-reset-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF;;;;;;;;;;GAUG;AACH,MAAM,OAAO,yCAAyC;IACnC,WAAW,GAAG,IAAI,0BAA0B,CAC3D,gBAAgB,CACjB,CAAC;IACe,YAAY,GAAG,IAAI,0BAA0B,CAC5D,uBAAuB,CACxB,CAAC;IAEF;;OAEG;IACH,cAAc,CAAC,KAA0C;QACvD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,KAA0C;QACxD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACK,gBAAgB,CACtB,WAAuC,EACvC,KAA0C;QAE1C,WAAW,CAAC,MAAM,CAChB,mBAAmB,EACnB,KAAK,CAAC,iBAAiB,EACvB,6DAA6D,CAC9D,CAAC;QACF,WAAW,CAAC,MAAM,CAChB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,uDAAuD,CACxD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -146,4 +146,27 @@ export declare class SimCognitoSoftwareTokenMfaNotFoundException extends SimCogn
|
|
|
146
146
|
readonly name = "SoftwareTokenMFANotFoundException";
|
|
147
147
|
constructor(message: string);
|
|
148
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Simulated Cognito ExpiredCodeException error.
|
|
151
|
+
*
|
|
152
|
+
* Real Cognito reports a code it will no longer take this way, whether the
|
|
153
|
+
* code was spent or its lifetime ran out. Only the first of those happens
|
|
154
|
+
* here, because nothing ages a code out.
|
|
155
|
+
*/
|
|
156
|
+
export declare class SimCognitoExpiredCodeException extends SimCognitoError {
|
|
157
|
+
readonly name = "ExpiredCodeException";
|
|
158
|
+
constructor(message: string);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Simulated Cognito PasswordResetRequiredException error.
|
|
162
|
+
*
|
|
163
|
+
* Real Cognito reports a sign-in by a user whose password an administrator
|
|
164
|
+
* reset this way. The password was right: what is missing is the reset, so an
|
|
165
|
+
* application knows to send the user to `ConfirmForgotPassword` rather than
|
|
166
|
+
* back to the password field.
|
|
167
|
+
*/
|
|
168
|
+
export declare class SimCognitoPasswordResetRequiredException extends SimCognitoError {
|
|
169
|
+
readonly name = "PasswordResetRequiredException";
|
|
170
|
+
constructor(message: string);
|
|
171
|
+
}
|
|
149
172
|
//# sourceMappingURL=sim-cognito.error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito.error.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/error/sim-cognito.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;aAGtB,SAAS,EAAE,uBAAuB;IAFpD,YACE,OAAO,EAAE,MAAM,EACC,SAAS,GAAE,uBAA4B,EAGxD;CACF;AAED;;;;;GAKG;AACH,qBAAa,mCAAoC,SAAQ,eAAe;IACtE,SAAyB,IAAI,+BAA+B;IAE5D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,mCAAoC,SAAQ,eAAe;IACtE,SAAyB,IAAI,+BAA+B;IAE5D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,iCAAkC,SAAQ,eAAe;IACpE,SAAyB,IAAI,6BAA6B;IAE1D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,8BAA+B,SAAQ,eAAe;IACjE,SAAyB,IAAI,0BAA0B;IAEvD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,8BAA+B,SAAQ,eAAe;IACjE,SAAyB,IAAI,0BAA0B;IAEvD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,oCAAqC,SAAQ,eAAe;IACvE,SAAyB,IAAI,gCAAgC;IAE7D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,+BAAgC,SAAQ,eAAe;IAClE,SAAyB,IAAI,2BAA2B;IAExD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,gCAAiC,SAAQ,eAAe;IACnE,SAAyB,IAAI,4BAA4B;IAEzD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;;GAOG;AACH,qBAAa,mCAAoC,SAAQ,eAAe;IACtE,SAAyB,IAAI,+BAA+B;IAE5D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,+BAAgC,SAAQ,eAAe;IAClE,SAAyB,IAAI,2BAA2B;IAExD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,kCAAmC,SAAQ,eAAe;IACrE,SAAyB,IAAI,8BAA8B;IAE3D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,yCAA0C,SAAQ,eAAe;IAC5E,SAAyB,IAAI,qCAAqC;IAElE,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,eAAe;IAC9E,SAAyB,IAAI,uCAAuC;IAEpE,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito.error.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/error/sim-cognito.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,KAAK;aAGtB,SAAS,EAAE,uBAAuB;IAFpD,YACE,OAAO,EAAE,MAAM,EACC,SAAS,GAAE,uBAA4B,EAGxD;CACF;AAED;;;;;GAKG;AACH,qBAAa,mCAAoC,SAAQ,eAAe;IACtE,SAAyB,IAAI,+BAA+B;IAE5D,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;GAKG;AACH,qBAAa,mCAAoC,SAAQ,eAAe;IACtE,SAAyB,IAAI,+BAA+B;IAE5D,YAAY,OAAO,EAAE,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;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,eAAe;IAC9E,SAAyB,IAAI,uCAAuC;IAEpE,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,8BAA+B,SAAQ,eAAe;IACjE,SAAyB,IAAI,0BAA0B;IAEvD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;;GAOG;AACH,qBAAa,wCAAyC,SAAQ,eAAe;IAC3E,SAAyB,IAAI,oCAAoC;IAEjE,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF"}
|
|
@@ -169,4 +169,31 @@ export class SimCognitoSoftwareTokenMfaNotFoundException extends SimCognitoError
|
|
|
169
169
|
super(message, { httpStatusCode: 400 });
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Simulated Cognito ExpiredCodeException error.
|
|
174
|
+
*
|
|
175
|
+
* Real Cognito reports a code it will no longer take this way, whether the
|
|
176
|
+
* code was spent or its lifetime ran out. Only the first of those happens
|
|
177
|
+
* here, because nothing ages a code out.
|
|
178
|
+
*/
|
|
179
|
+
export class SimCognitoExpiredCodeException extends SimCognitoError {
|
|
180
|
+
name = "ExpiredCodeException";
|
|
181
|
+
constructor(message) {
|
|
182
|
+
super(message, { httpStatusCode: 400 });
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Simulated Cognito PasswordResetRequiredException error.
|
|
187
|
+
*
|
|
188
|
+
* Real Cognito reports a sign-in by a user whose password an administrator
|
|
189
|
+
* reset this way. The password was right: what is missing is the reset, so an
|
|
190
|
+
* application knows to send the user to `ConfirmForgotPassword` rather than
|
|
191
|
+
* back to the password field.
|
|
192
|
+
*/
|
|
193
|
+
export class SimCognitoPasswordResetRequiredException extends SimCognitoError {
|
|
194
|
+
name = "PasswordResetRequiredException";
|
|
195
|
+
constructor(message) {
|
|
196
|
+
super(message, { httpStatusCode: 400 });
|
|
197
|
+
}
|
|
198
|
+
}
|
|
172
199
|
//# sourceMappingURL=sim-cognito.error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito.error.js","sourceRoot":"","sources":["../../../../src/service/cognito/error/sim-cognito.error.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAGtB,SAAS;IAF3B,YACE,OAAe,EACC,SAAS,GAA4B,EAAE;QAEvD,KAAK,CAAC,OAAO,CAAC,CAAC;yBAFC,SAAS;IAG3B,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,eAAe;IAC3C,IAAI,GAAG,yBAAyB,CAAC;IAE1D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,8BAA+B,SAAQ,eAAe;IACxC,IAAI,GAAG,sBAAsB,CAAC;IAEvD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,8BAA+B,SAAQ,eAAe;IACxC,IAAI,GAAG,sBAAsB,CAAC;IAEvD,YAAY,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AAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,yCAA0C,SAAQ,eAAe;IACnD,IAAI,GAAG,iCAAiC,CAAC;IAElE,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,2CAA4C,SAAQ,eAAe;IACrD,IAAI,GAAG,mCAAmC,CAAC;IAEpE,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito.error.js","sourceRoot":"","sources":["../../../../src/service/cognito/error/sim-cognito.error.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAGtB,SAAS;IAF3B,YACE,OAAe,EACC,SAAS,GAA4B,EAAE;QAEvD,KAAK,CAAC,OAAO,CAAC,CAAC;yBAFC,SAAS;IAG3B,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,mCAAoC,SAAQ,eAAe;IAC7C,IAAI,GAAG,2BAA2B,CAAC;IAE5D,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,eAAe;IAC3C,IAAI,GAAG,yBAAyB,CAAC;IAE1D,YAAY,OAAe;QACzB,KAAK,CA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@ export { SimCognitoFederation } from "./sim-cognito-federation.js";
|
|
|
19
19
|
export { SimCognitoAuthentication } from "./sim-cognito-authentication.js";
|
|
20
20
|
export { SimCognitoUser } from "./user-pool/user/sim-cognito-user.js";
|
|
21
21
|
export { SimCognitoConfirmationCode } from "./user-pool/user/sim-cognito-confirmation-code.js";
|
|
22
|
+
export { SimCognitoUserPasswordReset } from "./user-pool/user/sim-cognito-user-password-reset.js";
|
|
22
23
|
export type { SimCognitoUsername } from "./user-pool/user/sim-cognito-username.js";
|
|
23
24
|
export { SimCognitoUserStatus, type SimCognitoUserStatusValue, } from "./user-pool/user/sim-cognito-user-status.js";
|
|
24
25
|
export { SimCognitoUserAttributes, type SimCognitoAttributeType, } from "./user-pool/user/sim-cognito-user-attributes.js";
|
|
@@ -51,5 +52,5 @@ export { SimCognitoAuthSession } from "./user-pool/auth/sim-cognito-auth-session
|
|
|
51
52
|
export { SimCognitoIssuedToken } from "./user-pool/auth/sim-cognito-issued-token.js";
|
|
52
53
|
export { SimCognitoPoolAuth } from "./user-pool/auth/sim-cognito-pool-auth.js";
|
|
53
54
|
export { isSimCognitoOAuthError, SimCognitoOAuthError, type SimCognitoOAuthErrorCode, } from "./error/sim-cognito-oauth.error.js";
|
|
54
|
-
export { SimCognitoAliasExistsException, SimCognitoCodeMismatchException, SimCognitoDuplicateProviderException, SimCognitoEnableSoftwareTokenMfaException, SimCognitoError, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoResourceNotFoundException, SimCognitoSoftwareTokenMfaNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
|
|
55
|
+
export { SimCognitoAliasExistsException, SimCognitoCodeMismatchException, SimCognitoDuplicateProviderException, SimCognitoEnableSoftwareTokenMfaException, SimCognitoError, SimCognitoExpiredCodeException, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoPasswordResetRequiredException, SimCognitoResourceNotFoundException, SimCognitoSoftwareTokenMfaNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
|
|
55
56
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,wCAAwC,GAC9C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,0CAA0C,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EACL,4BAA4B,EAC5B,KAAK,iCAAiC,GACvC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,+BAA+B,EAC/B,KAAK,mCAAmC,GACzC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,0BAA0B,EAC1B,KAAK,+BAA+B,GACrC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,qBAAqB,EACrB,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,GAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,GACpC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,YAAY,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AACxG,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,o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AA2C,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAC/B,oCAAoC,EACpC,yCAAyC,EACzC,eAAe,EACf,8BAA8B,EAC9B,mCAAmC,EACnC,kCAAkC,EAClC,gCAAgC,EAChC,mCAAmC,EACnC,2CAA2C,EAC3C,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,wCAAwC,GAC9C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,0CAA0C,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EACL,4BAA4B,EAC5B,KAAK,iCAAiC,GACvC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,+BAA+B,EAC/B,KAAK,mCAAmC,GACzC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,0BAA0B,EAC1B,KAAK,+BAA+B,GACrC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,qBAAqB,EACrB,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,GAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,GACpC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,YAAY,EAAE,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DAAqD,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,wBAAwB,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAC/B,oCAAoC,EACpC,yCAAyC,EACzC,eAAe,EACf,8BAA8B,EAC9B,8BAA8B,EAC9B,mCAAmC,EACnC,kCAAkC,EAClC,gCAAgC,EAChC,wCAAwC,EACxC,mCAAmC,EACnC,2CAA2C,EAC3C,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,8BAA8B,CAAC"}
|
|
@@ -17,6 +17,7 @@ export { SimCognitoFederation } from "./sim-cognito-federation.js";
|
|
|
17
17
|
export { SimCognitoAuthentication } from "./sim-cognito-authentication.js";
|
|
18
18
|
export { SimCognitoUser } from "./user-pool/user/sim-cognito-user.js";
|
|
19
19
|
export { SimCognitoConfirmationCode } from "./user-pool/user/sim-cognito-confirmation-code.js";
|
|
20
|
+
export { SimCognitoUserPasswordReset } from "./user-pool/user/sim-cognito-user-password-reset.js";
|
|
20
21
|
export { SimCognitoUserStatus, } from "./user-pool/user/sim-cognito-user-status.js";
|
|
21
22
|
export { SimCognitoUserAttributes, } from "./user-pool/user/sim-cognito-user-attributes.js";
|
|
22
23
|
export { SimCognitoUserPoolSchema } from "./user-pool/schema/sim-cognito-user-pool-schema.js";
|
|
@@ -45,5 +46,5 @@ export { SimCognitoAuthSession } from "./user-pool/auth/sim-cognito-auth-session
|
|
|
45
46
|
export { SimCognitoIssuedToken } from "./user-pool/auth/sim-cognito-issued-token.js";
|
|
46
47
|
export { SimCognitoPoolAuth } from "./user-pool/auth/sim-cognito-pool-auth.js";
|
|
47
48
|
export { isSimCognitoOAuthError, SimCognitoOAuthError, } from "./error/sim-cognito-oauth.error.js";
|
|
48
|
-
export { SimCognitoAliasExistsException, SimCognitoCodeMismatchException, SimCognitoDuplicateProviderException, SimCognitoEnableSoftwareTokenMfaException, SimCognitoError, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoResourceNotFoundException, SimCognitoSoftwareTokenMfaNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
|
|
49
|
+
export { SimCognitoAliasExistsException, SimCognitoCodeMismatchException, SimCognitoDuplicateProviderException, SimCognitoEnableSoftwareTokenMfaException, SimCognitoError, SimCognitoExpiredCodeException, SimCognitoGroupExistsException, SimCognitoInvalidParameterException, SimCognitoInvalidPasswordException, SimCognitoNotAuthorizedException, SimCognitoPasswordResetRequiredException, SimCognitoResourceNotFoundException, SimCognitoSoftwareTokenMfaNotFoundException, SimCognitoUsernameExistsException, SimCognitoUserNotConfirmedException, SimCognitoUserNotFoundException, } from "./error/sim-cognito.error.js";
|
|
49
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/cognito/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,GAE3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,4BAA4B,GAE7B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,+BAA+B,GAEhC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,0BAA0B,GAE3B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,qBAAqB,GAGtB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EA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AiD,CAAC;AACzD,OAAO,EACL,0BAA0B,GAE3B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,sBAAsB,GAEvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,2BAA2B,GAE5B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,OAAO,EACL,uBAAuB,GAExB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,GAGrB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,GAEtB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AACnG,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GAErB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAC/B,oCAAoC,EACpC,yCAAyC,EACzC,eAAe,EACf,8BAA8B,EAC9B,8BAA8B,EAC9B,mCAAmC,EACnC,kCAAkC,EAClC,gCAAgC,EAChC,wCAAwC,EACxC,mCAAmC,EACnC,2CAA2C,EAC3C,iCAAiC,EACjC,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,8BAA8B,CAAC"}
|
|
@@ -3,11 +3,12 @@ import type { SimCognitoIdentityProvider } from "../sim-cognito-identity-provide
|
|
|
3
3
|
/**
|
|
4
4
|
* The SDK Command routes for the users and groups in a pool.
|
|
5
5
|
*
|
|
6
|
-
* The three sign-up routes
|
|
7
|
-
* Cognito authorizes them with no IAM policy:
|
|
8
|
-
* calls on behalf of someone signing themselves
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* The three sign-up routes and the two password reset ones read no caller from
|
|
7
|
+
* the SDK context, because real Cognito authorizes them with no IAM policy:
|
|
8
|
+
* they are what an application calls on behalf of someone signing themselves
|
|
9
|
+
* up or unable to sign in, holding no AWS credentials at all.
|
|
10
|
+
* `AdminConfirmSignUp` and `AdminResetUserPassword` are the admin sides of the
|
|
11
|
+
* same two things, and do read one.
|
|
11
12
|
*/
|
|
12
13
|
export declare function simCognitoSdkDirectoryRoutes(simCognito: SimCognitoIdentityProvider): readonly (readonly [string, SimSdkCommandRoute])[];
|
|
13
14
|
//# sourceMappingURL=sim-cognito-sdk-directory-routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sdk-directory-routes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-directory-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sdk-directory-routes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-directory-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AA0C/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEtF;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,0BAA0B,GACrC,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,EAAE,CA0NpD"}
|
|
@@ -2,11 +2,12 @@ import { simSdkCallerOptions, } from "../../../sdk/index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* The SDK Command routes for the users and groups in a pool.
|
|
4
4
|
*
|
|
5
|
-
* The three sign-up routes
|
|
6
|
-
* Cognito authorizes them with no IAM policy:
|
|
7
|
-
* calls on behalf of someone signing themselves
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* The three sign-up routes and the two password reset ones read no caller from
|
|
6
|
+
* the SDK context, because real Cognito authorizes them with no IAM policy:
|
|
7
|
+
* they are what an application calls on behalf of someone signing themselves
|
|
8
|
+
* up or unable to sign in, holding no AWS credentials at all.
|
|
9
|
+
* `AdminConfirmSignUp` and `AdminResetUserPassword` are the admin sides of the
|
|
10
|
+
* same two things, and do read one.
|
|
10
11
|
*/
|
|
11
12
|
export function simCognitoSdkDirectoryRoutes(simCognito) {
|
|
12
13
|
return [
|
|
@@ -26,6 +27,18 @@ export function simCognitoSdkDirectoryRoutes(simCognito) {
|
|
|
26
27
|
"AdminConfirmSignUpCommand",
|
|
27
28
|
async (command, context) => await simCognito.adminConfirmSignUp(command, simSdkCallerOptions(context)),
|
|
28
29
|
],
|
|
30
|
+
[
|
|
31
|
+
"ForgotPasswordCommand",
|
|
32
|
+
async (command) => await simCognito.forgotPassword(command),
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"ConfirmForgotPasswordCommand",
|
|
36
|
+
async (command) => await simCognito.confirmForgotPassword(command),
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"AdminResetUserPasswordCommand",
|
|
40
|
+
async (command, context) => await simCognito.adminResetUserPassword(command, simSdkCallerOptions(context)),
|
|
41
|
+
],
|
|
29
42
|
[
|
|
30
43
|
"GetUserCommand",
|
|
31
44
|
async (command) => await simCognito.getUser(command),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sdk-directory-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-directory-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sdk-directory-routes.js","sourceRoot":"","sources":["../../../../src/service/cognito/sdk/sim-cognito-sdk-directory-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,uBAAuB,CAAC;AA4C/B;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAC1C,UAAsC;IAEtC,OAAO;QACL;YACE,eAAe;YACf,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,MAAM,CAAC,OAA2B,CAAC;SACvD;QACD;YACE,sBAAsB;YACtB,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,aAAa,CAAC,OAAkC,CAAC;SACrE;QACD;YACE,+BAA+B;YAC/B,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,sBAAsB,CACrC,OAA2C,CAC5C;SACJ;QACD;YACE,2BAA2B;YAC3B,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,kBAAkB,CACjC,OAAuC,EACvC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;QACD;YACE,uBAAuB;YACvB,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,cAAc,CAAC,OAAmC,CAAC;SACvE;QACD;YACE,8BAA8B;YAC9B,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,qBAAqB,CACpC,OAA0C,CAC3C;SACJ;QACD;YACE,+BAA+B;YAC/B,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,UAAU,CAAC,sBAAsB,CACrC,OAA2C,EAC3C,mBAAmB,CAAC,OAAO,CAAC,CAC7B;SACJ;QACD;YACE,gBAAgB;YAChB,KAAK,EAAE,OAAO,EAAoB,EAAE,CAClC,MAAM,UAAU,CAAC,OAAO,CAAC,OAA4B,CAAC;SACzD;QACD;YACE,+BAA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