Skip to content
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

Do not use cancelled RP IDs for recovery device #2813

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Jan 23, 2025

Motivation

If a user has a cancelledRpId and that is the origin where the recovery device was registered, then the recovery wouldn't work because it would be filtered out.

We don't track the cancelled RP IDs for the recovery devices and we don't need to because there is only one recovery device.

In this PR, I added a flag to fromWebauthnCredentials to skip reading and storing cancelled RP IDs.

Changes

  • Add new flag parameter in fromWebauthnCredentials and skip reading and storing cancelled RP IDs when set to true.
  • Use the new flag in the recovery device flow.

Tests

  • Add tests for the new functionality.

🟡 Some screens were changed

@lmuntaner lmuntaner requested review from sea-snake and LXIF January 23, 2025 08:30
@lmuntaner lmuntaner marked this pull request as ready for review January 23, 2025 08:30
@lmuntaner
Copy link
Collaborator Author

@LXIF @sea-snake please review

@lmuntaner lmuntaner added this pull request to the merge queue Jan 23, 2025
Merged via the queue into main with commit 0d7be33 Jan 23, 2025
67 checks passed
@lmuntaner lmuntaner deleted the lm-recovery-device-without-cancelled-rp-ids-storage branch January 23, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants