Created
October 19, 2015 22:50
-
-
Save simbo1905/76d0638f15161189373c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void configure(HttpSecurity http) throws Exception { | |
http | |
.authorizeRequests() | |
.antMatchers("/", "/favicon.ico", "/resources/**", "/signup", | |
"/register", "/public") | |
.permitAll() | |
.anyRequest().authenticated() | |
.and() | |
.formLogin() | |
.loginPage("/signin") | |
.permitAll() | |
.failureUrl("/signin?error=1") | |
.loginProcessingUrl("/authenticate") | |
.and() | |
.logout() | |
.logoutUrl("/logout") | |
.permitAll() | |
.logoutSuccessUrl("/signin?logout") | |
.and() | |
.rememberMe() | |
.rememberMeServices(rememberMeServices()) | |
.key("remember-me-key"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment