Merge branch '1.5.x'
This commit is contained in:
commit
d271b54f63
|
@ -123,7 +123,7 @@ public class UserInfoTokenServices implements ResourceServerTokenServices {
|
||||||
|
|
||||||
@SuppressWarnings({ "unchecked" })
|
@SuppressWarnings({ "unchecked" })
|
||||||
private Map<String, Object> getMap(String path, String accessToken) {
|
private Map<String, Object> getMap(String path, String accessToken) {
|
||||||
this.logger.info("Getting user info from: " + path);
|
this.logger.debug("Getting user info from: " + path);
|
||||||
try {
|
try {
|
||||||
OAuth2RestOperations restTemplate = this.restTemplate;
|
OAuth2RestOperations restTemplate = this.restTemplate;
|
||||||
if (restTemplate == null) {
|
if (restTemplate == null) {
|
||||||
|
@ -142,7 +142,7 @@ public class UserInfoTokenServices implements ResourceServerTokenServices {
|
||||||
return restTemplate.getForEntity(path, Map.class).getBody();
|
return restTemplate.getForEntity(path, Map.class).getBody();
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
this.logger.info("Could not fetch user details: " + ex.getClass() + ", "
|
this.logger.warn("Could not fetch user details: " + ex.getClass() + ", "
|
||||||
+ ex.getMessage());
|
+ ex.getMessage());
|
||||||
return Collections.<String, Object>singletonMap("error",
|
return Collections.<String, Object>singletonMap("error",
|
||||||
"Could not fetch user details");
|
"Could not fetch user details");
|
||||||
|
|
Loading…
Reference in New Issue