Giter Club home page Giter Club logo

Comments (6)

gavinwahl avatar gavinwahl commented on August 9, 2024

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.

justinmayer avatar justinmayer commented on August 9, 2024

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.

justinmayer avatar justinmayer commented on August 9, 2024

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.

jcjones avatar jcjones commented on August 9, 2024

@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.

jcjones avatar jcjones commented on August 9, 2024

This bug will be fixed in the next beta of Firefox, 57 beta 5. Thanks for pinging me!

from django-u2f.

justinmayer avatar justinmayer commented on August 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.