You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rebolon
changed the title
Use JwtLexik listener for onsuccess & onfailure instead of min object
Use JwtLexik listener for onsuccess & onfailure instead of my object
Mar 18, 2019
In fact when i use JwtLexikListener then all routes managed by this listener are protected and require a valid Jwt token. I don't find a way for instance to allow anonymous route on the same firewall.
My own listener works well, so i don't know if it's a good practice or if i'm going wrong. I will look further on JwtLexik repo
@todo one thing that coud be certainly removed is the LoginJwtController::token method and use json_login security with success/failure handlers this is a really better practice
Take care, for instance the project has API route protected with jwt and some are free like Get on book
So test before validate the change
The text was updated successfully, but these errors were encountered: