U2F/FIDO Token not supported in Safari browser, despite API being present #6749

Closed
opened 2025-11-02 07:05:29 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @cortices on GitHub (Jan 25, 2021).

  • Gitea version (or commit ref): 1.14.0+dev-598-g4acb499f3 (Docker)
  • Git version: 2.30.0
  • Operating system: Gitea under Docker (gitea/gitea, tag: latest), User browser Safari 14.0 under macOS 10.15.7

Gitea docker is behind an nginx reverse proxy on HTTPS only (not accessible over HTTP), on a dedicated subdomain.

  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

Safari 14 supports U2F keys (see https://caniuse.com/u2f), but Gitea's U2F plugin doesn't allow it, and says it is unsupported.

I can add my keys in Firefox or Chrome, and other websites can use the same keys in Safari.

Screenshots

image
Originally created by @cortices on GitHub (Jan 25, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.0+dev-598-g4acb499f3 (Docker) - Git version: 2.30.0 - Operating system: Gitea under Docker (gitea/gitea, tag: latest), User browser Safari 14.0 under macOS 10.15.7 <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> Gitea docker is behind an nginx reverse proxy on HTTPS only (not accessible over HTTP), on a dedicated subdomain. <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description Safari 14 supports U2F keys (see https://caniuse.com/u2f), but Gitea's U2F plugin doesn't allow it, and says it is unsupported. I can add my keys in Firefox or Chrome, and other websites can use the same keys in Safari. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> <img width="776" alt="image" src="https://user-images.githubusercontent.com/1159183/105701484-7934cc80-5f5e-11eb-8ac0-66f4100c5e1d.png">
GiteaMirror added the type/bug label 2025-11-02 07:05:29 -06:00
Author
Owner

@cortices commented on GitHub (Jan 25, 2021):

So this is a result of the old google u2f API being dropped by Safari in favour of WebAuthn and Gitea not being on WebAuthn yet, as discussed & worked on here https://github.com/go-gitea/gitea/pull/9451

I will see if I can get the time to look at contributing to @e3b0c442's work

@cortices commented on GitHub (Jan 25, 2021): So this is a result of the old google u2f API being dropped by Safari in favour of WebAuthn and Gitea not being on WebAuthn yet, as discussed & worked on here https://github.com/go-gitea/gitea/pull/9451 I will see if I can get the time to look at contributing to @e3b0c442's work
Author
Owner

@6543 commented on GitHub (Jan 14, 2022):

#17957

@6543 commented on GitHub (Jan 14, 2022): #17957
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6749