This commit is contained in:
Phillip Webb
2015-06-11 10:44:52 -07:00
parent 462c5f29b1
commit 24fc94461b
4 changed files with 14 additions and 11 deletions

View File

@@ -36,8 +36,8 @@ public class OAuth2SsoProperties {
private String loginPath = DEFAULT_LOGIN_PATH;
/**
* Filter order to apply if not providing an explicit WebSecurityConfigurerAdapter
* (in which case the order can be provided there instead).
* Filter order to apply if not providing an explicit WebSecurityConfigurerAdapter (in
* which case the order can be provided there instead).
*/
private Integer filterOrder;

View File

@@ -122,9 +122,9 @@ public class UserInfoTokenServices implements ResourceServerTokenServices {
restTemplate.getOAuth2ClientContext().setAccessToken(token);
return restTemplate.getForEntity(path, Map.class).getBody();
}
catch (Exception e) {
this.logger.info("Could not fetch user details: " + e.getClass() + ", "
+ e.getMessage());
catch (Exception ex) {
this.logger.info("Could not fetch user details: " + ex.getClass() + ", "
+ ex.getMessage());
return Collections.<String, Object> singletonMap("error",
"Could not fetch user details");
}