oauth change

This commit is contained in:
kimscott
2019-11-04 14:07:13 +09:00
parent 1d29921443
commit 1b6efa591f
3 changed files with 106 additions and 19 deletions

View File

@@ -166,6 +166,10 @@ public class OAuth2AuthorizationServerConfig extends AuthorizationServerConfigur
if(authentication.isAuthenticated()) {
Map<String, Object> additionalInfo = new HashMap<>();
additionalInfo.put("company", "Uengine");
User user = (User)authentication.getPrincipal();
additionalInfo.put("nickname", user.getNickName());
additionalInfo.put("address", user.getAddress());
// String clientId = authentication.getOAuth2Request().getClientId();
// logger.debug("client ID : " + clientId);