@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,26 @@
|
|
|
1
|
+
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
2
|
+
/**
|
|
3
|
+
* The form that starts a password reset, reached from a link on the sign-in
|
|
4
|
+
* page.
|
|
5
|
+
*
|
|
6
|
+
* It asks who has forgotten the password and posts that to `ForgotPassword`,
|
|
7
|
+
* which is what an application with its own sign-in screens calls. The browser
|
|
8
|
+
* goes on to the page that takes the code.
|
|
9
|
+
*
|
|
10
|
+
* What an unknown user sees is the app client's `PreventUserExistenceErrors`
|
|
11
|
+
* decision. A client that hides existence sends the browser to the next page
|
|
12
|
+
* either way, and one on the `LEGACY` default says the user is not there.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SimCognitoForgotPasswordPage {
|
|
15
|
+
private readonly markup;
|
|
16
|
+
/**
|
|
17
|
+
* The page, or the reset its form has just started.
|
|
18
|
+
*/
|
|
19
|
+
handle(form: SimCognitoPageForm): Promise<Response>;
|
|
20
|
+
/**
|
|
21
|
+
* The page a browser is answered with, with a message where a reset has
|
|
22
|
+
* already been refused once.
|
|
23
|
+
*/
|
|
24
|
+
private render;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=sim-cognito-forgot-password-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-forgot-password-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-forgot-password-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQhE;;;;;;;;;;;GAWG;AACH,qBAAa,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAqBxD;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;CAmBf"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
2
|
+
import { SimCognitoPageMarkup } from "./sim-cognito-page-markup.js";
|
|
3
|
+
import { simCognitoAuthorizePath, simCognitoForgotPasswordPath, simCognitoResetPasswordPath, } from "./sim-cognito-page-paths.js";
|
|
4
|
+
/**
|
|
5
|
+
* The form that starts a password reset, reached from a link on the sign-in
|
|
6
|
+
* page.
|
|
7
|
+
*
|
|
8
|
+
* It asks who has forgotten the password and posts that to `ForgotPassword`,
|
|
9
|
+
* which is what an application with its own sign-in screens calls. The browser
|
|
10
|
+
* goes on to the page that takes the code.
|
|
11
|
+
*
|
|
12
|
+
* What an unknown user sees is the app client's `PreventUserExistenceErrors`
|
|
13
|
+
* decision. A client that hides existence sends the browser to the next page
|
|
14
|
+
* either way, and one on the `LEGACY` default says the user is not there.
|
|
15
|
+
*/
|
|
16
|
+
export class SimCognitoForgotPasswordPage {
|
|
17
|
+
markup = new SimCognitoPageMarkup();
|
|
18
|
+
/**
|
|
19
|
+
* The page, or the reset its form has just started.
|
|
20
|
+
*/
|
|
21
|
+
async handle(form) {
|
|
22
|
+
if (!form.isPosted) {
|
|
23
|
+
return this.render(form);
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
await form.cognito.forgotPassword({
|
|
27
|
+
input: {
|
|
28
|
+
ClientId: form.clientId,
|
|
29
|
+
Username: form.username,
|
|
30
|
+
...form.secretHash(),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
return this.render(form, SimCognitoPageForm.messageIn(error));
|
|
36
|
+
}
|
|
37
|
+
return this.markup.redirect(simCognitoResetPasswordPath, {
|
|
38
|
+
...form.parameters,
|
|
39
|
+
username: form.username,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The page a browser is answered with, with a message where a reset has
|
|
44
|
+
* already been refused once.
|
|
45
|
+
*/
|
|
46
|
+
render(form, message) {
|
|
47
|
+
const { parameters } = form;
|
|
48
|
+
const body = (message === undefined ? "" : this.markup.message(message)) +
|
|
49
|
+
this.markup.form(simCognitoForgotPasswordPath, this.markup.hidden(parameters) +
|
|
50
|
+
this.markup.field("username", "Username") +
|
|
51
|
+
this.markup.submit("reset", "Send a reset code")) +
|
|
52
|
+
this.markup.link(simCognitoResetPasswordPath, parameters, "I already have a code") +
|
|
53
|
+
this.markup.link(simCognitoAuthorizePath, parameters, "Back to sign in");
|
|
54
|
+
return this.markup.page("Forgotten your password", body);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=sim-cognito-forgot-password-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-forgot-password-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-forgot-password-page.ts"],"names":[],"m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C3D,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,4BAA4B,EAC5B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;gBACzC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,mBAAmB,CAAC,CACnD;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,2BAA2B,EAC3B,UAAU,EACV,uBAAuB,CACxB;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC;QAE3E,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -4,22 +4,25 @@ import type { SimCognitoPageParameters } from "./sim-cognito-page-markup.js";
|
|
|
4
4
|
* The pages simulated managed login serves.
|
|
5
5
|
*
|
|
6
6
|
* A person reaches the sign-in form at the authorize endpoint, the sign-up
|
|
7
|
-
* form from
|
|
8
|
-
*
|
|
9
|
-
* as hidden inputs, so the sign-in
|
|
10
|
-
* callback URL the application asked
|
|
7
|
+
* form and the forgotten password form from links on it, and the confirmation
|
|
8
|
+
* and new password forms from the step before each. Each form carries the
|
|
9
|
+
* authorize request's own parameters through as hidden inputs, so the sign-in
|
|
10
|
+
* at the end of it reaches the app client's callback URL the application asked
|
|
11
|
+
* for.
|
|
11
12
|
*/
|
|
12
13
|
export declare class SimCognitoManagedLogin {
|
|
13
14
|
private readonly pageRequest;
|
|
14
15
|
private readonly signInPage;
|
|
15
16
|
private readonly signUpPage;
|
|
16
17
|
private readonly confirmPage;
|
|
18
|
+
private readonly forgotPasswordPage;
|
|
19
|
+
private readonly resetPasswordPage;
|
|
17
20
|
/**
|
|
18
|
-
* Whether a path is one of the
|
|
21
|
+
* Whether a path is one of the pages served beside the OAuth endpoints.
|
|
19
22
|
*/
|
|
20
23
|
static servesPage(pathname: string): boolean;
|
|
21
24
|
/**
|
|
22
|
-
* Answer the
|
|
25
|
+
* Answer the page a request reached.
|
|
23
26
|
*/
|
|
24
27
|
handlePage(request: SimCognitoDomainRequest): Promise<Response>;
|
|
25
28
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-managed-login.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-managed-login.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-managed-login.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-managed-login.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAIhF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAa7E;;;;;;;;;GASG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAsC;IACzE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqC;IAEvE;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE3C;IAED;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAiBpE;IAED;;;;;;;;;OASG;IACH,aAAa,CACX,OAAO,EAAE,uBAAuB,EAChC,UAAU,EAAE,wBAAwB,EACpC,KAAK,EAAE,OAAO,GACb,QAAQ,GAAG,SAAS,CActB;IAED,OAAO,CAAC,MAAM;CAMf"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { isSimCognitoManagedLoginRequired } from "../../error/sim-cognito-managed-login.error.js";
|
|
2
2
|
import { isSimCognitoOAuthError } from "../../error/sim-cognito-oauth.error.js";
|
|
3
3
|
import { SimCognitoConfirmPage } from "./sim-cognito-confirm-page.js";
|
|
4
|
+
import { SimCognitoForgotPasswordPage } from "./sim-cognito-forgot-password-page.js";
|
|
4
5
|
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
5
|
-
import {
|
|
6
|
+
import { simCognitoForgotPasswordPath, simCognitoIsLocalSignIn, simCognitoPagePaths, simCognitoResetPasswordPath, simCognitoSignUpPath, } from "./sim-cognito-page-paths.js";
|
|
7
|
+
import { SimCognitoResetPasswordPage } from "./sim-cognito-reset-password-page.js";
|
|
6
8
|
import { SimCognitoPageRequest } from "./sim-cognito-page-request.js";
|
|
7
9
|
import { SimCognitoSignInPage } from "./sim-cognito-sign-in-page.js";
|
|
8
10
|
import { SimCognitoSignUpPage } from "./sim-cognito-sign-up-page.js";
|
|
@@ -10,31 +12,44 @@ import { SimCognitoSignUpPage } from "./sim-cognito-sign-up-page.js";
|
|
|
10
12
|
* The pages simulated managed login serves.
|
|
11
13
|
*
|
|
12
14
|
* A person reaches the sign-in form at the authorize endpoint, the sign-up
|
|
13
|
-
* form from
|
|
14
|
-
*
|
|
15
|
-
* as hidden inputs, so the sign-in
|
|
16
|
-
* callback URL the application asked
|
|
15
|
+
* form and the forgotten password form from links on it, and the confirmation
|
|
16
|
+
* and new password forms from the step before each. Each form carries the
|
|
17
|
+
* authorize request's own parameters through as hidden inputs, so the sign-in
|
|
18
|
+
* at the end of it reaches the app client's callback URL the application asked
|
|
19
|
+
* for.
|
|
17
20
|
*/
|
|
18
21
|
export class SimCognitoManagedLogin {
|
|
19
22
|
pageRequest = new SimCognitoPageRequest();
|
|
20
23
|
signInPage = new SimCognitoSignInPage();
|
|
21
24
|
signUpPage = new SimCognitoSignUpPage();
|
|
22
25
|
confirmPage = new SimCognitoConfirmPage();
|
|
26
|
+
forgotPasswordPage = new SimCognitoForgotPasswordPage();
|
|
27
|
+
resetPasswordPage = new SimCognitoResetPasswordPage();
|
|
23
28
|
/**
|
|
24
|
-
* Whether a path is one of the
|
|
29
|
+
* Whether a path is one of the pages served beside the OAuth endpoints.
|
|
25
30
|
*/
|
|
26
31
|
static servesPage(pathname) {
|
|
27
|
-
return (pathname
|
|
32
|
+
return simCognitoPagePaths.has(pathname);
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
|
-
* Answer the
|
|
35
|
+
* Answer the page a request reached.
|
|
31
36
|
*/
|
|
32
37
|
async handlePage(request) {
|
|
33
38
|
const form = this.formIn(request);
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
switch (request.url.pathname) {
|
|
40
|
+
case simCognitoSignUpPath: {
|
|
41
|
+
return await this.signUpPage.handle(form);
|
|
42
|
+
}
|
|
43
|
+
case simCognitoForgotPasswordPath: {
|
|
44
|
+
return await this.forgotPasswordPage.handle(form);
|
|
45
|
+
}
|
|
46
|
+
case simCognitoResetPasswordPath: {
|
|
47
|
+
return await this.resetPasswordPage.handle(form);
|
|
48
|
+
}
|
|
49
|
+
default: {
|
|
50
|
+
return await this.confirmPage.handle(form);
|
|
51
|
+
}
|
|
36
52
|
}
|
|
37
|
-
return await this.confirmPage.handle(form);
|
|
38
53
|
}
|
|
39
54
|
/**
|
|
40
55
|
* Answer a refused authorize request on the sign-in form, where the form is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-managed-login.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-managed-login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"sim-cognito-managed-login.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-managed-login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,OAAO,sBAAsB;IAChB,WAAW,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAC1C,UAAU,GAAG,IAAI,oBAAoB,EAAE,CAAC;IACxC,UAAU,GAAG,IAAI,oBAAoB,EAAE,CAAC;IACxC,WAAW,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAC1C,kBAAkB,GAAG,IAAI,4BAA4B,EAAE,CAAC;IACxD,iBAAiB,GAAG,IAAI,2BAA2B,EAAE,CAAC;IAEvE;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,QAAgB;QAChC,OAAO,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;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MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -20,6 +20,24 @@ export declare const simCognitoSignUpPath = "/signup";
|
|
|
20
20
|
* it with the code, and a test can reach it without replaying the sign-up.
|
|
21
21
|
*/
|
|
22
22
|
export declare const simCognitoConfirmPath = "/confirm";
|
|
23
|
+
/**
|
|
24
|
+
* The path the form asking who has forgotten a password is served at.
|
|
25
|
+
*/
|
|
26
|
+
export declare const simCognitoForgotPasswordPath = "/forgotPassword";
|
|
27
|
+
/**
|
|
28
|
+
* The path the form taking the reset code and the new password is served at.
|
|
29
|
+
*
|
|
30
|
+
* Real managed login serves both halves of a reset at these two paths, and
|
|
31
|
+
* that is where an application's own links to them point.
|
|
32
|
+
*/
|
|
33
|
+
export declare const simCognitoResetPasswordPath = "/confirmForgotPassword";
|
|
34
|
+
/**
|
|
35
|
+
* The pages served beside the OAuth endpoints.
|
|
36
|
+
*
|
|
37
|
+
* The sign-in form is not among them. It is what the authorize endpoint
|
|
38
|
+
* answers with, so it has no path of its own.
|
|
39
|
+
*/
|
|
40
|
+
export declare const simCognitoPagePaths: ReadonlySet<string>;
|
|
23
41
|
/**
|
|
24
42
|
* Whether a request signs in one of the pool's own users.
|
|
25
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-page-paths.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-page-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-page-paths.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-page-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAKlD,CAAC;AAmBH;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAIT;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,wBAAwB,GAC/B,wBAAwB,CAI1B"}
|
|
@@ -19,6 +19,29 @@ export const simCognitoSignUpPath = "/signup";
|
|
|
19
19
|
* it with the code, and a test can reach it without replaying the sign-up.
|
|
20
20
|
*/
|
|
21
21
|
export const simCognitoConfirmPath = "/confirm";
|
|
22
|
+
/**
|
|
23
|
+
* The path the form asking who has forgotten a password is served at.
|
|
24
|
+
*/
|
|
25
|
+
export const simCognitoForgotPasswordPath = "/forgotPassword";
|
|
26
|
+
/**
|
|
27
|
+
* The path the form taking the reset code and the new password is served at.
|
|
28
|
+
*
|
|
29
|
+
* Real managed login serves both halves of a reset at these two paths, and
|
|
30
|
+
* that is where an application's own links to them point.
|
|
31
|
+
*/
|
|
32
|
+
export const simCognitoResetPasswordPath = "/confirmForgotPassword";
|
|
33
|
+
/**
|
|
34
|
+
* The pages served beside the OAuth endpoints.
|
|
35
|
+
*
|
|
36
|
+
* The sign-in form is not among them. It is what the authorize endpoint
|
|
37
|
+
* answers with, so it has no path of its own.
|
|
38
|
+
*/
|
|
39
|
+
export const simCognitoPagePaths = new Set([
|
|
40
|
+
simCognitoSignUpPath,
|
|
41
|
+
simCognitoConfirmPath,
|
|
42
|
+
simCognitoForgotPasswordPath,
|
|
43
|
+
simCognitoResetPasswordPath,
|
|
44
|
+
]);
|
|
22
45
|
/**
|
|
23
46
|
* The authorize parameters every page carries on to the next.
|
|
24
47
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-page-paths.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-page-paths.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,eAAe;IACf,WAAW;IACX,cAAc;IACd,OAAO;IACP,OAAO;IACP,gBAAgB;IAChB,uBAAuB;CACxB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAgC;IAEhC,MAAM,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAEtE,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,CAAC;AACpD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAgC;IAEhC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAClE,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"sim-cognito-page-paths.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-page-paths.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,wBAAwB,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CAAC;IAC9D,oBAAoB;IACpB,qBAAqB;IACrB,4BAA4B;IAC5B,2BAA2B;CAC5B,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,eAAe;IACf,WAAW;IACX,cAAc;IACd,OAAO;IACP,OAAO;IACP,gBAAgB;IAChB,uBAAuB;CACxB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAgC;IAEhC,MAAM,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAEtE,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,CAAC;AACpD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAgC;IAEhC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
|
|
2
|
+
import type { SimCognitoPageMarkup, SimCognitoPageParameters } from "./sim-cognito-page-markup.js";
|
|
3
|
+
/**
|
|
4
|
+
* One link per identity provider this app client offers, each starting the
|
|
5
|
+
* federated sign-in the authorize endpoint already answers.
|
|
6
|
+
*
|
|
7
|
+
* A provider the client left out of its `SupportedIdentityProviders` is left
|
|
8
|
+
* off the page, because the authorize request the link would make is one that
|
|
9
|
+
* endpoint refuses.
|
|
10
|
+
*/
|
|
11
|
+
export declare function simCognitoProviderLinks(markup: SimCognitoPageMarkup, pool: SimCognitoUserPool, parameters: SimCognitoPageParameters): string;
|
|
12
|
+
//# sourceMappingURL=sim-cognito-provider-links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-provider-links.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-provider-links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,IAAI,EAAE,kBAAkB,EACxB,UAAU,EAAE,wBAAwB,GACnC,MAAM,CAiBR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { simCognitoAuthorizePath } from "./sim-cognito-page-paths.js";
|
|
2
|
+
/**
|
|
3
|
+
* One link per identity provider this app client offers, each starting the
|
|
4
|
+
* federated sign-in the authorize endpoint already answers.
|
|
5
|
+
*
|
|
6
|
+
* A provider the client left out of its `SupportedIdentityProviders` is left
|
|
7
|
+
* off the page, because the authorize request the link would make is one that
|
|
8
|
+
* endpoint refuses.
|
|
9
|
+
*/
|
|
10
|
+
export function simCognitoProviderLinks(markup, pool, parameters) {
|
|
11
|
+
const clientId = parameters["client_id"];
|
|
12
|
+
const client = clientId === undefined ? undefined : pool.findClient(clientId);
|
|
13
|
+
return pool.auth.identityProviders.all
|
|
14
|
+
.filter((provider) => client?.oauth.allowsIdentityProvider(provider.name) ?? false)
|
|
15
|
+
.map((provider) => markup.link(simCognitoAuthorizePath, { ...parameters, identity_provider: provider.name }, `Sign in with ${provider.name}`))
|
|
16
|
+
.join("");
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sim-cognito-provider-links.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-provider-links.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-provider-links.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAA4B,EAC5B,IAAwB,EACxB,UAAoC;IAEpC,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE9E,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG;SACnC,MAAM,CACL,CAAC,QAAQ,EAAE,EAAE,CACX,MAAM,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,CAC/D;SACA,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAChB,MAAM,CAAC,IAAI,CACT,uBAAuB,EACvB,EAAE,GAAG,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC,IAAI,EAAE,EACnD,gBAAgB,QAAQ,CAAC,IAAI,EAAE,CAChC,CACF;SACA,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
2
|
+
/**
|
|
3
|
+
* The form that finishes a password reset, reached from the one that started
|
|
4
|
+
* it.
|
|
5
|
+
*
|
|
6
|
+
* It takes the code the pool issued and the password the person has chosen,
|
|
7
|
+
* and posts both to `ConfirmForgotPassword`. A wrong code and a password the
|
|
8
|
+
* pool's policy turns down are both shown on the form, which is where the
|
|
9
|
+
* person can do something about them.
|
|
10
|
+
*
|
|
11
|
+
* Nothing here delivers a code to anybody. The pool records the message it
|
|
12
|
+
* would have sent, and `SimCognitoUserPool.confirmationCode` is where a test
|
|
13
|
+
* reads it from, which is where a person would have read it out of an inbox.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SimCognitoResetPasswordPage {
|
|
16
|
+
private readonly markup;
|
|
17
|
+
/**
|
|
18
|
+
* The page, or the reset its form has just finished.
|
|
19
|
+
*/
|
|
20
|
+
handle(form: SimCognitoPageForm): Promise<Response>;
|
|
21
|
+
/**
|
|
22
|
+
* The page a browser is answered with, with a message where a reset has
|
|
23
|
+
* already been refused once.
|
|
24
|
+
*/
|
|
25
|
+
private render;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=sim-cognito-reset-password-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-reset-password-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-reset-password-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAOhE;;;;;;;;;;;;GAYG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAsBxD;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;CAwBf"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
2
|
+
import { SimCognitoPageMarkup } from "./sim-cognito-page-markup.js";
|
|
3
|
+
import { simCognitoAuthorizePath, simCognitoResetPasswordPath, } from "./sim-cognito-page-paths.js";
|
|
4
|
+
/**
|
|
5
|
+
* The form that finishes a password reset, reached from the one that started
|
|
6
|
+
* it.
|
|
7
|
+
*
|
|
8
|
+
* It takes the code the pool issued and the password the person has chosen,
|
|
9
|
+
* and posts both to `ConfirmForgotPassword`. A wrong code and a password the
|
|
10
|
+
* pool's policy turns down are both shown on the form, which is where the
|
|
11
|
+
* person can do something about them.
|
|
12
|
+
*
|
|
13
|
+
* Nothing here delivers a code to anybody. The pool records the message it
|
|
14
|
+
* would have sent, and `SimCognitoUserPool.confirmationCode` is where a test
|
|
15
|
+
* reads it from, which is where a person would have read it out of an inbox.
|
|
16
|
+
*/
|
|
17
|
+
export class SimCognitoResetPasswordPage {
|
|
18
|
+
markup = new SimCognitoPageMarkup();
|
|
19
|
+
/**
|
|
20
|
+
* The page, or the reset its form has just finished.
|
|
21
|
+
*/
|
|
22
|
+
async handle(form) {
|
|
23
|
+
if (!form.isPosted) {
|
|
24
|
+
return this.render(form);
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
await form.cognito.confirmForgotPassword({
|
|
28
|
+
input: {
|
|
29
|
+
ClientId: form.clientId,
|
|
30
|
+
Username: form.username,
|
|
31
|
+
ConfirmationCode: form.field("code"),
|
|
32
|
+
Password: form.field("password"),
|
|
33
|
+
...form.secretHash(),
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
return this.render(form, SimCognitoPageForm.messageIn(error));
|
|
39
|
+
}
|
|
40
|
+
// The user signs in with its new password at the endpoint the browser
|
|
41
|
+
// arrived on, which is where the grant it started carries on from.
|
|
42
|
+
return this.markup.redirect(simCognitoAuthorizePath, form.parameters);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The page a browser is answered with, with a message where a reset has
|
|
46
|
+
* already been refused once.
|
|
47
|
+
*/
|
|
48
|
+
render(form, message) {
|
|
49
|
+
const { parameters, username } = form;
|
|
50
|
+
// The page that started the reset names the user, and a browser that came
|
|
51
|
+
// here from a link instead has to say who it is.
|
|
52
|
+
const user = username === ""
|
|
53
|
+
? this.markup.field("username", "Username")
|
|
54
|
+
: this.markup.hidden({ username });
|
|
55
|
+
const body = (message === undefined ? "" : this.markup.message(message)) +
|
|
56
|
+
this.markup.form(simCognitoResetPasswordPath, this.markup.hidden(parameters) +
|
|
57
|
+
user +
|
|
58
|
+
this.markup.field("code", "Reset code") +
|
|
59
|
+
this.markup.field("password", "New password", "password") +
|
|
60
|
+
this.markup.submit("reset", "Set the new password")) +
|
|
61
|
+
this.markup.link(simCognitoAuthorizePath, parameters, "Back to sign in");
|
|
62
|
+
return this.markup.page("Choose a new password", body);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=sim-cognito-reset-password-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-reset-password-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-reset-password-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,2BAA2B;IACrB,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAErD;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,IAAwB;QACnC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO,IAAI,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AC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5B,IAAI;gBACJ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC;gBACvC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,cAAc,EAAE,UAAU,CAAC;gBACzD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,CACtD;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC;QAE3E,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -6,7 +6,8 @@ import { type SimCognitoPageParameters } from "./sim-cognito-page-markup.js";
|
|
|
6
6
|
* The form posts back to the authorize endpoint, carrying the parameters the
|
|
7
7
|
* browser arrived on as hidden inputs and the two fields the person filled in.
|
|
8
8
|
* The pool's identity providers are links to the same endpoint with
|
|
9
|
-
* `identity_provider` set, so both ways in are reachable from this one page
|
|
9
|
+
* `identity_provider` set, so both ways in are reachable from this one page,
|
|
10
|
+
* and the other pages of the journey are links beside them.
|
|
10
11
|
*/
|
|
11
12
|
export declare class SimCognitoSignInPage {
|
|
12
13
|
private readonly markup;
|
|
@@ -15,14 +16,5 @@ export declare class SimCognitoSignInPage {
|
|
|
15
16
|
* already been refused once.
|
|
16
17
|
*/
|
|
17
18
|
render(pool: SimCognitoUserPool, parameters: SimCognitoPageParameters, message?: string): Response;
|
|
18
|
-
/**
|
|
19
|
-
* One link per identity provider this app client offers, each starting the
|
|
20
|
-
* federated sign-in the same endpoint already answers.
|
|
21
|
-
*
|
|
22
|
-
* A provider the client left out of its `SupportedIdentityProviders` is left
|
|
23
|
-
* off the page, because the authorize request the link would make is one
|
|
24
|
-
* that endpoint refuses.
|
|
25
|
-
*/
|
|
26
|
-
private providerLinks;
|
|
27
19
|
}
|
|
28
20
|
//# sourceMappingURL=sim-cognito-sign-in-page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sign-in-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-in-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-in-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAC;AAkBtC;;;;;;;;GAQG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,kBAAkB,EACxB,UAAU,EAAE,wBAAwB,EACpC,OAAO,CAAC,EAAE,MAAM,GACf,QAAQ,CAgBV;CACF"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { SimCognitoPageMarkup, } from "./sim-cognito-page-markup.js";
|
|
2
|
-
import { simCognitoAuthorizePath, simCognitoConfirmPath, simCognitoSignUpPath, } from "./sim-cognito-page-paths.js";
|
|
2
|
+
import { simCognitoAuthorizePath, simCognitoConfirmPath, simCognitoForgotPasswordPath, simCognitoSignUpPath, } from "./sim-cognito-page-paths.js";
|
|
3
|
+
import { simCognitoProviderLinks } from "./sim-cognito-provider-links.js";
|
|
4
|
+
/**
|
|
5
|
+
* The other pages the sign-in form links to, in the order they are offered.
|
|
6
|
+
*/
|
|
7
|
+
const linkedPages = [
|
|
8
|
+
[simCognitoSignUpPath, "Sign up"],
|
|
9
|
+
[simCognitoConfirmPath, "Confirm a sign-up"],
|
|
10
|
+
[simCognitoForgotPasswordPath, "Forgotten your password?"],
|
|
11
|
+
];
|
|
3
12
|
/**
|
|
4
13
|
* The sign-in form managed login answers an authorize request with.
|
|
5
14
|
*
|
|
6
15
|
* The form posts back to the authorize endpoint, carrying the parameters the
|
|
7
16
|
* browser arrived on as hidden inputs and the two fields the person filled in.
|
|
8
17
|
* The pool's identity providers are links to the same endpoint with
|
|
9
|
-
* `identity_provider` set, so both ways in are reachable from this one page
|
|
18
|
+
* `identity_provider` set, so both ways in are reachable from this one page,
|
|
19
|
+
* and the other pages of the journey are links beside them.
|
|
10
20
|
*/
|
|
11
21
|
export class SimCognitoSignInPage {
|
|
12
22
|
markup = new SimCognitoPageMarkup();
|
|
@@ -20,26 +30,11 @@ export class SimCognitoSignInPage {
|
|
|
20
30
|
this.markup.field("username", "Username") +
|
|
21
31
|
this.markup.field("password", "Password", "password") +
|
|
22
32
|
this.markup.submit("signIn", "Sign in")) +
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
simCognitoProviderLinks(this.markup, pool, parameters) +
|
|
34
|
+
linkedPages
|
|
35
|
+
.map(([path, text]) => this.markup.link(path, parameters, text))
|
|
36
|
+
.join("");
|
|
26
37
|
return this.markup.page("Sign in", body);
|
|
27
38
|
}
|
|
28
|
-
/**
|
|
29
|
-
* One link per identity provider this app client offers, each starting the
|
|
30
|
-
* federated sign-in the same endpoint already answers.
|
|
31
|
-
*
|
|
32
|
-
* A provider the client left out of its `SupportedIdentityProviders` is left
|
|
33
|
-
* off the page, because the authorize request the link would make is one
|
|
34
|
-
* that endpoint refuses.
|
|
35
|
-
*/
|
|
36
|
-
providerLinks(pool, parameters) {
|
|
37
|
-
const clientId = parameters["client_id"];
|
|
38
|
-
const client = clientId === undefined ? undefined : pool.findClient(clientId);
|
|
39
|
-
return pool.auth.identityProviders.all
|
|
40
|
-
.filter((provider) => client?.oauth.allowsIdentityProvider(provider.name) ?? false)
|
|
41
|
-
.map((provider) => this.markup.link(simCognitoAuthorizePath, { ...parameters, identity_provider: provider.name }, `Sign in with ${provider.name}`))
|
|
42
|
-
.join("");
|
|
43
|
-
}
|
|
44
39
|
}
|
|
45
40
|
//# sourceMappingURL=sim-cognito-sign-in-page.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-sign-in-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-in-page.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-in-page.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,GAA2C;IAC1D,CAAC,oBAAoB,EAAE,SAAS,CAAC;IACjC,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;IAC5C,CAAC,4BAA4B,EAAE,0BAA0B,CAAC;CAC3D,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAErD;;;OAGG;IACH,MAAM,CACJ,IAAwB,EACxB,UAAoC,EACpC,OAAgB;QAEhB,MAAM,IAAI,GACR,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3D,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,uBAAuB,EACvB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;gBACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;gBACrD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAC1C;YACD,uBAAuB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC;YACtD,WAAW;iBACR,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;iBAC/D,IAAI,CAAC,EAAE,CAAC,CAAC;QAEd,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -40,6 +40,22 @@ export declare abstract class SimCognitoUserDirectory extends SimCognitoUserFact
|
|
|
40
40
|
* Handle an AdminConfirmSignUp Command from the SDK.
|
|
41
41
|
*/
|
|
42
42
|
adminConfirmSignUp(command: simCognitoCommands.SimAdminConfirmSignUpCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimAdminConfirmSignUpCommandOutput>;
|
|
43
|
+
/**
|
|
44
|
+
* Handle a ForgotPassword Command from the SDK.
|
|
45
|
+
*
|
|
46
|
+
* No caller is read, because real Cognito authorizes this operation with no
|
|
47
|
+
* IAM policy at all: it is what an application calls for someone who cannot
|
|
48
|
+
* sign in and holds no AWS credentials.
|
|
49
|
+
*/
|
|
50
|
+
forgotPassword(command: simCognitoCommands.SimForgotPasswordCommand): Promise<simCognitoCommands.SimForgotPasswordCommandOutput>;
|
|
51
|
+
/**
|
|
52
|
+
* Handle a ConfirmForgotPassword Command from the SDK.
|
|
53
|
+
*/
|
|
54
|
+
confirmForgotPassword(command: simCognitoCommands.SimConfirmForgotPasswordCommand): Promise<simCognitoCommands.SimConfirmForgotPasswordCommandOutput>;
|
|
55
|
+
/**
|
|
56
|
+
* Handle an AdminResetUserPassword Command from the SDK.
|
|
57
|
+
*/
|
|
58
|
+
adminResetUserPassword(command: simCognitoCommands.SimAdminResetUserPasswordCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimAdminResetUserPasswordCommandOutput>;
|
|
43
59
|
/**
|
|
44
60
|
* Handle an AdminGetUser Command from the SDK.
|
|
45
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-user-directory.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,KAAK,wCAAwC,EAC9C,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,wCAAwC,EAAE,MAAM,iCAAiC,CAAC;AAEhG,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,8BAAsB,uBAAwB,SAAQ,qBAAqB;IACzE,SAAS,aAAa,UAAU,EAAE,iCAAiC,EAElE;IAED;;OAEG;IACG,eAAe,CACnB,OAAO,EAAE,kBAAkB,CAAC,yBAAyB,EACrD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC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kBAAkB,CAAC,mCAAmC,CAAC,CAGjE;IAED;;OAEG;IACG,wBAAwB,CAC5B,OAAO,EAAE,kBAAkB,CAAC,kCAAkC,EAC9D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,CAGtE;IAED;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,kBAAkB,CAAC,gCAAgC,EAC5D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,CAGpE;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,kBAAkB,CAAC,0BAA0B,EACtD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAG9D;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-cognito-user-directory.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,KAAK,wCAAwC,EAC9C,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,wCAAwC,EAAE,MAAM,iCAAiC,CAAC;AAEhG,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,8BAAsB,uBAAwB,SAAQ,qBAAqB;IACzE,SAAS,aAAa,UAAU,EAAE,iCAAiC,EAElE;IAED;;OAEG;IACG,eAAe,CACnB,OAAO,EAAE,kBAAkB,CAAC,yBAAyB,EACrD,OAAO,CAAC,EAAE,wCAAw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A2B,CAAC,CAGzD;IAED;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,EACjD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,CAGzD;IAED;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,kBAAkB,CAAC,oBAAoB,EAChD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,CAGxD;IAED;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,kBAAkB,CAAC,6BAA6B,EACzD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,mCAAmC,CAAC,CAGjE;IAED;;OAEG;IACG,wBAAwB,CAC5B,OAAO,EAAE,kBAAkB,CAAC,kCAAkC,EAC9D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,CAGtE;IAED;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,kBAAkB,CAAC,gCAAgC,EAC5D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,CAGpE;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,kBAAkB,CAAC,0BAA0B,EACtD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAG9D;CACF"}
|
|
@@ -49,6 +49,31 @@ export class SimCognitoUserDirectory extends SimCognitoUserFactors {
|
|
|
49
49
|
await this.background.sequence();
|
|
50
50
|
return this.commands.signUp.adminConfirmSignUp(command, options);
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Handle a ForgotPassword Command from the SDK.
|
|
54
|
+
*
|
|
55
|
+
* No caller is read, because real Cognito authorizes this operation with no
|
|
56
|
+
* IAM policy at all: it is what an application calls for someone who cannot
|
|
57
|
+
* sign in and holds no AWS credentials.
|
|
58
|
+
*/
|
|
59
|
+
async forgotPassword(command) {
|
|
60
|
+
await this.background.sequence();
|
|
61
|
+
return this.commands.passwordReset.forgotPassword(command);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Handle a ConfirmForgotPassword Command from the SDK.
|
|
65
|
+
*/
|
|
66
|
+
async confirmForgotPassword(command) {
|
|
67
|
+
await this.background.sequence();
|
|
68
|
+
return this.commands.passwordReset.confirmForgotPassword(command);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Handle an AdminResetUserPassword Command from the SDK.
|
|
72
|
+
*/
|
|
73
|
+
async adminResetUserPassword(command, options) {
|
|
74
|
+
await this.background.sequence();
|
|
75
|
+
return this.commands.passwordReset.adminResetUserPassword(command, options);
|
|
76
|
+
}
|
|
52
77
|
/**
|
|
53
78
|
* Handle an AdminGetUser Command from the SDK.
|
|
54
79
|
*/
|