You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sec 5.4.3 only lists id and displayName as required in the dictionary.
Should name be optional?
The CTAP spec states
This PublicKeyCredentialUserEntity data structure describes the user account to which the new public key credential will be associated at the RP. It contains an RP-specific user account identifier, (optionally) a user name, (optionally) a user display name, and (optionally) a URL pointing to an image (of a user avatar, for example). The authenticator associates the created public key credential with the account identifier, and MAY also associate any or all of the user name, user display name, and image data (pointed to by the URL, if any).
The CTAP example is:
var user = {
id: Uint8Array.from(window.atob("MIIBkzCCATigAwIBAjCCAZMwggE4oAMCAQIwggGTMII="), c=>c.charCodeAt(0)),
icon: "https://pics.acme.com/00/p/aBjjjpqPb.png",
name: "[email protected]",
displayName: "John P. Smith"
};
icon is not mentioned at all in this spec.
We need to clarify name and icon if we expect browsers to pass these through to the authenticator and or display these to the user. Otherwise they should be removed from CTAP or appropriate comments added that they won't be passed through the browser.
The text was updated successfully, but these errors were encountered:
"icon" is defined in PublicKeyCredentialEntity and is not marked as being required. Browsers can (and should) pass it through to CTAP when provided.
Therefore, I believe that WebAuthn and CTAP are aligned in their treatments of these values. If you concur with my analysis, I think that this issue can be closed. Thanks for sweating the details.
I agree with @selfissued. For the record, whether these fields should be required or optional was recently discussed in #666, starting here: #666 (comment) . The conclusion of that discussion was (#666 (comment)) that changing that would be a breaking change which we shouldn't do at this time.
Sec 5.4 lists id, displayName, and name
Sec 5.4.3 only lists id and displayName as required in the dictionary.
Should name be optional?
The CTAP spec states
This PublicKeyCredentialUserEntity data structure describes the user account to which the new public key credential will be associated at the RP. It contains an RP-specific user account identifier, (optionally) a user name, (optionally) a user display name, and (optionally) a URL pointing to an image (of a user avatar, for example). The authenticator associates the created public key credential with the account identifier, and MAY also associate any or all of the user name, user display name, and image data (pointed to by the URL, if any).
The CTAP example is:
var user = {
id: Uint8Array.from(window.atob("MIIBkzCCATigAwIBAjCCAZMwggE4oAMCAQIwggGTMII="), c=>c.charCodeAt(0)),
icon: "https://pics.acme.com/00/p/aBjjjpqPb.png",
name: "[email protected]",
displayName: "John P. Smith"
};
icon is not mentioned at all in this spec.
We need to clarify name and icon if we expect browsers to pass these through to the authenticator and or display these to the user. Otherwise they should be removed from CTAP or appropriate comments added that they won't be passed through the browser.
The text was updated successfully, but these errors were encountered: