Passkey Autofill UI with Related Origins feature #16
-
Hi, I've read https://passkeys.dev/docs/advanced/related-origins/ but I still don't understand one thing. There are JSON files served at Now suppose a user opens login page on Or should all the passkeys be registered with common rpId (e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In a greenfield environment, you should use a common RP ID as documented in that article. In a brownfield environment where passkeys already exist, the autofill UI will only be possible with one RP ID and it's related origins (as you can only have one conditional request in flight). If you want to support that scenario, follow the guidance in the doc for an identifier first flow with backend lookup. Related Origins doesn't make passkeys for different RP IDs available in one selector / UI. It just allows WebAuthn to be called from origins that do not match the RP ID in the request. |
Beta Was this translation helpful? Give feedback.
In a greenfield environment, you should use a common RP ID as documented in that article.
In a brownfield environment where passkeys already exist, the autofill UI will only be possible with one RP ID and it's related origins (as you can only have one conditional request in flight). If you want to support that scenario, follow the guidance in the doc for an identifier first flow with backend lookup.
Related Origins doesn't make passkeys for different RP IDs available in one selector / UI. It just allows WebAuthn to be called from origins that do not match the RP ID in the request.