Commit 00a4833c by lanminwu

commit

parent 410fa224
......@@ -46,14 +46,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/api/auth/sessionInfo").permitAll();
http.authorizeRequests().anyRequest().permitAll();
http.csrf().disable();
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
http.formLogin().successHandler(authenticationSuccessHandler);
http.formLogin().failureHandler(authenticationFailureHandler);
http.formLogin().loginPage("/login");
http.formLogin().loginProcessingUrl("/api/auth/signin");
http.logout().logoutUrl("/api/auth/signout");
http.formLogin().loginProcessingUrl("/auth/signin");
http.logout().logoutUrl("/auth/signout");
http.logout().logoutSuccessHandler(logoutSuccessHandler);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment