Commit 410fa224 by lanminwu

commit

parent 5db028ac
......@@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ProxyApplication {
public class LoginApplication {
public static void main(String[] args) {
SpringApplication.run(ProxyApplication.class, args);
SpringApplication.run(LoginApplication.class, args);
}
}
......@@ -46,14 +46,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/auth/sessionInfo").permitAll();
http.authorizeRequests().antMatchers("/api/auth/sessionInfo").permitAll();
http.csrf().disable();
http.exceptionHandling().authenticationEntryPoint(authenticationEntryPoint);
http.formLogin().successHandler(authenticationSuccessHandler);
http.formLogin().failureHandler(authenticationFailureHandler);
http.formLogin().loginPage("/login");
http.formLogin().loginProcessingUrl("/auth/signin");
http.logout().logoutUrl("/auth/signout");
http.formLogin().loginProcessingUrl("/api/auth/signin");
http.logout().logoutUrl("/api/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