Skip to content

Commit

Permalink
Fix displayName in Fido2Client.make_credential
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Oct 9, 2024
1 parent dc315ba commit cf209d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fido2/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def register_begin(
CredentialCreationOptions(
PublicKeyCredentialCreationOptions(
self.rp,
user,
PublicKeyCredentialUserEntity.from_dict(user),
challenge,
self.allowed_algorithms,
self.timeout,
Expand Down
2 changes: 1 addition & 1 deletion fido2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _to_cbor(self) -> CborType:
elif isinstance(value, list) and all(hasattr(v, "_to_cbor") for v in value):
value = [v._to_cbor() for v in value]
if value is not None:
data[f.name] = value
data[self._get_field_key(f)] = value
return data


Expand Down

0 comments on commit cf209d7

Please sign in to comment.