Re: [webauthn] Add `mediation` to `PublicKeyCredentialJSON` (#2124)

Step 1 of [Registering a New Credential](https://w3c.github.io/webauthn/#sctn-registering-a-new-credential) reads:

>1. Let _options_ be a new [PublicKeyCredentialCreationOptions](https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions) structure configured to the [Relying Party](https://w3c.github.io/webauthn/#relying-party)'s needs for the ceremony.

Indeed this is currently a bit obscured due to the inconsistency you note in the footnote (#2122), but PR #2125 would correct this to:

>1. Let _options_ be a new [CredentialCreationOptions](https://w3c.github.io/webappsec-credential-management/#dictdef-credentialcreationoptions) structure configured to the [Relying Party](https://pr-preview.s3.amazonaws.com/w3c/webauthn/pull/2125.html#relying-party)'s needs for the ceremony. Let pkOptions be options.[publicKey](https://pr-preview.s3.amazonaws.com/w3c/webauthn/pull/2125.html#dom-credentialcreationoptions-publickey).

So the RP should already know the value of _options_.`mediation`, because it was one of the input arguments the RP set at the beginning of the procedure. There is no need to feed it back to the RP in the output types.

-- 
GitHub Notification of comment by emlun
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/2124#issuecomment-2296403651 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 19 August 2024 12:00:11 UTC