Skip to content

Commit

Permalink
fix token claims (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
olevitt authored Oct 9, 2023
1 parent 613ddec commit 5d14bd8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ public UserProvider getUserProvider() {
user.setEmail(userInfo.getClaimAsString("email"));
user.setNomComplet(userInfo.getClaimAsString("name"));
user.setGroups(userInfo.getClaimAsStringList(groupsClaim));
user.getAttributes().putAll(userInfo.getClaims());
user.getAttributes().put("sub", userInfo.getSubject());
user.getAttributes().put("access_token", userInfo.getTokenValue());
return user;
};
}
Expand Down

0 comments on commit 5d14bd8

Please sign in to comment.