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

com.itxiaoer.commons.security.wx.WxSecurityConfiguration Maven / Gradle / Ivy

The newest version!
package com.itxiaoer.commons.security.wx;

import com.itxiaoer.commons.security.AbstractAuthenticationTokenFilter;
import com.itxiaoer.commons.security.JwtUserDetailService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.web.AuthenticationEntryPoint;

/**
 * @author : liuyk
 */
@Configuration
@ComponentScan("com.itxiaoer.commons.security.wx.web")
public class WxSecurityConfiguration {

    @Bean
    public AuthenticationEntryPoint authenticationEntryPoint() {
        return new WxAuthenticationEntryPoint();
    }

    @Bean
    @ConditionalOnMissingBean(JwtUserDetailService.class)
    public JwtUserDetailService wxUseDetailService() {
        return new WxUseDetailServiceImpl();
    }

    @Bean
    AbstractAuthenticationTokenFilter abstractAuthenticationTokenFilter() {
        return new WxAbstractAuthenticationTokenFilter();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy