This commit is contained in:
leejinseok
2020-02-17 09:54:52 +09:00
parent d1e55a8381
commit b7b1252f6d

View File

@@ -34,12 +34,11 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
.antMatchers("/auth/register").permitAll() .antMatchers("/auth/register").permitAll()
.antMatchers("/users").authenticated() .antMatchers("/users").authenticated()
.antMatchers("/articles").permitAll() .antMatchers("/articles").permitAll()
.antMatchers("/me").authenticated() .antMatchers("/me/**").hasRole("USER")
.and() .and()
.formLogin().disable() .formLogin().disable()
.addFilter(jwtAuthenticationFilter()) .addFilter(jwtAuthenticationFilter())
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
} }
@Bean @Bean