change method

This commit is contained in:
MaxKey
2022-01-03 20:30:39 +08:00
parent a7b8489496
commit 840105f482
22 changed files with 234 additions and 250 deletions

View File

@@ -46,7 +46,7 @@ public class OAuth2UserDetailsService implements UserDetailsService {
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
UserInfo userInfo;
try {
userInfo = loginService.loadUserInfo(username, "");
userInfo = loginService.find(username, "");
} catch (NoSuchClientException e) {
throw new UsernameNotFoundException(e.getMessage(), e);
}

View File

@@ -280,7 +280,7 @@ public class OpenIdConnectUserInfoEndpoint {
public UserInfo queryUserInfo(String userId){
_logger.debug("userId : "+userId);
UserInfo userInfo = (UserInfo) userInfoService.loadByUsername(userId);
UserInfo userInfo = (UserInfo) userInfoService.findByUsername(userId);
return userInfo;
}

View File

@@ -160,7 +160,7 @@ public class UserInfoEndpoint {
public UserInfo queryUserInfo(String userId){
_logger.debug("userId : "+userId);
UserInfo userInfo = (UserInfo) userInfoService.loadByUsername(userId);
UserInfo userInfo = (UserInfo) userInfoService.findByUsername(userId);
return userInfo;
}