From e781ce6fc371688c59a61a7f4e0a92989c9d84c7 Mon Sep 17 00:00:00 2001 From: "El. Abdellah" Date: Fri, 4 Dec 2020 16:40:01 +0100 Subject: [PATCH] Edit token formater matcher --- 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 12b5329..5be65c5 100644 --- a/Security/Authenticator/KeycloakBearerAuthenticator.php +++ b/Security/Authenticator/KeycloakBearerAuthenticator.php @@ -210,6 +210,6 @@ class KeycloakBearerAuthenticator extends AbstractGuardAuthenticator */ protected function formatToken(string $token): string { - return trim(preg_replace('/^(?:\s+)?Bearer\s/', '', $token)); + return trim(preg_replace('/^(?:\s+)?[B-b]earer\s/', '', $token)); } -} \ No newline at end of file +}