oauth2-proxy: Gitea auth provider fails with 7.2.1
Expected Behavior
The Gitea auth provider should work as described in https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider#gitea-auth-provider.
Current Behavior
Since version 7.2.1 Gitea auth provider fails:
[2022/05/01 19:00:37] [internal_util.go:74] token validation request failed: status 404 - 404 page not found
[2022/05/01 19:00:37] [internal_util.go:69] 404 GET https://git.example.com/api/v1 404 page not found
Possible Solution
Downgrading to 7.2.0 makes login work again.
Most probably related to #1433.
Steps to Reproduce (for bugs)
There is no step-by-step guide. Just use the Gitlab auth provider as documented.
Context
Login with Gitea auth provider.
Your Environment
Version used:
- Gitea 1.16.6
- Oauth2 Proxy 7.2.1
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 17 (6 by maintainers)
Commits related to this issue
- #1636: fixed. Special ValidateURLspecial field was added for Gitea provider. — committed to delbato/oauth2-proxy by deleted user a year ago
I ran into this problem as well with 7.4.0
Instead of downgrading, I patched it with https://github.com/oauth2-proxy/oauth2-proxy/pull/1996, which seems to work as a hot fix
The next release is currently prepared 👍🏼 I’ll try to get the fix #2194 into the release.
I can confirm this is still broken on 7.4.0 as well.
Downgrade to 7.2.0 resolved the issue. I will be using that version until this issue is fixed.
Just ran into this issue as well, I had to downgrade to 7.2.0