diff --git a/plugin/keycloak/start.php b/plugin/keycloak/start.php index f1adadafe9..dbdd3ad235 100644 --- a/plugin/keycloak/start.php +++ b/plugin/keycloak/start.php @@ -92,7 +92,7 @@ if (isset($_GET['sso'])) { exit; } - $keyCloackUserName = Session::read('samlNameId'); + $keyCloackUserName = $auth->getNameId(); $userInfo = api_get_user_info_from_username($keyCloackUserName); $attributes = $auth->getAttributes();