Skip to content

Commit

Permalink
[ALS-4793] Forgot to include UUID in response
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Aug 3, 2023
1 parent df2a5f5 commit f1844f7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ public HashMap<String, String> getUserProfileResponse(Map<String, Object> claims
Date expirationDate = new Date(Calendar.getInstance().getTimeInMillis() + JAXRSConfiguration.tokenExpirationTime);
responseMap.put("expirationDate", ZonedDateTime.ofInstant(expirationDate.toInstant(), ZoneOffset.UTC).toString());

// This is required for open access, but optional otherwise
if (claims.get("uuid") != null) {
logger.debug("getUserProfileResponse() uuid field is set");
responseMap.put("uuid", claims.get("uuid").toString());
}

logger.debug("getUserProfileResponse() finished");
return responseMap;
}
Expand Down

0 comments on commit f1844f7

Please sign in to comment.