Skip to content

Commit

Permalink
Merge pull request #133 from khoa-nd/master
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
khoa-nd committed Jan 5, 2015
2 parents a59be1e + 1b89d1e commit 5a4d9b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ protected void configure(HttpSecurity http) throws Exception {
.authorizeRequests().antMatchers("/user/**").hasAuthority("USER")
.and().formLogin().loginPage("/login").usernameParameter("key").successHandler(getSuccessHandler()).failureHandler(getAuthenticationFailureHandler())
.and().logout().logoutUrl("/logout").logoutSuccessHandler(getLogoutSuccessHandler()).invalidateHttpSession(true).deleteCookies("SESSION").permitAll()
.and().exceptionHandling().authenticationEntryPoint(getAuthenticationEntryPoint());
// .and().sessionManagement().invalidSessionUrl("/").maximumSessions(1);
.and().exceptionHandling().authenticationEntryPoint(getAuthenticationEntryPoint())
.and().sessionManagement().invalidSessionUrl("/").maximumSessions(1);
}

private AuthenticationEntryPoint getAuthenticationEntryPoint() {
Expand Down

0 comments on commit 5a4d9b1

Please sign in to comment.