Possible to add U2F support ?

General discussion and chat (archived)
dark_moon

Possible to add U2F support ?

Unread post by dark_moon » 2017-10-13, 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
Moonbather
Moonbather
Posts: 52
Joined: 2015-11-30, 05:31
Location: San Francisco, CA

Re: Possible to add U2F support ?

Unread post by asimperson » 2017-11-20, 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: 35479
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Possible to add U2F support ?

Unread post by Moonchild » 2017-11-20, 09:02

Patches for this enhancement are welcome.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

dark_moon

Re: Possible to add U2F support ?

Unread post by dark_moon » 2017-11-24, 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
Moonbather
Moonbather
Posts: 52
Joined: 2015-11-30, 05:31
Location: San Francisco, CA

Re: Possible to add U2F support ?

Unread post by asimperson » 2017-11-28, 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.

Locked