Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 9, 2024
1 parent f8218aa commit 367e7de
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public OidcUser loadUser(OidcUserRequest userRequest) throws OAuth2Authenticatio
// Delegate to the default implementation for loading a user
OidcUser oidcUser = delegate.loadUser(userRequest);
Map<String, Object> claims = oidcUser.getUserInfo().getClaims();
// We need a mutable Map instead of the returned immutable Map
Map<String, Object> newClaims = new HashMap<>(claims);

String sub = (String) newClaims.get("sub");
Expand Down

0 comments on commit 367e7de

Please sign in to comment.