Re: [webauthn] PublicKeyCredentialUserEntity difference between name, displayName and id not clear

@emlun No. User.id was added by Google and contains a binary lookup key for their user database. It is not human readable and not intended to be. 

As I understand it, Name is supposed to be the login name as used traditionally.  Display Name is just a pretty printing name.

In an authenticator with a display or in the case of multiple accounts in a first factor situation (see CTAP), we need a unique, printable identifier to show to the user that unique identifies this credential (ie, the traditional user name which is instantly recognizable to the user). The displayName could be the pretty printing name of this account.

For example, if a user has multiple accounts on gmail:

```
{
    id : "00000001",
    name:  "john.doe.work@gmail.com",
    displayName:  "John Doe",
},
{
    id : "00000002",
    name:  "john.doe.private@gmail.com",
    displayName:  "John Doe",
}
```

User.id is a relying party specific field that is basically a database lookup field.

None of this is obvious from the current language.

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

Received on Thursday, 12 October 2017 09:29:35 UTC