Skip to content

Commit

Permalink
Merge pull request #22 from ConnectHolland/deprecate-success-handler
Browse files Browse the repository at this point in the history
Update docs to use lexik default success handler
  • Loading branch information
RonRademaker committed Nov 2, 2020
2 parents ece1155 + 5499134 commit bda1a15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ lexik_jwt_authentication:
cookie:
enabled: true
name: BEARER
set_cookies:
BEARER: ~
```
### Make sure the token is set as a secure cookie
Expand All @@ -74,7 +76,7 @@ In the `security.yaml` config file:
anonymous: true
json_login:
check_path: /api/login_check
success_handler: ConnectHolland\SecureJWTBundle\Security\Http\Authentication\AuthenticationSuccessHandler
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;

/**
* @deprecated Use lexik default instead
**/
class AuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
{
private AuthenticationSuccessHandlerInterface $successHandler;
Expand Down

0 comments on commit bda1a15

Please sign in to comment.