diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-10-31 08:07:27 -0700 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-10-31 08:07:27 -0700 |
commit | 55d8b7b4d774ca17405feaa645dd403abf94ba4d (patch) | |
tree | 3664eda18a26e32b7230b0361a46b6d127985b2e /Core/Tests/Authentication | |
parent | a5072cd08357bc74a1188e3e14a929d2302735f6 (diff) | |
parent | dc8d7f7f1d5f94fc92c0872063409acf042b0d3c (diff) | |
download | symfony-security-55d8b7b4d774ca17405feaa645dd403abf94ba4d.zip symfony-security-55d8b7b4d774ca17405feaa645dd403abf94ba4d.tar.gz symfony-security-55d8b7b4d774ca17405feaa645dd403abf94ba4d.tar.bz2 |
feature #16395 checkCredentials() force it to be an affirmative yes! (weaverryan)
This PR was squashed before being merged into the 2.8 branch (closes #16395).
Discussion
----------
checkCredentials() force it to be an affirmative yes!
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no (because 2.8 isn't released)
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
This changes `GuardAuthenticatorInterface::checkCredentials()`: you now *must* return true in order for authentication to pass.
Before: You could do nothing (i.e. return null) and authentication would pass. You threw an AuthenticationException to cause a failure.
New: You *must* return `true` for authentication to pass. If you do nothing, we will throw a `BadCredentialsException` on your behalf. You can still throw your own exception.
This was a suggestion at symfony_live to make things more secure. I think it makes sense.
Commits
-------
14acadd checkCredentials() force it to be an affirmative yes!
Diffstat (limited to 'Core/Tests/Authentication')
0 files changed, 0 insertions, 0 deletions