Edit token formater matcher

This commit is contained in:
El. Abdellah
2020-12-04 16:40:01 +01:00
committed by GitHub
parent b9dc633ea4
commit e781ce6fc3

View File

@@ -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));
}
}
}