Skip to content

Commit

Permalink
fido2: add permissions for list-creds with pinV2
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Mar 1, 2024
1 parent 6f6b041 commit b18fae6
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 b18fae6

Please sign in to comment.