From 20015218a02f6d8ceda6b0801a4cb44abd72fb0b Mon Sep 17 00:00:00 2001 From: "El. Abdellah" Date: Mon, 28 Feb 2022 14:06:43 +0100 Subject: [PATCH] fix deprecated response --- Security/Authenticator/KeycloakBearerAuthenticator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Security/Authenticator/KeycloakBearerAuthenticator.php b/Security/Authenticator/KeycloakBearerAuthenticator.php index e75d96a..57ac49f 100644 --- a/Security/Authenticator/KeycloakBearerAuthenticator.php +++ b/Security/Authenticator/KeycloakBearerAuthenticator.php @@ -11,7 +11,7 @@ use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException; use Symfony\Component\Security\Http\Authenticator\AbstractAuthenticator; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; -use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface; +use Symfony\Component\Security\Http\Authenticator\Passport\Passport; use Symfony\Component\Security\Http\Authenticator\Passport\SelfValidatingPassport; class KeycloakBearerAuthenticator extends AbstractAuthenticator @@ -31,7 +31,7 @@ class KeycloakBearerAuthenticator extends AbstractAuthenticator return true; } - public function authenticate(Request $request): PassportInterface + public function authenticate(Request $request): Passport { $token = $request->headers->get('Authorization'); if (null === $token || empty($token)) {