Re: [webauthn] "The user handle MUST NOT be empty, though it MAY be null" - but only in responses? (#1598)

The thought came to me that, during attestation, if `user.id` is null while `authenticatorSelection.residentKey` is set to `"required"`, [`authenticatorMakeCredential`](https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-op-make-cred) may fail in step 7.4.4 when the authenticator attempts to store `credentialSource` in `rp.id, userHandle`:

> 4. If requireResidentKey is true or the authenticator chooses to create a client-side discoverable public key credential source:
>     1. Let credentialId be a new credential id.
>     2. Set credentialSource.id to credentialId.
>     3. Let credentials be this authenticator’s credentials map.
>     4. **Set credentials[(rpEntity.id, userHandle)] to credentialSource.**

Is this a legitimate issue if `user.id` is allowed to remain nullable?

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


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

Received on Wednesday, 21 April 2021 19:43:27 UTC