Skip to content
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

u2f support in Firefox #211

Closed
voldemortensen opened this issue Jan 23, 2018 · 12 comments
Closed

u2f support in Firefox #211

voldemortensen opened this issue Jan 23, 2018 · 12 comments
Labels

Comments

@voldemortensen
Copy link
Collaborator

Firefox 57 included the option to turn on u2f support. It would be nice to update our detection to allow Firefox users to use u2f.

@voldemortensen
Copy link
Collaborator Author

A few more details, I was able to register a key and activate u2f from Firefox, however logging in does not detect the key.

@kasparsd
Copy link
Collaborator

Thanks for reporting the issue @voldemortensen! Could you please paste the browser console output when you login?

@voldemortensen
Copy link
Collaborator Author

Yep, doing some digging and then I'll provide what I can. It doesn't help that Firefox keeps crashing :(

@voldemortensen
Copy link
Collaborator Author

Alright, here's the error TypeError: setting getter-only property "u2f" that comes from this line: https://github.com/georgestephanis/two-factor/blob/master/includes/Google/u2f-api.js#L17

The issue is that the Google u2f library does funky things. Two other projects I was able to find have/had the same issues.
MyEtherWallet/etherwallet#1122
nextcloud/twofactor_u2f#74

@tayvano
Copy link

tayvano commented Feb 5, 2018

Supposedly https://www.npmjs.com/package/u2f-api fixes it. We haven't had the chance to fully debug and test across all browsers yet tho and haven't made the change yet

@voldemortensen
Copy link
Collaborator Author

Thanks for the input @tayvano, definitely appreciated. I've done minimal testing but haven't been able to get anything to work yet. I'm still lost as to why I can register a key just fine, but can't login with it.

@gstammw
Copy link

gstammw commented Jun 11, 2018

As with Firefox 60 there are no problems anymore and U2F works like a charm.
Please remove the "your browser is not supported" message for Firefox >= 60.

@kasparsd
Copy link
Collaborator

I've confirmed the U2F to be working correctly with Yubikey NEO and Firefox 61.0 (64-bit) on MacOS 10.13.5 as long as the feature flag is enabled.

@alternativesurfer
Copy link

U2F worked within Firefox 63.0.3 to enroll (Yubikey Security Key) however now when I go to sign in:
I see the prompt to insert the key.
I insert the key and see it activate (flashing).
When I tap it, nothing occurs and I must fall back on to TOTP in order to sign in.

@onliniak
Copy link

onliniak commented Feb 5, 2019

Yubikey 4 | Firefox 65 | Arch Linux 4.20.2 | here and works.

PS: Try hold for about 3 seconds, not just tap. Yubikey Personalization detect key ?

@kasparsd
Copy link
Collaborator

Re-opening since U2F is no longer working with Firefox 67.0.

@kasparsd kasparsd reopened this Apr 22, 2019
@kasparsd
Copy link
Collaborator

I've opened #283 to address the TypeError: setting getter-only property "u2f" issue.

#284 fixes the issue with Firefox being reported as unsupported "FIDO U2F is not supported in your web browser. Try using Google Chrome.".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants