java - How to allow request from a certain url with spring security -


i'm developing simple project in order learn spring.

i've created login page , authentication management, i'm trying build registration page, i've done both backend , frontend side have problem.

the button 'save' send post request path user/signup fails, network console says 302, think security problem because if authenticate , try register user request successfull. maybe need spring security registration request must available user, unauthenticated ones. put path user/signup in spring boot doesn't works, tried using /signup

@override     public void configure(websecurity web) throws exception {       web.ignoring().antmatchers("/script/**", "/css/**", "/getregisterpage","user/signup");     } 

this project: https://github.com/stefanopisano/expenses (branch 0.2)

@override protected void configure(httpsecurity http) throws exception {     http.authorizerequests()             .antmatchers("/script/**", "/css/**", "/getregisterpage","/user/signup").permitall()             .anyrequest().authenticated()             .and()         .formlogin()             .loginpage("/getloginpage")             .loginprocessingurl("/login")             .usernameparameter("username")             .passwordparameter("password")             .defaultsuccessurl("/home", true)     .permitall(); } 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -