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

WebAuthn: Allow for credential creation in a cross-origin iframe #964

Closed
stephenmcgruer opened this issue Jan 17, 2024 · 1 comment
Closed

Comments

@stephenmcgruer
Copy link

Request for Mozilla Position on an Emerging Web Specification

Other information

Hello Mozilla friends :)

I'm requested a formal standards position on the ability to create a credential in a cross-origin iframe in WebAuthn. This was added to the spec in w3c/webauthn#1801, after having been discussed in w3c/webauthn#1656 as well as in WebAuthn Working Group meetings.

This feature allows web developers to create WebAuthn credentials (that is, "publickey" credentials, aka passkeys) in cross-origin iframes. This will allow developers to create passkeys in embedded scenarios, such as after an identity step-up flow where the Relying Party is providing a federated identity experience. Two conditions are required for this new ability, for security reasons:

  1. The iframe has a publickey-credentials-create-feature permission policy.
  2. The iframe has transient user activation.
@jschanck
Copy link

jschanck commented Jan 26, 2024

This seems useful. It is common to prompt a user to create a credential on their current device (e.g. their laptop) after they have asserted a credential from a secondary device (e.g. their phone). If the initial assertion happens in a cross-origin iframe (which we currently allow), then the subsequent creation will also happen in a cross-origin iframe. The permission defined here enables this use case.

Suggest positive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants