Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http.authorizeRequests()
- .anyRequest().authenticated()
- .and()
- .formLogin()
- .loginPage("/login")
- .defaultSuccessUrl("/products/add")
- .failureUrl("/loginfailed")
- .permitAll()
- .and()
- .logout()
- .logoutUrl("/logout")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement