logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.66k stars 439 forks source link

feat(core): implement the missing mfa bind and guard flow #6320

Closed simeng-li closed 3 months ago

simeng-li commented 3 months ago

Summary

Implement the missing mfa bind and guard flow

Testing

integration tests in a separate PR. Working on tests. See #6330 for integration tests.

Checklist

github-actions[bot] commented 3 months ago

COMPARE TO master

Total Size Diff :warning: :chart_with_upwards_trend: +18.71 KB

Diff by File |Name|Diff| |---|---| |packages/core/src/routes/experience/classes/experience-interaction.ts|:chart_with_upwards_trend: +1.19 KB| |packages/core/src/routes/experience/classes/helpers.ts|:chart_with_upwards_trend: +641 Bytes| |packages/core/src/routes/experience/classes/libraries/mfa-validator.ts|:chart_with_upwards_trend: +1.1 KB| |packages/core/src/routes/experience/classes/mfa.ts|:warning: :chart_with_upwards_trend: +11.23 KB| |packages/core/src/routes/experience/classes/verifications/index.ts|:chart_with_upwards_trend: +13 Bytes| |packages/core/src/routes/experience/classes/verifications/totp-verification.ts|:chart_with_upwards_trend: +308 Bytes| |packages/core/src/routes/experience/classes/verifications/web-authn-verification.ts|:chart_with_upwards_trend: +9.06 KB| |packages/core/src/routes/experience/classes/verifications/web-authn.ts|:chart_with_upwards_trend: +8.66 KB| |packages/core/src/routes/experience/const.ts|:chart_with_upwards_trend: +32 Bytes| |packages/core/src/routes/experience/profile-routes.ts|:chart_with_upwards_trend: +3.64 KB| |packages/core/src/routes/experience/verification-routes/web-authn-verification.ts|:chart_with_upwards_trend: +13 Bytes| |packages/integration-tests/src/tests/api/experience-api/sign-in-interaction/mfa-verification.test.ts|:chart_with_upwards_trend: +115 Bytes| |packages/phrases/src/locales/en/errors/session.ts|:chart_with_upwards_trend: +58 Bytes|