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

Use dynamic RP ID #2746

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Use dynamic RP ID #2746

merged 2 commits into from
Dec 13, 2024

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Dec 12, 2024

Motivation

Support users registered in different II domains.

After this PR, if the related_origins is set (which they are in beta) and flag DOMAIN_COMPATIBILITY is enabled, users can register in any domain and login in any other domain with the same passkey.

Changes

  • Calculate the corresponding rpId based on the user devices and the current origin when getting user credentials.

Tests

  • Tested in https://beta.identity.ic0.app/ and https://beta.identity.internetcomputer.org/.

🟡 Some screens were changed

@lmuntaner lmuntaner marked this pull request as ready for review December 12, 2024 11:31
@lmuntaner lmuntaner requested a review from sea-snake December 12, 2024 16:07
@lmuntaner
Copy link
Collaborator Author

@sea-snake ready for another review

@lmuntaner lmuntaner added this pull request to the merge queue Dec 13, 2024
Merged via the queue into main with commit 411ed8a Dec 13, 2024
67 checks passed
@lmuntaner lmuntaner deleted the lm-use-dynamic-rpid branch December 13, 2024 09:13
@lmuntaner lmuntaner mentioned this pull request Dec 16, 2024
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.

2 participants