Repository navigation
First we need to check the token auth module - otherwise we DOS the u… - #30364
Conversation
…ser backends with wrong login requests - fixes #30157
IljaN
left a comment
There was a problem hiding this comment.
I Just did a test, error is gone. 👍 If we can`t think of any side-effects this reordering might have.
Codecov Report
@@ Coverage Diff @@
## master #30364 +/- ##
===========================================
+ Coverage 60.64% 60.84% +0.2%
Complexity 18549 18549
===========================================
Files 1092 1092
Lines 61278 61280 +2
===========================================
+ Hits 37160 37286 +126
+ Misses 24118 23994 -124
Continue to review full report at Codecov.
|
PVince81
left a comment
There was a problem hiding this comment.
Looks good for a workaround 👍
However, from looking at the fix, it seems to imply that the "Login failed" error is actually logged by BasicAuthModule since it used to appear before. Now with this workaround it will appear at the end, so the behavior is correct. I'd prefer if we have the code outside of this log the entry, once all modules failed, instead of having the logging code specific to BasicAuthModule. This way we're not dependent on the order.
absolutly reasonable - but thinking about ldap it is still necessary to execute the checkPassword command within the last module - failed logins to ldap need to be prevented because they are causing logouts within ldap |
|
please backport to would be nice to only backport the relevant change, not the code styling ones... |
|
backport to hotfix branch instead ^ we'll merge it back |
Will open a new pr with the actual fix only |
|
👍 Manages to get rid of the error in basic auth schemas. Still need to check together with #30365 + owncloud/oauth2#112 but I guess 10.0.7 should contain the fix |
I know why ..... hmmmm - do we want this in 10.0.7 as well? One line change |
|
@DeepDiver1975 yes please |
|
@DeepDiver1975 is this something we need to backport ? Seems to be auth related. Not sure if obsoleted by any of the other recent auth changes. How risky ? |
|
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. |
…ser backends with wrong login requests
Description
Login requests to the user backends (using IUserManager::checkPassword) need to be the last operation to be tried because this will cause logout of the user in worst case.
As a result any other auth checks need to be performed before (cookies, oauth and so on).
Related Issue
fixes #30157
How Has This Been Tested?
Types of changes
Checklist: