-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[webauthn-lib] App broken after composer update #88
Comments
Hello @it-spiderman, I am sorry to read that you have an issue with the new minor version. Is it possible to have additional information such as the credential options, response or pk source? Thanks |
Hello @Spomky, This only occurs on authentication step - key registration works fine. `[1d4ed64ca2b16c9cd768826a] /wmf-2fa/index.php?title=Special:UserLogin&returnto=Main+Page InvalidArgumentException from line 37 of /var/www/html/wmf-2fa/extensions/WebAuthn/vendor/web-auth/cose-lib/src/Algorithm/Signature/ECDSA/ECSignature.php: Invalid signature length. Backtrace: #0 /var/www/html/wmf-2fa/extensions/WebAuthn/vendor/web-auth/cose-lib/src/Algorithm/Signature/ECDSA/ES256.php(37): Cose\Algorithm\Signature\ECDSA\ECSignature::toAsn1(string, integer) Thank you for your support |
Thaks for the details. |
Correct, Thank you! |
That's great. Let me a few moment to fix it. Please note that there is also a bug in the JS script in the example (see #87): the If you use the example for your JS code, you will have an issue. If you use another JS library that is fully compliant with the specification you should not have any trouble. You will find scripts that work in demo.zip. I let this issue opened until you correctly upgraded your application. |
Should be fixed in v2.1.5 now. I also updated the JS script in the example. Don’t forget to update it too if you are using it. |
Everything is working, thank you very much |
That's a good news. Sorry for the inconvenient. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Our implementation of WebAuthn using webauthn-lib got broken after running composer update.
We pinpointed the issue to the update of https://github.com/web-auth/cose-lib from 2.0.3 to 2.1.
Problem occurs here https://github.com/web-auth/cose-lib, seems that our key retrurns signature of length 71, while expected is 64. (Using FIDO2 usb key)
Since the signature handling is done compeltely by the library, we are not sure how to deal with this issue.
Temporarely we worked around the issue by manually requiring 2.0.3 in main composer.json.
What are the recommendations for resolving this?
Thank you
The text was updated successfully, but these errors were encountered: