WindowsClient implementation of native Webauthn API not working in 32-bit Windows 10
Microsoft Windows [Version 10.0.19043.1023] (c) Microsoft Corporation. All rights reserved.
E:\WebAuthN\python-fido2\examples>py resident_key.py Traceback (most recent call last): File "E:\Users\C C C\AppData\Local\Programs\Python\Python39-32\lib\site-packages\fido2\client.py", line 798, in make_credential result = self.api.make_credential( File "E:\Users\C C C\AppData\Local\Programs\Python\Python39-32\lib\site-packages\fido2\win_api.py", line 726, in make_credential WEBAUTHN.WebAuthNAuthenticatorMakeCredential( File "_ctypes/callproc.c", line 997, in GetResult OSError: [WinError -2147023170] The remote procedure call failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\WebAuthN\python-fido2\examples\resident_key.py", line 102, in
E:\WebAuthN\python-fido2\examples>
How to reproduce:
- Fresh or existing installation of Windows 10 21H1 32-bit (tested on Pro edition)
- Install latest python 3.9.5 32-bit from python.org
- pip install fido2
- run examples that implemented WindowsClient e.g. py resident_key.py that is supposed to not require running as admin
If running as admin, Fido2Client is used and working in 32-bit Windows.
If running as non-admin, WindowsClient is used and not working in 32-bit Windows.
Same error is faced with other examples that uses WindowsClient (credential.py and verify_attestation.py) when running as non-admin in 32-bit Windows.