Skip to content

Commit

Permalink
Fix args to CredentialManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Oct 9, 2024
1 parent 0c50d92 commit 99e0491
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fido2/ctap2/credman.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def delete_cred(self, cred_id: PublicKeyCredentialDescriptor) -> None:
:param cred_id: The PublicKeyCredentialDescriptor of the credential to delete.
"""
logger.debug(f"Deleting credential with ID: {cred_id['id'].hex()}")
cred_id = PublicKeyCredentialDescriptor.from_dict(cred_id)
logger.debug(f"Deleting credential with ID: {cred_id}")
self._call(
CredentialManagement.CMD.DELETE_CREDENTIAL,
{CredentialManagement.PARAM.CREDENTIAL_ID: cred_id},
Expand All @@ -237,6 +238,7 @@ def update_user_info(
if not CredentialManagement.is_update_supported(self.ctap.info):
raise ValueError("Authenticator does not support update_user_info")

cred_id = PublicKeyCredentialDescriptor.from_dict(cred_id)
logger.debug(f"Updating credential: {cred_id} with user info: {user_info}")
self._call(
CredentialManagement.CMD.UPDATE_USER_INFO,
Expand Down

0 comments on commit 99e0491

Please sign in to comment.