Skip to content

Commit

Permalink
fix(protocol): display name omitted incorrectly
Browse files Browse the repository at this point in the history
This fixes an issue where the displayName value for a user entity was omitted in error. See https://www.w3.org/TR/webauthn-3/#dom-publickeycredentialcreationoptions-user and https://www.w3.org/TR/webauthn-3/#dictdef-publickeycredentialuserentity (and the same links for level 2).
  • Loading branch information
james-d-elliott committed Nov 28, 2023
1 parent ce8dd9d commit a896b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type UserEntity struct {
// A human-palatable name for the user account, intended only for display.
// For example, "Alex P. Müller" or "田中 倫". The Relying Party SHOULD let
// the user choose this, and SHOULD NOT restrict the choice more than necessary.
DisplayName string `json:"displayName,omitempty"`
DisplayName string `json:"displayName"`

// ID is the user handle of the user account entity. To ensure secure operation,
// authentication and authorization decisions MUST be made on the basis of this id
Expand Down

0 comments on commit a896b68

Please sign in to comment.