com.healthy.common.security.authentication.DefaultSocialUserDetailsService Maven / Gradle / Ivy
package com.healthy.common.security.authentication;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.social.security.SocialUserDetails;
import org.springframework.social.security.SocialUserDetailsService;
/**
* The default DefaultSocialUserDetailsService implementation
*
* Users need to implement their own DefaultSocialUserDetailsService.
*
* @author xiaomingzhang
*/
@Slf4j
public class DefaultSocialUserDetailsService implements SocialUserDetailsService {
@Override
public SocialUserDetails loadUserByUserId(String userId) throws UsernameNotFoundException {
log.warn("请配置 SocialUserDetailsService 接口的实现.");
throw new UsernameNotFoundException(userId);
}
}