Polish
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user