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
The field names in PublicKeyCredentialEntity and its descendants are unnecessarily confusing. In particular, PublicKeyCredentialEntity.name means different things when inherited by PublicKeyCredentialRpEntity vs PublicKeyCredentialUserEntity - in the former case it's a human-friendly display name, in the latter case it's a unique identifier for a user account. I suggest eliminating that ambiguity by renaming the fields:
Rename rp.name to rp.displayName
Rename user.id to user.handle
Rename user.name to user.id
The hierarchy would then look something like this:
I haven't lifted id up to the parent here because it will have different descriptions in the child types. The authenticator shouldn't give out a PublicKeyCredentialUserEntity without first verifying the user, so it shouldn't hurt to make all three fields required, right?
I think this would improve clarity a lot, but it would be a breaking change. What do people think?
The text was updated successfully, but these errors were encountered:
This is split out from #622.
The field names in
PublicKeyCredentialEntity
and its descendants are unnecessarily confusing. In particular,PublicKeyCredentialEntity.name
means different things when inherited byPublicKeyCredentialRpEntity
vsPublicKeyCredentialUserEntity
- in the former case it's a human-friendly display name, in the latter case it's a unique identifier for a user account. I suggest eliminating that ambiguity by renaming the fields:rp.name
torp.displayName
user.id
touser.handle
user.name
touser.id
The hierarchy would then look something like this:
I haven't lifted
id
up to the parent here because it will have different descriptions in the child types. The authenticator shouldn't give out aPublicKeyCredentialUserEntity
without first verifying the user, so it shouldn't hurt to make all three fields required, right?I think this would improve clarity a lot, but it would be a breaking change. What do people think?
The text was updated successfully, but these errors were encountered: