diff --git a/Provider/Keycloak.php b/Provider/Keycloak.php index a374801..dfccbf8 100644 --- a/Provider/Keycloak.php +++ b/Provider/Keycloak.php @@ -147,7 +147,8 @@ public function getClientSecret() protected function getDefaultScopes(): array { - return ['name', 'email']; + //These paramaters are sent as 1 element of the array instead of multiple to avoid problems with the getSeparatorFunction in the league/oauth2-client library separating the scopes by a comma. + return ['openid email']; } protected function checkResponse(ResponseInterface $response, $data)