Skip to content

Instantly share code, notes, and snippets.

@Odilio
Created September 21, 2020 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Odilio/9170b8e66ee15972132b96016fc6bf3b to your computer and use it in GitHub Desktop.
Save Odilio/9170b8e66ee15972132b96016fc6bf3b to your computer and use it in GitHub Desktop.
ResponseEntity<Map> response = restTemplate.exchange(userInfoEndpointUri, HttpMethod.GET, entity, Map.class);
Map userAttributes = response.getBody();
model.addAttribute("name", userAttributes.get("name"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment