Bug: Users authenticated via proxy-auth can change username #1008

Closed
opened 2025-11-02 03:45:05 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @MTecknology on GitHub (Aug 27, 2017).

In the current version of gitea, it is possible for users authenticated via proxy-auth to edit their username. I'm not able to find a config option to disable this. In cases where proxy authentication is being used, this allows users to change their username and orphan their repositories because a new userid will be immediately created with their correct user.

Originally created by @MTecknology on GitHub (Aug 27, 2017). In the current version of gitea, it is possible for users authenticated via proxy-auth to edit their username. I'm not able to find a config option to disable this. In cases where proxy authentication is being used, this allows users to change their username and orphan their repositories because a new userid will be immediately created with their correct user.
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 03:45:05 -06:00
Author
Owner

@bkcsoft commented on GitHub (Aug 27, 2017):

I think in the case of proxy auth (or oauth/openid) we should disallow username changes.

@bkcsoft commented on GitHub (Aug 27, 2017): I think in the case of proxy auth (or oauth/openid) we should disallow username changes.
Author
Owner

@lafriks commented on GitHub (Aug 28, 2017):

Only local users are allowed to change username and I don't think that somehow affects linked openid etc authorization that is handled otherwise and just links to account and are not authorization source

@lafriks commented on GitHub (Aug 28, 2017): Only local users are allowed to change username and I don't think that somehow affects linked openid etc authorization that is handled otherwise and just links to account and are not authorization source
Author
Owner

@stale[bot] commented on GitHub (Feb 13, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 13, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@ptman commented on GitHub (Feb 13, 2019):

Yes, this is a problem

@ptman commented on GitHub (Feb 13, 2019): Yes, this is a problem
Author
Owner

@stale[bot] commented on GitHub (Apr 14, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Apr 14, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1008