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