mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.13k stars 22.45k forks source link

[WebAuthn] Enable Cross-Origin iframes via Feature-Policy #28848

Closed bsmth closed 11 months ago

bsmth commented 1 year ago

Acceptance Criteria

For folks helping with Firefox related documentation

Features to document

publickey-credentials-get in Permissions-Policy allows for cross-origin credentials.get() which is currently only possible in Chrome. This is similar to D42445 but uses the correct name from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy#directives

And:

In level two we supported cross-origin assertions (when allowed by the top-level) but omitted cross-origin creation because there wasn't anyone with a use-case.

We believe this will be useful in a payments context. When making a payment there are three (or four) parties involved. The customer seeks to authorise the payment. They are on the merchant's site. A bank needs to approve the payment, and there might be a payment processor between the merchant and the bank. If the bank can make a cross-origin assertion on the merchant page then that can greatly improve their confidence that the transaction is genuine. However, that assumes that the bank has a credential for the user, and that would be aided by being able to enroll users inline. Thus the desire for cross-origin creation.

Related Gecko bugs

Other

hamishwillee commented 1 year ago

FYI All the chat on the bug just means Permissions-Policy: publickey-credentials-get is supported as Feature-Policy: publickey-credentials-get. The stuff about creation means that nothing changed for Permissions-Policy: publickey-credentials-create.

Statuss

hamishwillee commented 12 months ago

Note, the other linked BCD entry https://github.com/mdn/browser-compat-data/pull/20729 fell out of this issue, but is non-blocking.