Comments (6)
Hi Justin,
I'm not sure if this is a bug in django-u2f or in the firefox addon. It's happening because the firefox isn't submitting the version
field as part of the registration request. I don't know if compliant implementations of u2f are required to submit the version or not.
from django-u2f.
Thank you for the rapid response, Gavin. I'm not an expert at reading specifications, but my cursory research indicates that version
may indeed be a required field: https://fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-javascript-api-v1.1-id-20160915.html#u2f-operations
I took the liberty of filing an issue in the U2F Firefox add-on repository in hopes of soliciting its author's opinion on the topic: #24
from django-u2f.
As an update to this issue, I just encountered the same error with Firefox Developer Edition 57.0b3, which includes preliminary support for U2F USB keys. I'm not sure what the spec dictates, but the python-u2flib-server
library seems to expect and require the protocol version.
@dainnilsson: Given that this appears to be more closely related to u2flib
than to django-u2f
, do you have any thoughts on this problem?
@jcjones: Many thanks for your hard work on supporting U2F in Firefox. If indeed Firefox is not including the protocol version (U2F_V2
) in the request, do you think it should be?
from django-u2f.
@justinmayer Huh! https://www.fidoalliance.org/specs/fido-u2f-v1.1-id-20160915/fido-u2f-javascript-api-v1.1-id-20160915.html#dictionary-u2fregisterrequest-members does show that the RegisterResponse WebIDL should have version
. So this is my bug.
dictionary RegisterResponse {
DOMString version;
DOMString registrationData;
DOMString clientData;
};
I've filed bug 1403279 to change this.
from django-u2f.
This bug will be fixed in the next beta of Firefox, 57 beta 5. Thanks for pinging me!
from django-u2f.
This has indeed been fixed in Firefox 57. Thank you, J.C., for all your work on supporting U2F in Firefox! 🎉
from django-u2f.
Related Issues (20)
- No module django_u2f HOT 2
- Issues with templating HOT 1
- {"errorCode":2} HOT 4
- Challenges should expire
- TemplateDoesNotExist: u2f/login.html
- Support channel binding HOT 2
- ImportError: cannot import name u2f_v2 HOT 2
- Unknown or missing requestId in response when running from HEAD or v0.2.0 HOT 1
- Custom URL paths with Django-U2F HOT 2
- Backup codes shouldn't be sufficient to enable MFA HOT 1
- ErrorCode 2 on Firefox when trying to register HOT 1
- login and verify_key should preserve 'next' redirects
- Enhance templates
- Improve error management in forms
- Ensure i18n is ready
- DeprecationWarning for verifier (upstream issue) HOT 1
- host argument for is_safe_url is changed to allowed_hosts for Django 2.1
- Attestation signature verification failed (testproj) HOT 4
- Integration with django-two-factor-auth and/or django-otp HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-u2f.