From 671bbcf0d69353446ff58ebd558027536ddce2c5 Mon Sep 17 00:00:00 2001 From: Jonas Gaffke Date: Sun, 21 Apr 2024 16:40:37 +0200 Subject: [PATCH] callback: use correct keycloak attribute for username --- src/callback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.php b/src/callback.php index 74aa87c..70375d2 100644 --- a/src/callback.php +++ b/src/callback.php @@ -22,7 +22,7 @@ // Save user data and token in session or database here - $_SESSION['user'] = $userData["name"]; + $_SESSION['user'] = $userData["preferred_username"]; $_SESSION['token'] = $token->getToken(); // Redirect to index.php