User system refactor #10994

Open
opened 2025-11-02 09:24:19 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @lunny on GitHub (Jun 8, 2023).

Current Status

  • On the user table, there are two columns LoginType and LoginSource which will decide how to authenticate the user, so a user's login type could be one of NoType , Plain, LDAP, SMTP, PAM, DLDAP, OAuth2, SSPI

When login, first get the database record according to user's input login name on user table. If the record exist, then check user's login type. If login type supports password check, just check password from source.
If the user doesn't exist, then check all possible login sources one by one with give login name and password.

The input username and password will be checked. For some login sources, if password is right but users doesn't exist in database then create one user.

TBC

Originally created by @lunny on GitHub (Jun 8, 2023). # Current Status - On the user table, there are two columns `LoginType` and `LoginSource` which will decide how to authenticate the user, so a user's login type could be one of `NoType `, `Plain`, `LDAP`, `SMTP`, `PAM`, `DLDAP`, `OAuth2`, `SSPI` When login, first get the database record according to user's input login name on user table. If the record exist, then check user's login type. If login type supports password check, just check password from source. If the user doesn't exist, then check all possible login sources one by one with give login name and password. The input username and password will be checked. For some login sources, if password is right but users doesn't exist in database then create one user. TBC
GiteaMirror added the type/proposal label 2025-11-02 09:24:19 -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#10994