Categories
Mastering Development

send ajax request to spring security login

i want to do the login action with spring security using jquery ajax. here is what i have in my security config class: @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true) public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private Environment env; @Autowired private UserSecurityService userSecurityService; @Autowired MyAuthenticationSuccessHandler myAuthenticationSuccessHandler; @Autowired MyAuthenticationFailureHandler myAuthenticationFailureHandler; private static final String SALT = “salt”; @Bean public […]