Skip to content
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

User system refactor #25153

Open
lunny opened this issue Jun 8, 2023 · 0 comments
Open

User system refactor #25153

lunny opened this issue Jun 8, 2023 · 0 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@lunny
Copy link
Member

lunny commented 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

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

1 participant