@kensio/yulin 1.16.0 → 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/README.md +44 -46
- 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-account-region-service-builder.js +2 -2
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.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/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +3 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts +5 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js +38 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +5 -2
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.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/hosted-auth.command.d.ts +10 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +14 -13
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +14 -18
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +15 -6
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +26 -19
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +5 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts +41 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +72 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +32 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +36 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -0
- 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-managed-login.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js +32 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.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-confirm-page.d.ts +29 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js +90 -0
- package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js.map +1 -0
- 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 +41 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +77 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts +47 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.js +76 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-form.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts +69 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js +111 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +57 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +82 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts +22 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.js +30 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-request.js.map +1 -0
- 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 +20 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +40 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts +35 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js +85 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +20 -23
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +40 -19
- package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts +14 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts.map +1 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.js +2 -0
- package/dist/service/cognito/serve/sim-cognito-domain-request.js.map +1 -0
- 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/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts +8 -0
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js +14 -6
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.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/serve/auth/sim-lambda-url-payload-hash.d.ts +28 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts.map +1 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js +56 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js.map +1 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +16 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +24 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts +6 -0
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.js +11 -0
- package/dist/service/lambda/serve/sim-lambda-controller.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/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts +4 -3
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js +4 -3
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js.map +1 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts +2 -2
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js +2 -2
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts +3 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js +4 -2
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts +39 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js +42 -0
- package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts +3 -3
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-input.js +8 -8
- package/dist/service/sns/command/publish/sim-sns-publish-input.js.map +1 -1
- package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts +38 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.js +53 -0
- package/dist/service/sns/command/publish/sim-sns-publish-sms.js.map +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.d.ts +12 -4
- package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.js +39 -4
- package/dist/service/sns/command/sim-sns-commands.js.map +1 -1
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts +41 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts.map +1 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js +56 -0
- package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js.map +1 -0
- package/dist/service/sns/command/sms/sms.command.d.ts +50 -0
- package/dist/service/sns/command/sms/sms.command.d.ts.map +1 -0
- package/dist/service/sns/command/sms/sms.command.js +2 -0
- package/dist/service/sns/command/sms/sms.command.js.map +1 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts +5 -6
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js +8 -12
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts +6 -13
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js +13 -2
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts +10 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js.map +1 -1
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts +34 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts.map +1 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js +46 -0
- package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js.map +1 -0
- package/dist/service/sns/index.d.ts +5 -1
- package/dist/service/sns/index.d.ts.map +1 -1
- package/dist/service/sns/index.js +4 -1
- package/dist/service/sns/index.js.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js +9 -1
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts +8 -0
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts.map +1 -1
- package/dist/service/sns/message/sim-sns-message-attributes.js +10 -0
- package/dist/service/sns/message/sim-sns-message-attributes.js.map +1 -1
- package/dist/service/sns/message/sim-sns-sms-attributes.d.ts +25 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.js +46 -0
- package/dist/service/sns/message/sim-sns-sms-attributes.js.map +1 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts.map +1 -1
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js +12 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js.map +1 -1
- package/dist/service/sns/sim-sns-sms.d.ts +63 -0
- package/dist/service/sns/sim-sns-sms.d.ts.map +1 -0
- package/dist/service/sns/sim-sns-sms.js +76 -0
- package/dist/service/sns/sim-sns-sms.js.map +1 -0
- package/dist/service/sns/sim-sns.d.ts +7 -15
- package/dist/service/sns/sim-sns.d.ts.map +1 -1
- package/dist/service/sns/sim-sns.js +23 -30
- package/dist/service/sns/sim-sns.js.map +1 -1
- package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts +40 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.js +47 -0
- package/dist/service/sns/sms/sim-sns-opt-out-list.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-phone-number.d.ts +21 -0
- package/dist/service/sns/sms/sim-sns-phone-number.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-phone-number.js +41 -0
- package/dist/service/sns/sms/sim-sns-phone-number.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts +69 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.js +71 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-message.js.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts +25 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts.map +1 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js +28 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts +9 -7
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js +7 -2
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts +19 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js +26 -5
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.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,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,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;QAED,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC;gBACvC,KAAK,EAAE;oBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;oBACpC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;oBAChC,GAAG,IAAI,CAAC,UAAU,EAAE;iBACrB;aACF,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAChE,CAAC;QAED,sEAAsE;QACtE,mEAAmE;QACnE,OAAO,IAAI,CAAC,MAAM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up.js";
|
|
3
|
+
/**
|
|
4
|
+
* The sign-in form managed login answers an authorize request with.
|
|
5
|
+
*
|
|
6
|
+
* The form posts back to the authorize endpoint, carrying the parameters the
|
|
7
|
+
* browser arrived on as hidden inputs and the two fields the person filled in.
|
|
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,
|
|
10
|
+
* and the other pages of the journey are links beside them.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SimCognitoSignInPage {
|
|
13
|
+
private readonly markup;
|
|
14
|
+
/**
|
|
15
|
+
* The page a browser is answered with, with a message where a sign-in has
|
|
16
|
+
* already been refused once.
|
|
17
|
+
*/
|
|
18
|
+
render(pool: SimCognitoUserPool, parameters: SimCognitoPageParameters, message?: string): Response;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=sim-cognito-sign-in-page.d.ts.map
|
|
@@ -0,0 +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;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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SimCognitoPageMarkup, } from "./sim-cognito-page-markup.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
|
+
];
|
|
12
|
+
/**
|
|
13
|
+
* The sign-in form managed login answers an authorize request with.
|
|
14
|
+
*
|
|
15
|
+
* The form posts back to the authorize endpoint, carrying the parameters the
|
|
16
|
+
* browser arrived on as hidden inputs and the two fields the person filled in.
|
|
17
|
+
* The pool's identity providers are links to the same endpoint with
|
|
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.
|
|
20
|
+
*/
|
|
21
|
+
export class SimCognitoSignInPage {
|
|
22
|
+
markup = new SimCognitoPageMarkup();
|
|
23
|
+
/**
|
|
24
|
+
* The page a browser is answered with, with a message where a sign-in has
|
|
25
|
+
* already been refused once.
|
|
26
|
+
*/
|
|
27
|
+
render(pool, parameters, message) {
|
|
28
|
+
const body = (message === undefined ? "" : this.markup.message(message)) +
|
|
29
|
+
this.markup.form(simCognitoAuthorizePath, this.markup.hidden(parameters) +
|
|
30
|
+
this.markup.field("username", "Username") +
|
|
31
|
+
this.markup.field("password", "Password", "password") +
|
|
32
|
+
this.markup.submit("signIn", "Sign in")) +
|
|
33
|
+
simCognitoProviderLinks(this.markup, pool, parameters) +
|
|
34
|
+
linkedPages
|
|
35
|
+
.map(([path, text]) => this.markup.link(path, parameters, text))
|
|
36
|
+
.join("");
|
|
37
|
+
return this.markup.page("Sign in", body);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=sim-cognito-sign-in-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-in-page.js","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AAC,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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
|
|
2
|
+
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
3
|
+
/**
|
|
4
|
+
* The sign-up form, reached from a link on the sign-in page.
|
|
5
|
+
*
|
|
6
|
+
* The form asks for a username, a password and the attributes the pool needs
|
|
7
|
+
* of a new user. Those are the ones its `Schema` made required, and the ones
|
|
8
|
+
* its `AutoVerifiedAttributes` names, because the second is where the
|
|
9
|
+
* confirmation code would have been delivered.
|
|
10
|
+
*
|
|
11
|
+
* Posting it is `SignUp`, called as an application calls it. A refusal is
|
|
12
|
+
* shown on the form, which is what managed login does with a password the
|
|
13
|
+
* pool's policy turns down.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SimCognitoSignUpPage {
|
|
16
|
+
private readonly markup;
|
|
17
|
+
/**
|
|
18
|
+
* The attributes this pool's sign-up form asks for.
|
|
19
|
+
*/
|
|
20
|
+
static attributeNames(pool: SimCognitoUserPool): readonly string[];
|
|
21
|
+
/**
|
|
22
|
+
* The attributes the form asked for, as `SignUp` takes them.
|
|
23
|
+
*/
|
|
24
|
+
private static attributesIn;
|
|
25
|
+
/**
|
|
26
|
+
* The page, or the sign-up its form has just posted.
|
|
27
|
+
*/
|
|
28
|
+
handle(form: SimCognitoPageForm): Promise<Response>;
|
|
29
|
+
/**
|
|
30
|
+
* The page a browser is answered with, with a message where a sign-up has
|
|
31
|
+
* already been refused once.
|
|
32
|
+
*/
|
|
33
|
+
private render;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=sim-cognito-sign-up-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-up-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-up-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQhE;;;;;;;;;;;GAWG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,MAAM,EAAE,CAYjE;IAED;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAQ3B;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAuBxD;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;CAoBf"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
|
|
2
|
+
import { SimCognitoPageMarkup } from "./sim-cognito-page-markup.js";
|
|
3
|
+
import { simCognitoAuthorizePath, simCognitoConfirmPath, simCognitoSignUpPath, } from "./sim-cognito-page-paths.js";
|
|
4
|
+
/**
|
|
5
|
+
* The sign-up form, reached from a link on the sign-in page.
|
|
6
|
+
*
|
|
7
|
+
* The form asks for a username, a password and the attributes the pool needs
|
|
8
|
+
* of a new user. Those are the ones its `Schema` made required, and the ones
|
|
9
|
+
* its `AutoVerifiedAttributes` names, because the second is where the
|
|
10
|
+
* confirmation code would have been delivered.
|
|
11
|
+
*
|
|
12
|
+
* Posting it is `SignUp`, called as an application calls it. A refusal is
|
|
13
|
+
* shown on the form, which is what managed login does with a password the
|
|
14
|
+
* pool's policy turns down.
|
|
15
|
+
*/
|
|
16
|
+
export class SimCognitoSignUpPage {
|
|
17
|
+
markup = new SimCognitoPageMarkup();
|
|
18
|
+
/**
|
|
19
|
+
* The attributes this pool's sign-up form asks for.
|
|
20
|
+
*/
|
|
21
|
+
static attributeNames(pool) {
|
|
22
|
+
const { schema, autoVerifiedAttributes, usernameAttributes } = pool.settings;
|
|
23
|
+
const asked = new Set([
|
|
24
|
+
...schema.requiredNames,
|
|
25
|
+
...autoVerifiedAttributes.names,
|
|
26
|
+
]);
|
|
27
|
+
// A pool signing users in by an address takes that address as the
|
|
28
|
+
// username, so asking for it again would be asking the same question
|
|
29
|
+
// twice.
|
|
30
|
+
return [...asked.difference(new Set(usernameAttributes.names))];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The attributes the form asked for, as `SignUp` takes them.
|
|
34
|
+
*/
|
|
35
|
+
static attributesIn(form) {
|
|
36
|
+
return this.attributeNames(form.pool)
|
|
37
|
+
.map((name) => ({ Name: name, Value: form.field(name) }))
|
|
38
|
+
.filter((attribute) => (attribute.Value ?? "") !== "");
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The page, or the sign-up its form has just posted.
|
|
42
|
+
*/
|
|
43
|
+
async handle(form) {
|
|
44
|
+
if (!form.isPosted) {
|
|
45
|
+
return this.render(form);
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
await form.cognito.signUp({
|
|
49
|
+
input: {
|
|
50
|
+
ClientId: form.clientId,
|
|
51
|
+
Username: form.username,
|
|
52
|
+
Password: form.field("password"),
|
|
53
|
+
UserAttributes: SimCognitoSignUpPage.attributesIn(form),
|
|
54
|
+
...form.secretHash(),
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
return this.render(form, SimCognitoPageForm.messageIn(error));
|
|
60
|
+
}
|
|
61
|
+
return this.markup.redirect(simCognitoConfirmPath, {
|
|
62
|
+
...form.parameters,
|
|
63
|
+
username: form.username,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The page a browser is answered with, with a message where a sign-up has
|
|
68
|
+
* already been refused once.
|
|
69
|
+
*/
|
|
70
|
+
render(form, message) {
|
|
71
|
+
const { parameters } = form;
|
|
72
|
+
const attributes = SimCognitoSignUpPage.attributeNames(form.pool)
|
|
73
|
+
.map((name) => this.markup.field(name, name))
|
|
74
|
+
.join("");
|
|
75
|
+
const body = (message === undefined ? "" : this.markup.message(message)) +
|
|
76
|
+
this.markup.form(simCognitoSignUpPath, this.markup.hidden(parameters) +
|
|
77
|
+
this.markup.field("username", "Username") +
|
|
78
|
+
this.markup.field("password", "Password", "password") +
|
|
79
|
+
attributes +
|
|
80
|
+
this.markup.submit("signUp", "Sign up")) +
|
|
81
|
+
this.markup.link(simCognitoAuthorizePath, parameters, "Back to sign in");
|
|
82
|
+
return this.markup.page("Sign up", body);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=sim-cognito-sign-up-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-sign-up-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-up-page.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAErD;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,IAAwB;QAC5C,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,GAC1D,IAAI,CAAC,QAAQ,CAAC;QAChB,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC;YACpB,GAAG,MAAM,CAAC,aA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
|
-
|
|
3
|
-
import type { SimCognitoUserPool } from "../user-pool/sim-cognito-user-pool.js";
|
|
1
|
+
import type { SimCognitoDomainRequest } from "./sim-cognito-domain-request.js";
|
|
2
|
+
export type { SimCognitoDomainRequest } from "./sim-cognito-domain-request.js";
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export interface SimCognitoDomainRequest {
|
|
8
|
-
readonly pool: SimCognitoUserPool;
|
|
9
|
-
/** The simulated Cognito scope the pool belongs to. */
|
|
10
|
-
readonly cognito: SimCognitoIdentityProvider;
|
|
11
|
-
readonly serviceRequest: SimAwsServiceRequest;
|
|
12
|
-
readonly url: URL;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The three endpoints a pool's hosted domain serves.
|
|
4
|
+
* The endpoints and pages a pool's hosted domain serves.
|
|
16
5
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* an application
|
|
6
|
+
* The token and logout endpoints take one HTTP method each, as real Cognito's
|
|
7
|
+
* do. The authorize endpoint takes the post of the sign-in form it serves as
|
|
8
|
+
* well as the get an application sends the browser on, and so do the two pages
|
|
9
|
+
* reached from that form.
|
|
20
10
|
*/
|
|
21
11
|
export declare class SimCognitoDomainEndpoints {
|
|
22
12
|
private readonly response;
|
|
23
13
|
private readonly tokenRequest;
|
|
14
|
+
private readonly pageRequest;
|
|
15
|
+
private readonly pages;
|
|
24
16
|
/**
|
|
25
17
|
* Answer a request that reached the domain's hostname.
|
|
26
18
|
*/
|
|
27
19
|
handleRequest(request: SimCognitoDomainRequest): Promise<Response>;
|
|
28
20
|
/**
|
|
29
|
-
* Sign a user in
|
|
30
|
-
* the
|
|
21
|
+
* Sign a user in and send the browser back to the application with a code,
|
|
22
|
+
* or serve the form that asks who is signing in.
|
|
23
|
+
*
|
|
24
|
+
* A get carrying credentials and a post of the sign-in form are the same
|
|
25
|
+
* request to the simulation. Both name the user and its password, and the
|
|
26
|
+
* only difference is where those two were read from.
|
|
31
27
|
*/
|
|
32
28
|
private authorize;
|
|
29
|
+
/**
|
|
30
|
+
* Answer a refused sign-in, on the form or at the application.
|
|
31
|
+
*/
|
|
32
|
+
private refused;
|
|
33
33
|
/**
|
|
34
34
|
* Exchange an authorization code or a refresh token for tokens.
|
|
35
35
|
*/
|
|
@@ -39,10 +39,7 @@ export declare class SimCognitoDomainEndpoints {
|
|
|
39
39
|
*/
|
|
40
40
|
private logout;
|
|
41
41
|
/**
|
|
42
|
-
* Answer a request that used
|
|
43
|
-
*
|
|
44
|
-
* Each endpoint takes one method and one only, as real Cognito's do, so what
|
|
45
|
-
* is left to say about any other is which one it was.
|
|
42
|
+
* Answer a request that used a method its endpoint takes.
|
|
46
43
|
*/
|
|
47
44
|
private answered;
|
|
48
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-domain-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-domain-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAgB/E,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiC;IAC1D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgC;IAC7D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;IAEtD;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAsBvE;IAED;;;;;;;OAOG;YACW,SAAS;IAiBvB;;OAEG;IACH,OAAO,CAAC,OAAO;IAef;;OAEG;YACW,KAAK;IAenB;;OAEG;YACW,MAAM;IAcpB;;OAEG;YACW,QAAQ;CAavB"}
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
+
import { SimCognitoManagedLogin } from "./page/sim-cognito-managed-login.js";
|
|
2
|
+
import { simCognitoAuthorizePath } from "./page/sim-cognito-page-paths.js";
|
|
3
|
+
import { SimCognitoPageRequest } from "./page/sim-cognito-page-request.js";
|
|
1
4
|
import { SimCognitoOAuthResponse } from "./sim-cognito-oauth-response.js";
|
|
2
5
|
import { SimCognitoTokenRequest } from "./sim-cognito-token-request.js";
|
|
3
6
|
/**
|
|
4
|
-
* The paths a hosted domain serves.
|
|
7
|
+
* The remaining paths a hosted domain serves.
|
|
5
8
|
*/
|
|
6
|
-
const authorizePath = "/oauth2/authorize";
|
|
7
9
|
const tokenPath = "/oauth2/token";
|
|
8
10
|
const logoutPath = "/logout";
|
|
9
11
|
/**
|
|
10
|
-
* The
|
|
12
|
+
* The methods a page takes, which is both of them, because a form is fetched
|
|
13
|
+
* and then posted back.
|
|
14
|
+
*/
|
|
15
|
+
const pageMethods = "GET, POST";
|
|
16
|
+
/**
|
|
17
|
+
* The endpoints and pages a pool's hosted domain serves.
|
|
11
18
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* an application
|
|
19
|
+
* The token and logout endpoints take one HTTP method each, as real Cognito's
|
|
20
|
+
* do. The authorize endpoint takes the post of the sign-in form it serves as
|
|
21
|
+
* well as the get an application sends the browser on, and so do the two pages
|
|
22
|
+
* reached from that form.
|
|
15
23
|
*/
|
|
16
24
|
export class SimCognitoDomainEndpoints {
|
|
17
25
|
response = new SimCognitoOAuthResponse();
|
|
18
26
|
tokenRequest = new SimCognitoTokenRequest();
|
|
27
|
+
pageRequest = new SimCognitoPageRequest();
|
|
28
|
+
pages = new SimCognitoManagedLogin();
|
|
19
29
|
/**
|
|
20
30
|
* Answer a request that reached the domain's hostname.
|
|
21
31
|
*/
|
|
22
32
|
async handleRequest(request) {
|
|
23
33
|
const { pathname } = request.url;
|
|
24
|
-
if (pathname ===
|
|
34
|
+
if (pathname === simCognitoAuthorizePath) {
|
|
25
35
|
return await this.authorize(request);
|
|
26
36
|
}
|
|
27
37
|
if (pathname === tokenPath) {
|
|
@@ -30,23 +40,37 @@ export class SimCognitoDomainEndpoints {
|
|
|
30
40
|
if (pathname === logoutPath) {
|
|
31
41
|
return await this.logout(request);
|
|
32
42
|
}
|
|
43
|
+
if (SimCognitoManagedLogin.servesPage(pathname)) {
|
|
44
|
+
return await this.answered(request, pageMethods, async () => this.pages.handlePage(request));
|
|
45
|
+
}
|
|
33
46
|
return this.response.noSuchEndpoint(pathname);
|
|
34
47
|
}
|
|
35
48
|
/**
|
|
36
|
-
* Sign a user in
|
|
37
|
-
* the
|
|
49
|
+
* Sign a user in and send the browser back to the application with a code,
|
|
50
|
+
* or serve the form that asks who is signing in.
|
|
51
|
+
*
|
|
52
|
+
* A get carrying credentials and a post of the sign-in form are the same
|
|
53
|
+
* request to the simulation. Both name the user and its password, and the
|
|
54
|
+
* only difference is where those two were read from.
|
|
38
55
|
*/
|
|
39
56
|
async authorize(request) {
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
return await this.answered(request, pageMethods, async () => {
|
|
58
|
+
const parameters = this.pageRequest.values(request.serviceRequest, request.url);
|
|
42
59
|
try {
|
|
43
60
|
return this.response.redirect(await request.cognito.hostedAuthorize(request.pool, parameters));
|
|
44
61
|
}
|
|
45
62
|
catch (error) {
|
|
46
|
-
return this.
|
|
63
|
+
return this.refused(request, parameters, error);
|
|
47
64
|
}
|
|
48
65
|
});
|
|
49
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Answer a refused sign-in, on the form or at the application.
|
|
69
|
+
*/
|
|
70
|
+
refused(request, parameters, error) {
|
|
71
|
+
return (this.pages.refusedSignIn(request, parameters, error) ??
|
|
72
|
+
this.response.refusedRedirect(error, parameters["redirect_uri"], parameters["state"]));
|
|
73
|
+
}
|
|
50
74
|
/**
|
|
51
75
|
* Exchange an authorization code or a refresh token for tokens.
|
|
52
76
|
*/
|
|
@@ -75,15 +99,12 @@ export class SimCognitoDomainEndpoints {
|
|
|
75
99
|
});
|
|
76
100
|
}
|
|
77
101
|
/**
|
|
78
|
-
* Answer a request that used
|
|
79
|
-
*
|
|
80
|
-
* Each endpoint takes one method and one only, as real Cognito's do, so what
|
|
81
|
-
* is left to say about any other is which one it was.
|
|
102
|
+
* Answer a request that used a method its endpoint takes.
|
|
82
103
|
*/
|
|
83
|
-
async answered(request,
|
|
104
|
+
async answered(request, allowed, answer) {
|
|
84
105
|
const requested = request.serviceRequest.request.method;
|
|
85
|
-
if (
|
|
86
|
-
return this.response.notAllowed(requested,
|
|
106
|
+
if (!allowed.split(", ").includes(requested)) {
|
|
107
|
+
return this.response.notAllowed(requested, allowed);
|
|
87
108
|
}
|
|
88
109
|
return await answer();
|
|
89
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cognito-domain-endpoints.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cognito-domain-endpoints.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE;;GAEG;AACH,MAAM,SAAS,GAAG,eAAe,CAAC;AAClC,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B;;;GAGG;AACH,MAAM,WAAW,GAAG,WAAW,C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,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEhE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE;YACpD,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAC3B,MAAM,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAC9D,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,QAAQ,CACpB,OAAgC,EAChC,OAAe,EACf,MAA+B;QAE/B,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC;QAExD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7C,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACtD,CAAC;QAED,OAAO,MAAM,MAAM,EAAE,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SimAwsServiceRequest } from "../../../serve/controller/sim-service-controller.js";
|
|
2
|
+
import type { SimCognitoIdentityProvider } from "../sim-cognito-identity-provider.js";
|
|
3
|
+
import type { SimCognitoUserPool } from "../user-pool/sim-cognito-user-pool.js";
|
|
4
|
+
/**
|
|
5
|
+
* One request to a hosted domain, and what answers it.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimCognitoDomainRequest {
|
|
8
|
+
readonly pool: SimCognitoUserPool;
|
|
9
|
+
/** The simulated Cognito scope the pool belongs to. */
|
|
10
|
+
readonly cognito: SimCognitoIdentityProvider;
|
|
11
|
+
readonly serviceRequest: SimAwsServiceRequest;
|
|
12
|
+
readonly url: URL;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sim-cognito-domain-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-domain-request.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;IAC7C,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;IAC9C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-domain-request.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-request.ts"],"names":[],"mappings":""}
|
|
@@ -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;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AGxD;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"}
|
|
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,aAA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