Skip to content

Commit

Permalink
Merge pull request #507 from Nitrokey/ctap21
Browse files Browse the repository at this point in the history
fido2: add permissions for list-creds with pinV2
  • Loading branch information
daringer authored Mar 1, 2024
2 parents 6f6b041 + b18fae6 commit e1dfb3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pynitrokey/fido2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ def cred_mgmt(self, serial: str, pin: str) -> CredentialManagement:
client_pin = ClientPin(device.ctap2)

try:
client_token = client_pin.get_pin_token(pin)
client_token = client_pin.get_pin_token(
pin, permissions=ClientPin.PERMISSION.CREDENTIAL_MGMT
)
except CtapError as error:
if error.code == CtapError.ERR.PIN_NOT_SET:
local_critical("Please set a pin in order to manage credentials")
Expand Down

0 comments on commit e1dfb3f

Please sign in to comment.