From 600f90c54fc75b2301b3e19d3b4ebbcc3b71728e Mon Sep 17 00:00:00 2001 From: Ron Rademaker Date: Mon, 2 Nov 2020 08:03:20 +0100 Subject: [PATCH 1/2] Update docs to use lexik default success handler --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c761f24..c2e2fb0 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ``` From 5499134a4ff22ba80ccfb3bbe42dc3a4c2d79aee Mon Sep 17 00:00:00 2001 From: Ron Rademaker Date: Mon, 2 Nov 2020 08:04:14 +0100 Subject: [PATCH 2/2] Update AuthenticationSuccessHandler.php --- .../Http/Authentication/AuthenticationSuccessHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Security/Http/Authentication/AuthenticationSuccessHandler.php b/src/Security/Http/Authentication/AuthenticationSuccessHandler.php index dddd0af..cf55767 100644 --- a/src/Security/Http/Authentication/AuthenticationSuccessHandler.php +++ b/src/Security/Http/Authentication/AuthenticationSuccessHandler.php @@ -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;