Possible to add U2F support ?

For the more technical/geeky chat subjects!

Moderator: satrow

dark_moon

Possible to add U2F support ?

Postby dark_moon » Fri, 13 Oct 2017, 15:26

Firefox 57 add https://en.wikipedia.org/wiki/Universal_2nd_Factor and a lot websites support that: http://www.dongleauth.info/
So it would be nice if Pale Moon can add that too, so we can use that with for example the new Nitrokey FIDO U2F.

asimperson
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: Mon, 30 Nov 2015, 05:31
Location: San Francisco, CA

Re: Possible to add U2F support ?

Postby asimperson » Mon, 20 Nov 2017, 05:25

I've gotten around this modifying the "U2F Support Add-On" native extensions for Firefox. Would prefer this functionality get baked in, though.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 20996
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Possible to add U2F support ?

Postby Moonchild » Mon, 20 Nov 2017, 09:02

Patches for this enhancement are welcome.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

dark_moon

Re: Possible to add U2F support ?

Postby dark_moon » Fri, 24 Nov 2017, 09:47

asimperson wrote:I've gotten around this modifying the "U2F Support Add-On" native extensions for Firefox.

What modification did you make?

asimperson
Hobby Astronomer
Hobby Astronomer
Posts: 29
Joined: Mon, 30 Nov 2015, 05:31
Location: San Francisco, CA

Re: Possible to add U2F support ?

Postby asimperson » Tue, 28 Nov 2017, 07:36

This is the GitHub repo for the extension: https://github.com/prefiks/u2f4moz

I added the following entry to the install.rdf:

Code: Select all

          <em:targetApplication>
            <Description>
              <em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
              <em:minVersion>27.1.0b1</em:minVersion>
              <em:maxVersion>27.*</em:maxVersion>
            </Description>
          </em:targetApplication>
         


And modified the "engines" section of packages.json to:

Code: Select all

  "engines": {
      "firefox": ">=38.0a1",
      "{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}": ">=27.1.0b1 <=27.*"
  },
 


It doesn't appear I added anything else. It looks like instead of building the native bits I downloaded the XPI off AMO, modified the package, and then rezipped it. I need to get around to sending the maintainer a pull request.


Return to “Technical chat”

Who is online

Users browsing this forum: No registered users and 2 guests