-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
Description
Problem noticed on attempt to update to newest Gitea version 1.24.6.
https://github.com/go-gitea/gitea/releases/tag/v1.24.6
When OAuth is disabled with [oauth2].ENABLED=false in app.ini, then Git Credential Manager tries to open non-existent URL http://<...>/login/oauth/authorize?<...> in browser.
Some minimal debugging shows that there is interplay between
gitea/routers/web/repo/githttp.go
Line 148 in 08c6ea6
| ctx.Resp.Header().Set("WWW-Authenticate", `Basic realm="Gitea"`) |
In older versions of Gitea there was Www-Authenticate: Basic realm=".", so Git Credential Manager worked correctly.
gitea/routers/web/repo/http.go
Line 162 in d424357
| ctx.Resp.Header().Set("WWW-Authenticate", "Basic realm=\".\"") |
I wonder, how can this be somehow worked around.
Gitea Version
1.24.6
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
git version 2.51.0.windows.1
Operating System
Microsoft Windows [Version 10.0.17763.7314]
How are you running Gitea?
Used package from https://github.com/go-gitea/gitea/releases/tag/v1.24.6
Run with commandline in directory C:\gitea with custom configuration in C:\gitea\custom\conf\app.ini
With
[oauth2]
ENABLED = false
Database
SQLite