Skip to content

Commit

Permalink
callback: use correct keycloak attribute for username
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsga authored Apr 21, 2024
1 parent b8d60d2 commit 671bbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 671bbcf

Please sign in to comment.