All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.security.authentication.DefaultSocialUserDetailsService Maven / Gradle / Ivy

There is a newer version: 1.2.1.RELEASE
Show newest version
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); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy