57759[!!!][TASK] Merge salted passwords auth service into default service
Commit message
Review
-
Code review CR +2
- Christian Kuhn +2
- Markus Klein +1
- Anja Leichsenring +1
- Jigal van Hemert +1
-
Verified V +2
- Christian Kuhn +2
- Markus Klein +1
- Anja Leichsenring +1
- Jigal van Hemert +1
- TYPO3com +1 CI
Issues 1
Files 10
- typo3/sysext/core/Classes/Authentication/AbstractAuthenticationService.php+3 −3
- typo3/sysext/core/Classes/Authentication/AuthenticationService.php25+167 −44
- typo3/sysext/core/Classes/Service/AbstractService.php2+5 −3
- typo3/sysext/core/Documentation/Changelog/master/Breaking-85761-AuthenticationChainChanges.rstnew+71 −0
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-85761-DeprecatedSaltedPasswordService.rstnew+35 −0
- typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php1+156 −4
- typo3/sysext/core/ext_localconf.php+1 −1
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php+5 −0
- typo3/sysext/saltedpasswords/Classes/SaltedPasswordService.php+10 −0
- typo3/sysext/saltedpasswords/ext_localconf.php+0 −13
Review log 3548
Show 1723 earlier messages
-
Christian Kuhn uploaded patch set 1 08/01/18, 17:06
-
TYPO3com voted on patch set 1 V -1 08/01/18, 17:07 Completed build in 13s on Wed, 1 Aug, 07:07 PM Test Summary: No tests found Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-25970
-
Markus Klein commented on patch set 1 08/01/18, 18:50
AuthenticationService.php:183are we sure about this case. we have a salted pwd, but it does not match. Maybe there is a secondary SSO that is behind this one which uses also a PHP based salting, which can handle that? use case: Let TYPO3-local users take precedence over users from SSO.AuthenticationService.php:352typehints?AuthenticationService.php:370this is not quite true anymore -
Markus Klein commented on patch set 1 CR -1 08/01/18, 19:01
AuthenticationService.php:124we have a very sophisticated check here in the SaltedPasswordSErvice $validPasswd && get_class($this->objInstanceSaltedPW) !== $defaultHashingClassName && !is_subclass_of($this->objInstanceSaltedPW, $defaultHashingClassName) I guess it had a reason?AuthenticationService.php:148is this a bug he have in the current code?? checkPassword expects the plain text pwd hereAuthenticationService.php:155!strcasecmp -
Christian Kuhn commented on patch set 1 08/01/18, 19:11
AuthenticationService.php:124Replyno. current solution is much better. i tested this locally with class inheritence. should do well and is much easier than before.AuthenticationService.php:148Replyno. that's ok. M says that the password is a salted hash of an md5.AuthenticationService.php:155Replygood catch! i'll add unit tests to this part anyway and will re-check that.AuthenticationService.php:171Replywill check.AuthenticationService.php:183Replyno. this has also been a sec issue in 4.3 back then. it's important to keep that apart if salted passwords says 'i'm responsible, but password is wrong'. see http://forge.typo3.org/issues/22030AuthenticationService.php:352Replyyes. will do .AuthenticationService.php:370Replywill update. -
Markus Klein commented on patch set 1 08/01/18, 19:16
AuthenticationService.php:183ReplyYes. But this was only due to the fallback to the plain text thing, which is gone now! -
Christian Kuhn commented on patch set 1 08/01/18, 19:19
AuthenticationService.php:183Replydoes not matter. still, we want that if this service saw that the password is a salted password (it got an instance), but that the submitted password did NOT match, that then all auth services below MUST fail. It does not matter that in 'sane' configs this auth service is the last one. -
Christian Kuhn commented on patch set 1 08/01/18, 19:21
AuthenticationService.php:183Replyi'd say this is an additional fall back for possible broken services or service configuration. better safe than sorry. never allow login if a password is a hash! -
Christian Kuhn commented on patch set 1 08/01/18, 21:23
AuthenticationService.php:155ReplyDoneAuthenticationService.php:171Replyi don't get it. the info() call gets only one argument, others are just sprintf arguments which have to be reduced by one since there are only 2 %s in the message. see the notes by stefan on the initial issue georg introduced with https://review.typo3.org/#/c/57313/9/typo3/sysext/saltedpasswords/Classes/SaltedPasswordService.php which i'm fixing here along the way. did i get you wrong?AuthenticationService.php:352ReplyDoneAuthenticationService.php:370ReplyDone -
Christian Kuhn uploaded patch set 2 08/01/18, 21:24
-
TYPO3com voted on patch set 2 V +1 08/01/18, 21:31 Completed build in 06m 43s on Wed, 1 Aug, 11:31 PM Test Summary: 33647 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-25994
-
Markus Klein commented on patch set 2 08/01/18, 22:06
ah, you changed the ->info() calls to use the message. all good now. my mistake, sry. -
Christian Kuhn uploaded patch set 3 08/01/18, 22:08
-
TYPO3com voted on patch set 3 V -1 08/01/18, 22:08 Completed build in 09s on Thu, 2 Aug, 12:08 AM Test Summary: No tests found Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-25998
-
Christian Kuhn uploaded patch set 4 08/01/18, 22:09
-
Markus Klein commented on patch set 4 08/01/18, 22:13
AbstractService.php:159should be serviceType, right? -
TYPO3com voted on patch set 4 V +1 08/01/18, 22:15 Completed build in 06m 21s on Thu, 2 Aug, 12:15 AM Test Summary: 33650 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-25999
-
Christian Kuhn uploaded patch set 5 08/01/18, 22:17
-
Christian Kuhn commented on patch set 4 08/01/18, 22:17
AbstractService.php:159Replyyeah. just fixed. what a mess. -
TYPO3com voted on patch set 5 V +1 08/01/18, 22:24 Completed build in 07m 22s on Thu, 2 Aug, 12:24 AM Test Summary: 33650 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26000
-
Christian Kuhn uploaded patch set 6 08/05/18, 20:08
-
TYPO3com voted on patch set 6 V +1 08/05/18, 20:15 Completed build in 06m 25s on Sun, 5 Aug, 10:15 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26211
-
Christian Kuhn uploaded patch set 7 08/05/18, 20:15
-
TYPO3com voted on patch set 7 V +1 08/05/18, 20:21 Completed build in 06m 18s on Sun, 5 Aug, 10:21 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26212
-
Christian Kuhn uploaded patch set 8 08/05/18, 20:25
-
TYPO3com voted on patch set 8 V +1 08/05/18, 20:32 Completed build in 06m 51s on Sun, 5 Aug, 10:32 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26213
-
Christian Kuhn uploaded patch set 9 08/05/18, 21:24
-
Christian Kuhn updated the commit message in patch set 10 08/05/18, 21:25
-
Christian Kuhn uploaded patch set 11 08/05/18, 21:30
-
TYPO3com voted on patch set 9 V +1 08/05/18, 21:31 Completed build in 07m 23s on Sun, 5 Aug, 11:31 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26214
-
Wouter Wolters commented on patch set 11 08/05/18, 21:32
AuthenticationService.php:357first parameter missing here -
TYPO3com voted on patch set 10 V +1 08/05/18, 21:33 Completed build in 07m 58s on Sun, 5 Aug, 11:33 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26215
-
Christian Kuhn uploaded patch set 12 08/05/18, 21:35
-
Christian Kuhn commented on patch set 11 08/05/18, 21:35
AuthenticationService.php:357ReplyDone -
TYPO3com voted on patch set 11 V +1 08/05/18, 21:37 Completed build in 06m 54s on Sun, 5 Aug, 11:37 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26216
-
TYPO3com voted on patch set 12 V +1 08/05/18, 21:41 Completed build in 06m 37s on Sun, 5 Aug, 11:41 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26217
-
Markus Klein commented on patch set 13 08/06/18, 10:17
Published edit on patch set 12. -
Markus Klein voted on patch set 13 CR +1 08/06/18, 10:18
-
TYPO3com voted on patch set 13 V +1 08/06/18, 10:25 Completed build in 07m 20s on Mon, 6 Aug, 12:25 PM Test Summary: 33696 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-26221
-
Markus Klein voted on patch set 13 V +1 08/07/18, 09:00
-
Anja Leichsenring voted on patch set 13 V +1 CR +1 08/07/18, 09:20
-
Christian Kuhn voted on patch set 13 V +2 CR +2 08/07/18, 11:07
-
Christian Kuhn merged patch set 14 08/07/18, 11:07
-
Jigal van Hemert commented on patch set 14 V +1 CR +1 08/07/18, 14:57
Great improvement of the auth service! The logic is now understandable without have to read the code multiple times. Thank you for this patch. -
Markus Klein commented on patch set 14 08/07/18, 21:09
AuthenticationService.php:112Mistake here: must be HTTP_HOST! -
Markus Klein commented on patch set 14 08/07/18, 21:35
-
Christian Kuhn commented on patch set 14 08/08/18, 08:57
AuthenticationService.php:112Replyconfirmed. mixed this up with the logging mess and couldn't unit test due to static salted password factory (this will be my next patch).
AuthenticationService.php:171