Edit token formater matcher
This commit is contained in:
1 parent
b9dc633ea4
commit
e781ce6fc3
1 file changed
+2
-2
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user