-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Gitea Oauth not working on Linux #1492
Comments
similar to #1408 |
Maybe this helps: #1062 as mentioned here: #145 (comment) |
I thought #1426 already support this. |
Ah, ok. I'm running it on a sub path "https://example.com/git" and the URL that opens is https://example.com/login/oauth/authorize?..." - So I had to use the mentioned config... (I'm actual on windows, not Linux) |
@bohni Could you show your conig? |
My -working - config ist
When I remove this section, the URL that opens in the Browser is
This URL is missing the required subpath Edit 2024-03-14: I'm running Gitea behind Apache httpd: see Apache HTTPD with a sub-path |
If your git version is older than 2.41.0, it won't pass the WWW-Authenticate header to the credential helper and therefore won't autodetect Gitea. Either configure endpoints manually or update git executable. |
@bohni there might be a hint in the Remarks section on the respective URI constructor. Seems the well-known paths need a respective touch-up. |
A solution will require the following steps:
|
Version
2.4.1
Operating system
Linux
OS version or distribution
Ubuntu 22.04 fresh install
Git hosting provider(s)
Other - please describe below
Other hosting provider
Gitea
(Azure DevOps only) What format is your remote URL?
None
Can you access the remote repository directly in the browser?
Yes, I can access the repository
Expected behavior
Prompt for loging
Actual behavior
Enter basic credentials for 'https://....'
Logs
The text was updated successfully, but these errors were encountered: