Support GSSAPI on Linux for authentication #13555

Closed
opened 2025-11-02 10:45:54 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @sad75 on GitHub (Oct 1, 2024).

Feature Description

We are running our Gitea server on Linux, while our developers are using Windows desktops. We want them to be able to use Git with integrated Windows authentication, which primarily relies on GSSAPI (Kerberos).

We have successfully implemented this authentication scheme using Apache HTTPD as a reverse proxy. The configuration makes use of ENABLE_REVERSE_PROXY_AUTHENTICATION, which has been very convenient for us. However, we have encountered several issues with API URLs. The API extensively utilizes personal tokens, so GSSAPI authentication must not be used for API URLs. Since ENABLE_REVERSE_PROXY_AUTHENTICATION is a global setting, bypassing GSSAPI authentication for the API creates problems because the user is not defined in that context. This breaks NuGet registry integration with Visual Studio, for example.

It would be much simpler if Gitea could support GSSAPI natively.

Screenshots

No response

Originally created by @sad75 on GitHub (Oct 1, 2024). ### Feature Description We are running our Gitea server on Linux, while our developers are using Windows desktops. We want them to be able to use Git with integrated Windows authentication, which primarily relies on GSSAPI (Kerberos). We have successfully implemented this authentication scheme using Apache HTTPD as a reverse proxy. The configuration makes use of `ENABLE_REVERSE_PROXY_AUTHENTICATION`, which has been very convenient for us. However, we have encountered several issues with API URLs. The API extensively utilizes personal tokens, so GSSAPI authentication must not be used for API URLs. Since `ENABLE_REVERSE_PROXY_AUTHENTICATION` is a global setting, bypassing GSSAPI authentication for the API creates problems because the user is not defined in that context. This breaks NuGet registry integration with Visual Studio, for example. It would be much simpler if Gitea could support GSSAPI natively. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:45:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13555