-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Login hooks #25260
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
Login hooks #25260
Conversation
|
By analyzing the blame information on this pull request, we identified @icewind1991, @DeepDiver1975 and @blizzz to be potential reviewers |
0e39728 to
b442fa9
Compare
ce567b7 to
2e49a9e
Compare
|
Note for reviewers: |
|
|
Code looks OK, I have not tested it. |
|
this fixes token login for clients, which seems to have issues on current master (see failing integration tests of other PRs). @DeepDiver1975 @PVince81 @icewind1991 review please |
| } | ||
|
|
||
| $this->loginWithToken($password); | ||
| $user = $this->getUser(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the return statement is missing on master, hence the return false; below is executed and the login is considered to have failed.
|
PHPDoc added and |
|
👎 looks like token auth is broken. Works fine on master. |
|
Wait, I forgot to pull |
|
Tested with ext storage that uses post login for user provided creds (had to rebase onto master for that), both password and token login work and the ext storage can be accessed in both cases 👍 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I found an inconsistency of login hooks while working on #25154.
loginand then inloginWithToken)loginwas called without tranlating a possible token password to the login passwordLoginExceptionwas thrown (the login was still blocked, but resulted in a 401 instead)Needs rebase once #25154 was merged.done