Handle timed out FIDO reset on older keys

This commit is contained in:
Dain Nilsson 2024-09-04 11:04:13 +02:00
parent 94cde7398c
commit ef3a663b88
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -186,8 +186,13 @@ class Ctap2Node(RpcNode):
try:
self.ctap.reset(event=event)
except CtapError as e:
if e.code == CtapError.ERR.USER_ACTION_TIMEOUT:
if e.code in (
# Different keys respond with different errors here
CtapError.ERR.USER_ACTION_TIMEOUT,
CtapError.ERR.ACTION_TIMEOUT,
):
raise InactivityException()
raise
self._info = self.ctap.get_info()
self._token = None
return RpcResponse(dict(), ["device_info"])