[x]):When I upgrade my docker container to the newest gitea release (gitea/gitea:latest) the yubikey authentication attempt causes the error attached. When I downgrade the gitea to 1.11.4 (gitea/gitea:1.11.4) the yubikey authentication works without issues.
Can Confirm for: yubikey with linux(5.6.3) + firefox 75.0 (64-bit)
Solo U2F also does not work on master branch on Linux + Firefox
Almost the same problem.
But here comes only a very short U2F window (<1sec) and then immediately a fallback to the configured TOTP method.
configuration:
podman (Fedora 32) with gitea/gitea:latest
Browser: Chrome and Firefox
( gitea/gitea:1.11.4 runs without problems)
https://github.com/grantila/u2f-api/issues/21
https://github.com/Yubico/libu2f-host/issues/130
The world has generally decided to move towards WebAuthn instead of direct protocol implementations, and so we need to do the same. The library we're using can not do that and seems abandoned.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API
https://webauthn.bin.coffee/
Ping @jonasfranz
I've looked into this problem. It seems that $.post(...).success()does not work anymore. The u2f api javascript library we're using is outdated and the new version is not backward-compatible to our implementation. I think it makes no sense to stay with u2f since webauthn is the de-facto new standard. In a first step we should roll out a hot fix regarding the jquery stuff.