diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2017-01-03 05:53:24 -0800 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2017-01-03 05:53:24 -0800 |
commit | 156a6c52d8100c64462c83b76c971bbe48db8fc0 (patch) | |
tree | 9bce25be968d3a4a5367e4a1bc579bcbd81f40e1 /Guard/Firewall | |
parent | 43d87514e9ef2f05c6b70f5e9fa57af9eb74bc12 (diff) | |
parent | 27fdeef792e7237be2b16a2d164126276530b0ec (diff) | |
download | symfony-security-master.zip symfony-security-master.tar.gz symfony-security-master.tar.bz2 |
bug #21136 [Security] use authenticated token for json authentication (fbourigault)HEADorigin/masterorigin/HEADmaster
This PR was merged into the 3.3-dev branch.
Discussion
----------
[Security] use authenticated token for json authentication
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #21123
| License | MIT
| Doc PR | N/A
When using `UsernamePasswordJsonAuthenticationListener` with [LexikJWTAuthenticationBundle](https://github.com/lexik/LexikJWTAuthenticationBundle), we get a type exception
> Type error: Argument 1 passed to Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationSuccessHandler::handleAuthenticationSuccess() must implement interface Symfony\Component\Security\Core\User\UserInterface, string given, called in .../vendor/lexik/jwt-authentication-bundle/Security/Http/Authentication/AuthenticationSuccessHandler.php on line 47
This error occurs because the `UsernamePasswordJsonAuthenticationListener` send to the authentication success handler the token which have the user as a string and not the authenticated one that have a UserInterface as user.
Commits
-------
208c617716 use authenticated token for json authentication
Diffstat (limited to 'Guard/Firewall')
0 files changed, 0 insertions, 0 deletions