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/FIDO does not work with Vivaldi browser #16666

Closed
1 of 5 tasks
beedaddy opened this issue Aug 11, 2021 · 4 comments
Closed
1 of 5 tasks

U2F/FIDO does not work with Vivaldi browser #16666

beedaddy opened this issue Aug 11, 2021 · 4 comments

Comments

@beedaddy
Copy link

beedaddy commented Aug 11, 2021

  • Gitea version (or commit ref): 1.14.5
  • Git version: 2.20.1
  • Operating system: Debian 10 (using gitea download with systemd)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [X ] No (didn't receive any account activation mail)
  • Log gist:
    • There's nothing u2f-related in the debug-log.

Description

Using u2f with Firefox browser on my gitea instance works very well. u2f with Vivaldi on other sites also works. But using Vivaldi on my gitea instance doesn't work at all. I tried to de-register and re-register my U2F device (Nitrokey FIDO2) but registering the device is not possible. Gitea tells me that my browser doesn't support U2F (which is not true).

Screenshots

Bildschirmfoto von 2021-08-11 13-02-07

@lafriks
Copy link
Member

lafriks commented Aug 11, 2021

Can you check in Vivaldi browser in JavaScript console what does this return:

window.u2f

and

window.u2f.sign

and also

navigator.userAgent

@beedaddy
Copy link
Author

I hope I did this right. Here are the results:

window.u2f

undefined

window.u2f.sign

Uncaught TypeError: Cannot read property 'sign' of undefined
    at <anonymous>:1:12

navigator.userAgent

"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.134 Safari/537.36"

@Degine
Copy link

Degine commented Aug 31, 2021

Update: As of today 2021-09-02 this problem has been resolved for me. I do not know what has changed. I tried 2 different computers with success.

Hi,

I just wanted to add that I also have this issue with tutanota.com. U2F works for tutanota.com using Firefox.
U2F does work in Vivaldi for Github.com and other websites.

For me the output for window.u2f, window.u2f.sign and navigator.userAgent are identical to beedaddy's
(i.e. my operating system is also debian-based Linux)

Using the console at tutanota.com yields:

u2fApi.getApiVersion
crbug/1173575, non-JS module files deprecated.
(anonymous) @ (index):7375
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('chrome-extension://kmendfapggjehodndflmmgagdbamhnfd') does not match the recipient window's origin ('null').
(anonymous) @ u2f-api.js:535
u2fSupport false

@lunny lunny mentioned this issue Dec 15, 2021
3 tasks
@6543
Copy link
Member

6543 commented Jan 14, 2022

#17957

@6543 6543 closed this as completed Jan 14, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants