-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): initial implementation of user set mfa secrets / codes #6654
feat(core): initial implementation of user set mfa secrets / codes #6654
Conversation
COMPARE TO
|
Name | Diff |
---|---|
packages/core/src/routes/admin-user/mfa-verification.openapi.json | 📈 +1.14 KB |
packages/core/src/routes/admin-user/mfa-verifications.test.ts | 📈 +2.33 KB |
packages/core/src/routes/admin-user/mfa-verifications.ts | 📈 +784 Bytes |
packages/core/src/routes/interaction/utils/backup-code-validation.ts | 📈 +198 Bytes |
packages/core/src/routes/interaction/utils/totp-validation.test.ts | 📈 +306 Bytes |
packages/core/src/routes/interaction/utils/totp-validation.ts | 📈 +255 Bytes |
packages/phrases/src/locales/en/errors/user.ts | 📈 +118 Bytes |
Hi @atarbalouti , the secrets and backup codes are randomly generated, so it doesn’t seem necessary for the user to confirm them beforehand. The process could be streamlined by directly creating the codes, and then giving users the option to view or print them once they’re generated. |
Hi @atarbalouti , after discussion, this is indeed an secenario that can be optimized, and we are taking a look. cc @wangsijie |
This PR is stale because it has been open 10 for days with no activity. Remove stale label or comment or this will be closed in 5 days. |
I'll handle this next week. |
47e19bb
to
c5fa75b
Compare
Summary
This adds the possibility to add user set mfa secrets (TOTP / backup codes). This is necessary for the creation of such secrets directly in the application, because the user has first to confirm the answer or that he printed the backup codes before really creating them in Logto.
Testing
Manually by creating a TOTP secret.
Checklist
.changeset