-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Allow user name suffix for OAuth sources #7014
Labels
topic/authentication
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Comments
should be handled around here: gitea/routers/web/user/auth.go Line 652 in 3a6edd3
after #16594 got in you have the LoginSource souce to check option against |
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Feb 21, 2025
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7003 Some endpoints (`/api/v1/repos/*/*/raw`, `/api/v1/repos/*/*/media`, ...; anything that uses both `context.ReferencesGitRepo()` and `context.RepoRefForAPI` really) returned a 500 when the repository was completely empty. This resulted in some confusion in datalad/datalad-usage-dashboard#47 because the same request for a non-existent file in a repository could sometimes generate a 404 and sometimes a 500, depending on if the git repository is initialized at all or not. Returning a 404 seems more appropriate here, since this isn't an unexpected internal error, but just another way of not finding the requested data. Co-authored-by: Matthias Riße <[email protected]> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7014 Reviewed-by: Gusted <[email protected]> Co-authored-by: forgejo-backport-action <[email protected]> Co-committed-by: forgejo-backport-action <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
topic/authentication
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Description
At our Gitea instance, we would like to introduce a second authentication source next to LDAP, namely Github. However, namespace-wise, we would like to give preference to our current and future LDAP users.
Can Gitea automatically add a suffix to a user name when this user registeres with a specific authentication provider, e.g. that the Github user
janedoe
becomesjanedoe-guest
orjanedoe-github
?Debian's GitLab supports something like that for external users who are not Debian developers: https://signup.salsa.debian.org/register/guest/
The text was updated successfully, but these errors were encountered: