Skip to content

Commit 36c631a

Browse files
jjarvispscanlonpcalebpollmantiffanynwyeungjordanvn
authored
feat(authenticator): add support for email otp and select mfa type challenges (#6469)
* chore: update github workflows and add publishing tag on merge (#6260) * chore: update github workflows and add publishing tag on merge * chore: publish workflow in correct directory * chore: remove edits to sample workflow * chore: sync main with feat-email-mfa/main (#6320) * chore(react): remove direct usage of react-test-renderer and types (#6255) * chore(deps): upgrade next deps to point to ^14.2.15 (#6263) * fix(docs): use correct listLocation attribute names in Storage Browser auth example (#6264) * chore(react-native): update allowed peerDep to >=0.70 (#6266) * chore(react): add support for react 19 (#5826) * chore(storage-browser): bump up package size limit (#6267) * chore(changeset): update react 19 changeset from patch to minor bump (#6269) * chore(react): remove radix-ui upgrades (#6268) * fix(docs): remove typo from liveness detector core docs (#6256) * Version Packages (#6261) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: remove temporary pin to react 18 in react@latest build tests (#6274) * chore: remove temporary use of react 18 in react@latest build tests * chore: update workflow for forced test run * chore: adjusting testing strategy, modify publish workflow instead of reusable test * chore: reverting temporary testing changes * Revert support for React 19 (#6278) * Revert "chore: remove temporary pin to react 18 in react@latest build tests (#6274)" This reverts commit d9ee32d. * Revert "fix(docs): remove typo from liveness detector core docs (#6256)" This reverts commit 9d71dd8. * Revert "chore(react): remove radix-ui upgrades (#6268)" This reverts commit c623990. * Revert "chore(changeset): update react 19 changeset from patch to minor bump (#6269)" This reverts commit 7045aed. * Revert "chore(storage-browser): bump up package size limit (#6267)" This reverts commit a79b8e9. * Revert "chore(react): add support for react 19 (#5826)" This reverts commit 954e9be. * chore: add changeset * Version Packages (#6281) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(deps): bump nextjs version (#6284) * chore: add v0.76 and latest to React Native build system tests (#6285) * chore: add react native v0.76 build system tests to CI * chore: add react native 'latest' to build system tests * fix(github-actions): bump upload-artifact to v4 (#6289) * feat(i18n): add Chinese translations for password fields in zh.ts (#6125) Co-authored-by: Caleb Pollman <cpollman1@gmail.com> * test(e2e): add storage-browser offline tests (#6206) * test(e2e): add storage-browser offline tests * address feedback * fix EOF * fix EOF * Update packages/e2e/cypress/integration/common/shared.ts Co-authored-by: Caleb Pollman <cpollman@amazon.com> * address feedback --------- Co-authored-by: Caleb Pollman <cpollman@amazon.com> * chore(docs): update react web Authenticator hideSignUp example (#6290) * feat(react): reenable react 19 support (#6296) * Revert "Revert support for React 19 (#6278)" This reverts commit 475e4a3. * update radix deps * remove radix namespace sanitization * migrate/cleanup FileUploader component override example * add ExtendedView component for surfacing ReactNode conflicts * Remove extended and overridden react types * chore(build-system-tests): disable react@latest tests (#6297) * Version Packages (#6292) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(ci): add retry delays to build tests & upgrade actions/cache (#6291) * chore: add delay between install retries, swap RN to use install script * chore: upgrade actions/cache to v4.2.0 * chore(build-system-tests): reenable react@latest tests (#6299) * fix(slider): remounted controlled value not updating (#6301) * fix(ui): fix and add missing sv translations (#6288) Co-authored-by: Jordan Van Ness <jordvn@amazon.com> Co-authored-by: Caleb Pollman <cpollman1@gmail.com> * chore(changeset): add changeset for PR #6301 (#6303) * fix(react-storage): enable default checksum algorithm for create folder action (#6305) * fix: include default checksum alg header in createFolder action * test: update createFolder test spec for checksum alg header * chore: adding changeset * Version Packages (#6304) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(docs): Update Android UI component versions (#6311) * chore(deps-dev): bump vite from 5.2.14 to 5.4.12 (#6307) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.14 to 5.4.12. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(storage-browser): export UseView type (#6314) * chore(ui-react-storage): clean up outdated styles file (#6197) Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com> * chore(react-native): add fed sign in example env (#6318) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Caleb Pollman <cpollman@amazon.com> Co-authored-by: Tiffany Yeung <tnwyeung@amazon.com> Co-authored-by: Jordan Van Ness <jordvn@amazon.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: BeforeSunset16 <145817984+BeforeSunset16@users.noreply.github.com> Co-authored-by: Caleb Pollman <cpollman1@gmail.com> Co-authored-by: Ashwin Kumar <ashwinkumar2468@gmail.com> Co-authored-by: Danny Banks <djb@amazon.com> Co-authored-by: berg-dee <berg_deejay0d@icloud.com> Co-authored-by: Vincent Tran <freedom1378@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AllanZhengYP <zheallan@amazon.com> Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com> * feat(authenticator): state machine updates for email mfa (#6317) * feat: add email mfa support to state machine * refactor: facade types * refactor: update facade types * test: update react core tests to align with type changes * refactor: generalize radio options * refactor: update react-core-auth tests * refactor: update vue test spec * chore: add addtnl challenge names * chore: quick changes * fix: allow labelled radio options * chore: add i18n setup * test: update textUtil tests * chore: type safe MFA types * fix: add addtl text utils * chore: add translation sites * chore: alphabetization * chore: alphabetization * chore: remove comment * chore: alphabetization * chore: alphabetization * chore: address feedback * chore: address feedback * chore: alphabetization * feat(authenticator): add react support for email mfa (#6319) * feat: add email mfa support to state machine * refactor: facade types * refactor: update facade types * test: update react core tests to align with type changes * refactor: generalize radio options * refactor: update react-core-auth tests * refactor: update vue test spec * chore: add addtnl challenge names * chore: quick changes * fix: allow labelled radio options * chore: add i18n setup * test: update textUtil tests * chore: type safe MFA types * fix: add addtl text utils * chore: add translation sites * chore: alphabetization * chore: alphabetization * chore: remove comment * chore: alphabetization * chore: alphabetization * chore: address feedback * chore: address feedback * chore: alphabetization * chore: add email mfa env / example route * feat: adding react support for email mfa * chore: update env to gen2 path * fix: add validation errors to radio group * chore: initial state is sign in * feat: enable autoSignIn as state machine service * chore: add email mfa examples * feat: adding email mfa test specs * chore: default state is sign in * chore: update react-core tests * fix: allow labelled radio options * chore: tmp RN type fix * chore: update component to use text util * test: update react e2e and unit tests * fix: avoid mutate xstate context * chore: add missing unit tests * chore: address feedback * chore: address feedback * chore: address feedback * chore: address feedback * feat(authenticator): add angular support for email mfa (#6356) * feat: add email mfa support to state machine * refactor: facade types * refactor: update facade types * test: update react core tests to align with type changes * refactor: generalize radio options * refactor: update react-core-auth tests * refactor: update vue test spec * chore: add addtnl challenge names * chore: quick changes * fix: allow labelled radio options * chore: add i18n setup * test: update textUtil tests * chore: type safe MFA types * fix: add addtl text utils * chore: add translation sites * chore: alphabetization * chore: alphabetization * chore: remove comment * chore: alphabetization * chore: alphabetization * chore: address feedback * chore: address feedback * chore: alphabetization * chore: add email mfa env / example route * feat: adding react support for email mfa * chore: update env to gen2 path * fix: add validation errors to radio group * chore: initial state is sign in * feat: enable autoSignIn as state machine service * chore: add email mfa examples * feat: adding email mfa test specs * chore: default state is sign in * chore: update react-core tests * fix: allow labelled radio options * chore: tmp RN type fix * chore: update component to use text util * test: update react e2e and unit tests * fix: avoid mutate xstate context * chore: add missing unit tests * chore: address feedback * chore: address feedback * chore: address feedback * chore: address feedback * chore: add angular email mfa example apps * chore: add radio field component * feat: add email mfa screens * test: add email mfa e2e tests * chore: use default classNames * chore: address feedback * chore: address feedback * chore: fix slot names * feat(authenticator): add vue support for email mfa (#6350) * feat: add email mfa support to state machine * refactor: facade types * refactor: update facade types * test: update react core tests to align with type changes * refactor: generalize radio options * refactor: update react-core-auth tests * refactor: update vue test spec * chore: add addtnl challenge names * chore: quick changes * fix: allow labelled radio options * chore: add i18n setup * test: update textUtil tests * chore: type safe MFA types * fix: add addtl text utils * chore: add translation sites * chore: alphabetization * chore: alphabetization * chore: remove comment * chore: alphabetization * chore: alphabetization * chore: address feedback * chore: address feedback * chore: alphabetization * chore: add email mfa env / example route * feat: adding react support for email mfa * chore: update env to gen2 path * fix: add validation errors to radio group * chore: initial state is sign in * feat: enable autoSignIn as state machine service * chore: add email mfa examples * feat: adding email mfa test specs * chore: default state is sign in * chore: update react-core tests * fix: allow labelled radio options * chore: tmp RN type fix * chore: update component to use text util * test: update react e2e and unit tests * fix: avoid mutate xstate context * chore: add missing unit tests * chore: address feedback * chore: address feedback * chore: address feedback * chore: address feedback * feat: add vue email mfa screens * test: add vue component test specs * test: update vue snapshots * test: add vue e2e apps * chore: enable vue in e2e spec * chore: address feedback * chore: address feedback * chore: address feedback * chore: add test to boost global coverage * chore: add semicolon * feat(authenticator): add react native support for email mfa (#6390) * feat: add email mfa support to state machine * refactor: facade types * refactor: update facade types * test: update react core tests to align with type changes * refactor: generalize radio options * refactor: update react-core-auth tests * refactor: update vue test spec * chore: add addtnl challenge names * chore: quick changes * fix: allow labelled radio options * chore: add i18n setup * test: update textUtil tests * chore: type safe MFA types * fix: add addtl text utils * chore: add translation sites * chore: alphabetization * chore: alphabetization * chore: remove comment * chore: alphabetization * chore: alphabetization * chore: address feedback * chore: address feedback * chore: alphabetization * chore: add email mfa env / example route * feat: adding react support for email mfa * chore: update env to gen2 path * fix: add validation errors to radio group * chore: initial state is sign in * feat: enable autoSignIn as state machine service * chore: add email mfa examples * feat: adding email mfa test specs * chore: default state is sign in * chore: update react-core tests * fix: allow labelled radio options * chore: tmp RN type fix * chore: update component to use text util * test: update react e2e and unit tests * fix: avoid mutate xstate context * chore: add missing unit tests * chore: address feedback * chore: address feedback * chore: address feedback * chore: address feedback * fix: avoid mutate xstate context * chore: add email mfa example for RN * feat: add email mfa screens * test: add unit tests * test: add e2e test apps * fix: e2e test selector * fix: customize sign up service * fix: address PR feedback * chore: address feedback * chore: fix test * chore: address feedback * feat(i18n): add translations for email mfa (#6387) * feat: add email mfa support to state machine * refactor: facade types * refactor: update facade types * test: update react core tests to align with type changes * refactor: generalize radio options * refactor: update react-core-auth tests * refactor: update vue test spec * chore: add addtnl challenge names * chore: quick changes * fix: allow labelled radio options * chore: add i18n setup * test: update textUtil tests * chore: type safe MFA types * fix: add addtl text utils * chore: add translation sites * chore: alphabetization * chore: alphabetization * chore: remove comment * chore: alphabetization * chore: alphabetization * chore: address feedback * chore: address feedback * chore: alphabetization * feat(auth): add English translations for email MFA * German * Spanish * French * Indonesian * Italian * Japanese * Korean * Dutch * Polish * Portuguese * Russian * Swedish * Turkish * Chinese * Ukrainian * Thai * Norwegian * Hebrew * chore: alphabetization --------- Co-authored-by: James Jarvis <jjarvisp@amazon.com> * chore: fix missing env (#6391) * fix(authenticator): apply default checked to select mfa type (#6392) * fix: apply default checked * chore: update unit tests * chore: add select mfa type default radio * chore: add verify user default radio selection * chore(email-mfa): sync with main (#6407) * chore(react): remove direct usage of react-test-renderer and types (#6255) * chore(deps): upgrade next deps to point to ^14.2.15 (#6263) * fix(docs): use correct listLocation attribute names in Storage Browser auth example (#6264) * chore(react-native): update allowed peerDep to >=0.70 (#6266) * chore(react): add support for react 19 (#5826) * chore(storage-browser): bump up package size limit (#6267) * chore(changeset): update react 19 changeset from patch to minor bump (#6269) * chore(react): remove radix-ui upgrades (#6268) * fix(docs): remove typo from liveness detector core docs (#6256) * Version Packages (#6261) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: remove temporary pin to react 18 in react@latest build tests (#6274) * chore: remove temporary use of react 18 in react@latest build tests * chore: update workflow for forced test run * chore: adjusting testing strategy, modify publish workflow instead of reusable test * chore: reverting temporary testing changes * Revert support for React 19 (#6278) * Revert "chore: remove temporary pin to react 18 in react@latest build tests (#6274)" This reverts commit d9ee32d. * Revert "fix(docs): remove typo from liveness detector core docs (#6256)" This reverts commit 9d71dd8. * Revert "chore(react): remove radix-ui upgrades (#6268)" This reverts commit c623990. * Revert "chore(changeset): update react 19 changeset from patch to minor bump (#6269)" This reverts commit 7045aed. * Revert "chore(storage-browser): bump up package size limit (#6267)" This reverts commit a79b8e9. * Revert "chore(react): add support for react 19 (#5826)" This reverts commit 954e9be. * chore: add changeset * Version Packages (#6281) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(deps): bump nextjs version (#6284) * chore: add v0.76 and latest to React Native build system tests (#6285) * chore: add react native v0.76 build system tests to CI * chore: add react native 'latest' to build system tests * fix(github-actions): bump upload-artifact to v4 (#6289) * feat(i18n): add Chinese translations for password fields in zh.ts (#6125) Co-authored-by: Caleb Pollman <cpollman1@gmail.com> * test(e2e): add storage-browser offline tests (#6206) * test(e2e): add storage-browser offline tests * address feedback * fix EOF * fix EOF * Update packages/e2e/cypress/integration/common/shared.ts Co-authored-by: Caleb Pollman <cpollman@amazon.com> * address feedback --------- Co-authored-by: Caleb Pollman <cpollman@amazon.com> * chore(docs): update react web Authenticator hideSignUp example (#6290) * feat(react): reenable react 19 support (#6296) * Revert "Revert support for React 19 (#6278)" This reverts commit 475e4a3. * update radix deps * remove radix namespace sanitization * migrate/cleanup FileUploader component override example * add ExtendedView component for surfacing ReactNode conflicts * Remove extended and overridden react types * chore(build-system-tests): disable react@latest tests (#6297) * Version Packages (#6292) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(ci): add retry delays to build tests & upgrade actions/cache (#6291) * chore: add delay between install retries, swap RN to use install script * chore: upgrade actions/cache to v4.2.0 * chore(build-system-tests): reenable react@latest tests (#6299) * fix(slider): remounted controlled value not updating (#6301) * fix(ui): fix and add missing sv translations (#6288) Co-authored-by: Jordan Van Ness <jordvn@amazon.com> Co-authored-by: Caleb Pollman <cpollman1@gmail.com> * chore(changeset): add changeset for PR #6301 (#6303) * fix(react-storage): enable default checksum algorithm for create folder action (#6305) * fix: include default checksum alg header in createFolder action * test: update createFolder test spec for checksum alg header * chore: adding changeset * Version Packages (#6304) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(docs): Update Android UI component versions (#6311) * chore(deps-dev): bump vite from 5.2.14 to 5.4.12 (#6307) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.14 to 5.4.12. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(storage-browser): export UseView type (#6314) * chore(ui-react-storage): clean up outdated styles file (#6197) Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com> * chore(react-native): add fed sign in example env (#6318) * chore: add changeset for #6197 (#6322) * Version Packages (#6315) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(docs): fix typo of fetchUserAttributes (#6324) * chore(gh-workflow): apply maintainer response label only to open issues (#6326) * feature(multi-bucket): add multi-bucket support to storage components (#5562) * initial commit to add 'bucket' property to storage components * chore: use StorageBucket type in StorageImagePathProps * remove duplicate StorageBucket type declaration * chore: update aws-amplify version to include multi-bucket support * docs: include references to new 'bucket' prop and its usage * more explicitly clarifying that can be a string in docs example * chore: changing reference of storage manager to file uploader * chore: updating yarn.lock * chore: undoing unnecessary linting changes * chore: moving yarn.lock from main branch parity * chore: updating yarn.lock to main * chore: add missing references to 'bucket' * chore: adding tests and new example app * chore: add end of file line * chore: add changeset * chore: setting more obviously fake bucket name as example * chore: adding link for setting up multi-bucket configuration to docs * chore: removing unnecessary type definitions * chore: removing unnecessary type from Storage Image props * chore: adding bucket as omitted prop to gen1 props * fix(tests): updating test data to fit expected behavior * chore: adjusting prop order, import consolidation, and added description * chore: add FileUploader example app and e2e test --------- Co-authored-by: Caleb Pollman <cpollman@amazon.com> * chore: remove storage browser table rows while loading (#6183) * fix(angular): stop auth actor when destroying `AuthenticatorService` (#6333) * fix(angular): stop interpreter when destroying AuthenticatorService * chore: add changeset * test(angular): in AuthenticatorService, ensure underlying auth actor is closed on destruction * fix(docs): add callout for Amplify UI component usage in SSR for Angular/Vue (#6339) * fix(docs): add callout about Amplify UI component usage in SSR for Angular/Vue * chore: adjust wording feedback, fix angular heading sizes * chore(docs): add StorageBrowser amplify auth note (#6342) * chore(deps): remove out of date browserslist resolution (#6343) * chore(deps): clear serialize-javascript and esbuild dependabot alerts (#6348) * fix: add parentheses to fix displayed Storage Browser upload status (#6347) * fix: add parentheses to fix displayed upload status * chore: add changeset * chore: add test for progress indicator * chore: update statuses within progress test to accurately reflect progress state * chore: other minor changes to make test data more appropriate * chore(docs): adjust wording and clean up React troubleshooting page (#6345) * chore(docs): adjust wording and clean up React troubleshooting page * address feedback * revert Next.js version change to point to version introducing breaking changes specifically, 13.4 was the change that introduced stable App Router, and it would be better to point this out rather than point to the latest version of 13 for clarity's sake * chore(changeset): add missing changeset for #6183 (#6353) * Version Packages (#6337) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(deps): bump build-system-test deps, clear esbuild dependabots, remove extraneous resolutions (#6351) * chore(react-storage): update access level deprecation message (#6369) * chore: update url in deprecation message * chore: add changeset * chore(gh-action): bump retry backoff in build system tests (#6355) * fix(docs): remove non-visible header rendering in TOC (#6371) * chore: specify react-native-safe-area-context version (#6372) * chore: move intercepts listeners to before request (#6373) * fix: signout bug when offline (#6061) Co-authored-by: Caleb Pollman <cpollman@amazon.com> * fix: enable customization of displayText for location detail view dataTable headers (#6346) * fix: enable customization of displayText for location detail view dataTable headers * fix: update location detail view test to include displayText * chore: converting default headers to string array, adding unit tests * chore: add changeset for #6061 (#6375) * chore(deps): add esbuild resolution in build-system-tests/package.json (#6376) * Version Packages (#6370) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore(react-core): ensure useDataState returns value of last dispatch (#6382) * Create nasty-lemons-agree.md * feat(ui): allow override of resendSignUpCode function call (#6312) Co-authored-by: Caleb Pollman <cpollman@amazon.com> * fix: Numeric 0 can be set in the property (#6381) Co-authored-by: James Jarvis <jjarvisp@amazon.com> * Version Packages (#6385) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(ui-react-storage): allow custom error boundary (#6408) * feat(ui-react-storage): allow custom error boundary * feat: allow functional error boundary and null to disable --------- Co-authored-by: Danny Banks <djb@amazon.com> * chore: update license allowlist (#6411) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Caleb Pollman <cpollman@amazon.com> Co-authored-by: Tiffany Yeung <tnwyeung@amazon.com> Co-authored-by: Jordan Van Ness <jordvn@amazon.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: BeforeSunset16 <145817984+BeforeSunset16@users.noreply.github.com> Co-authored-by: Caleb Pollman <cpollman1@gmail.com> Co-authored-by: Ashwin Kumar <ashwinkumar2468@gmail.com> Co-authored-by: Danny Banks <djb@amazon.com> Co-authored-by: berg-dee <berg_deejay0d@icloud.com> Co-authored-by: Vincent Tran <freedom1378@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AllanZhengYP <zheallan@amazon.com> Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com> Co-authored-by: Quentin <QuentinFchx@users.noreply.github.com> Co-authored-by: cp <cp@deh.li> Co-authored-by: Kevin Campbell <11986186+kevin860@users.noreply.github.com> Co-authored-by: Kihara, Takuya <gray@tacck.net> * fix: remove select-mfa-type from form fields union (#6456) * docs(email-mfa): add email mfa documentation updates (#6457) * chore: add rn component overrides / examples email mfa * chore: add rn component overrides docs email mfa * chore: fix double border on overrides table * chore: add email mfa documentation * chore: update rn exports snap * chore: revert tagged release / pr tests (#6467) Co-authored-by: Caleb Pollman <cpollman@amazon.com> * chore(email-mfa): add changeset / cleanup (#6471) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Parker Scanlon <69879391+scanlonp@users.noreply.github.com> Co-authored-by: Caleb Pollman <cpollman@amazon.com> Co-authored-by: Tiffany Yeung <tnwyeung@amazon.com> Co-authored-by: Jordan Van Ness <jordvn@amazon.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: BeforeSunset16 <145817984+BeforeSunset16@users.noreply.github.com> Co-authored-by: Caleb Pollman <cpollman1@gmail.com> Co-authored-by: Ashwin Kumar <ashwinkumar2468@gmail.com> Co-authored-by: Danny Banks <djb@amazon.com> Co-authored-by: berg-dee <berg_deejay0d@icloud.com> Co-authored-by: Vincent Tran <freedom1378@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AllanZhengYP <zheallan@amazon.com> Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com> Co-authored-by: Quentin <QuentinFchx@users.noreply.github.com> Co-authored-by: cp <cp@deh.li> Co-authored-by: Kevin Campbell <11986186+kevin860@users.noreply.github.com> Co-authored-by: Kihara, Takuya <gray@tacck.net>
1 parent 44dcfb5 commit 36c631a

File tree

190 files changed

+6742
-241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+6742
-241
lines changed

.changeset/polite-ducks-prove.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@aws-amplify/ui-angular': minor
3+
'@aws-amplify/ui-react-native': minor
4+
'@aws-amplify/ui-react-core': minor
5+
'@aws-amplify/ui-react': minor
6+
'@aws-amplify/ui-vue': minor
7+
'@aws-amplify/ui': minor
8+
---
9+
10+
feat(authenticator): add support for email otp and select mfa type challenges

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
"react-markdown": "^8.0.3",
7575
"ts-node": "^10.9.1"
7676
}
77-
}
77+
}

docs/src/pages/[platform]/connected-components/authenticator/advanced/current-route.angular.mdx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1+
import RoutesList from './routes-list.mdx';
2+
13
You can use `AuthenticatorService` to access `route` string that represents the current `authState`. They can be one of:
24

3-
- `idle`
4-
- `setup`
5-
- `signIn`
6-
- `signUp`
7-
- `confirmSignIn`
8-
- `confirmSignUp`
9-
- `setupTotp`
10-
- `forceNewPassword`
11-
- `forgotPassword`
12-
- `confirmResetPassword`
13-
- `verifyUser`
14-
- `confirmVerifyUser`
15-
- `signOut`
16-
- `authenticated`
5+
<RoutesList />
176

187
```html
198
<!-- Only render this if there's an authenticated user -->

docs/src/pages/[platform]/connected-components/authenticator/advanced/current-route.react-native.mdx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1+
import RoutesList from './routes-list.mdx';
2+
13
You can use `useAuthenticator` hook to access `route` string that represents the current `authState`. They can be one of:
24

3-
- `idle`
4-
- `setup`
5-
- `signIn`
6-
- `signUp`
7-
- `confirmSignIn`
8-
- `confirmSignUp`
9-
- `setupTotp`
10-
- `forceNewPassword`
11-
- `forgotPassword`
12-
- `confirmResetPassword`
13-
- `verifyUser`
14-
- `confirmVerifyUser`
15-
- `signOut`
16-
- `authenticated`
5+
<RoutesList />
176

187
```jsx
198
import { useAuthenticator } from '@aws-amplify/ui-react-native';

docs/src/pages/[platform]/connected-components/authenticator/advanced/current-route.react.mdx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1+
import RoutesList from './routes-list.mdx';
2+
13
You can use `useAuthenticator` hook to access `route` string that represents the current `authState`. They can be one of:
24

3-
- `idle`
4-
- `setup`
5-
- `signIn`
6-
- `signUp`
7-
- `confirmSignIn`
8-
- `confirmSignUp`
9-
- `setupTotp`
10-
- `forceNewPassword`
11-
- `forgotPassword`
12-
- `confirmResetPassword`
13-
- `verifyUser`
14-
- `confirmVerifyUser`
15-
- `signOut`
16-
- `authenticated`
5+
<RoutesList />
176

187
```tsx{1,4-7}
198
import { useAuthenticator } from '@aws-amplify/ui-react';

docs/src/pages/[platform]/connected-components/authenticator/advanced/current-route.vue.mdx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1+
import RoutesList from './routes-list.mdx';
2+
13
You can use `useAuthenticator` composable to access `route` string that represents the current `authState`. They can be one of:
24

3-
- `idle`
4-
- `setup`
5-
- `signIn`
6-
- `signUp`
7-
- `confirmSignIn`
8-
- `confirmSignUp`
9-
- `setupTotp`
10-
- `forceNewPassword`
11-
- `forgotPassword`
12-
- `confirmResetPassword`
13-
- `verifyUser`
14-
- `confirmVerifyUser`
15-
- `signOut`
16-
- `authenticated`
5+
<RoutesList />
176

187
```html{1,5-7}
198
<script setup>

docs/src/pages/[platform]/connected-components/authenticator/advanced/index.page.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ Here's an example that uses the `toForgotPassword` trigger transition, to create
188188
<ResponsiveTableCell label="Description">Provides detail on where confirm sign up code is sent to.</ResponsiveTableCell>
189189
<ResponsiveTableCell label="Type">`CodeDeliveryDetail`</ResponsiveTableCell>
190190
</TableRow>
191+
<TableRow>
192+
<ResponsiveTableCell label="Name">`allowedMfaTypes`</ResponsiveTableCell>
193+
<ResponsiveTableCell label="Description">Multi-factor authentication types available for selection.</ResponsiveTableCell>
194+
<ResponsiveTableCell label="Type">`AuthMfaType[]`</ResponsiveTableCell>
195+
</TableRow>
191196
</TableBody>
192197
</ResponsiveTable>
193198

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- `idle`
2+
- `setup`
3+
- `signIn`
4+
- `signUp`
5+
- `confirmSignIn`
6+
- `confirmSignUp`
7+
- `selectMfaType`
8+
- `setupEmail`
9+
- `setupTotp`
10+
- `forceNewPassword`
11+
- `forgotPassword`
12+
- `confirmResetPassword`
13+
- `verifyUser`
14+
- `confirmVerifyUser`
15+
- `signOut`
16+
- `authenticated`

docs/src/pages/[platform]/connected-components/authenticator/customization/customization.headers-and-footers.react-native.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `Authenticator` subcomponents can be overridden allowing for advanced use ca
3737
The following example shows how to override each component in the Authenticator to produce a distinct look and feel using a third-party component library.
3838

3939
<Tabs.Container defaultValue="example">
40-
<Tabs.List style={{ overflowX: 'scroll', paddingBottom: 8 }}>
40+
<Tabs.List style={{ overflowX: 'scroll' }}>
4141
<Tabs.Item value="example">Example.tsx</Tabs.Item>
4242
<Tabs.Item value="confirm-reset-password">
4343
ConfirmResetPassword.tsx
@@ -46,6 +46,8 @@ The following example shows how to override each component in the Authenticator
4646
<Tabs.Item value="confirm-verify-user">ConfirmVerifyUser.tsx</Tabs.Item>
4747
<Tabs.Item value="force-new-password">ForceNewPassword.tsx</Tabs.Item>
4848
<Tabs.Item value="forgot-password">ForgotPassword.tsx</Tabs.Item>
49+
<Tabs.Item value="select-mfa-type">SelectMfaType.tsx</Tabs.Item>
50+
<Tabs.Item value="setup-email">SetupEmail.tsx</Tabs.Item>
4951
<Tabs.Item value="setup-totp">SetupTotp.tsx</Tabs.Item>
5052
<Tabs.Item value="sign-in">SignIn.tsx</Tabs.Item>
5153
<Tabs.Item value="sign-up">SignUp.tsx</Tabs.Item>
@@ -76,6 +78,14 @@ The following example shows how to override each component in the Authenticator
7678
```jsx file=../../../../../../../examples/react-native/src/features/Authenticator/OverrideComponents/ForgotPassword.tsx
7779
```
7880
</Tabs.Panel>
81+
<Tabs.Panel value="select-mfa-type">
82+
```jsx file=../../../../../../../examples/react-native/src/features/Authenticator/OverrideComponents/SelectMfaType.tsx
83+
```
84+
</Tabs.Panel>
85+
<Tabs.Panel value="setup-email">
86+
```jsx file=../../../../../../../examples/react-native/src/features/Authenticator/OverrideComponents/SetupEmail.tsx
87+
```
88+
</Tabs.Panel>
7989
<Tabs.Panel value="setup-totp">
8090
```jsx file=../../../../../../../examples/react-native/src/features/Authenticator/OverrideComponents/SetupTotp.tsx
8191
```

docs/src/pages/[platform]/connected-components/authenticator/customization/customization.labels-and-text.web.mdx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,23 @@ Using the same techniques as [Internationalization (I18n)](#internationalization
6969
</Accordion.Content>
7070
</Accordion.Item>
7171

72+
<Accordion.Item value="confirm-sign-in">
73+
<Accordion.Trigger>
74+
<Text fontWeight="bold">Confirm Sign In</Text>
75+
<Accordion.Icon />
76+
</Accordion.Trigger>
77+
<Accordion.Content>
78+
```ts
79+
I18n.putVocabulariesForLanguage('en', {
80+
'Confirm SMS Code': 'SMS',
81+
'Confirm TOTP Code': 'TOTP',
82+
'Confirm Email Code': 'Email',
83+
'Confirm MFA Code': 'Default',
84+
});
85+
```
86+
</Accordion.Content>
87+
</Accordion.Item>
88+
7289
<Accordion.Item value="forgot-password">
7390
<Accordion.Trigger>
7491
<Text fontWeight="bold">Forgot Password</Text>
@@ -106,4 +123,37 @@ Using the same techniques as [Internationalization (I18n)](#internationalization
106123
```
107124
</Accordion.Content>
108125
</Accordion.Item>
126+
127+
<Accordion.Item value="select-mfa-type">
128+
<Accordion.Trigger>
129+
<Text fontWeight="bold">Select MFA Type</Text>
130+
<Accordion.Icon />
131+
</Accordion.Trigger>
132+
<Accordion.Content>
133+
```ts
134+
I18n.putVocabulariesForLanguage('en', {
135+
'Multi-Factor Authentication Setup': 'MFA Setup', // MFA Setup Selection Header
136+
'Multi-Factor Authentication': 'MFA', // MFA Selection Header
137+
'Select MFA Type': "Choose an MFA Type", // Radio Group Legend
138+
'Email Message': 'Email', // Email Radio Option Label
139+
'Text Message (SMS)': 'SMS', // SMS Radio Option Label
140+
'Authenticator App (TOTP)': 'TOTP', // TOTP Radio Option Label
141+
});
142+
```
143+
</Accordion.Content>
144+
</Accordion.Item>
145+
146+
<Accordion.Item value="setup-email">
147+
<Accordion.Trigger>
148+
<Text fontWeight="bold">Setup Email</Text>
149+
<Accordion.Icon />
150+
</Accordion.Trigger>
151+
<Accordion.Content>
152+
```ts
153+
I18n.putVocabulariesForLanguage('en', {
154+
'Setup Email': 'Email Setup' // Setup Email Header
155+
});
156+
```
157+
</Accordion.Content>
158+
</Accordion.Item>
109159
</Accordion.Container>

0 commit comments

Comments
 (0)