Skip to content

Commit

Permalink
Remove unnecessary ant pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
pkainulainen committed Sep 9, 2014
1 parent b251956 commit 760a7b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import net.petrikainulainen.spring.social.signinmvc.security.service.SimpleSocialUserDetailsService;
import net.petrikainulainen.spring.social.signinmvc.user.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
Expand Down Expand Up @@ -57,13 +56,14 @@ protected void configure(HttpSecurity http) throws Exception {
.antMatchers(
"/auth/**",
"/login",
"/signin/**",
"/signup/**",
"/user/register/**"
).permitAll()
//The rest of the our application is protected.
.antMatchers("/**").hasRole("USER")
//Adds the SocialAuthenticationFilter to Spring Security's filter chain.
.and()
.rememberMe()
.and()
.apply(new SpringSocialConfigurer());
}
Expand Down

0 comments on commit 760a7b3

Please sign in to comment.