BAEL-797 streamlining security configuration
This commit is contained in:
parent
e193a60dc6
commit
2ba7264f66
|
@ -28,7 +28,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
.antMatchers("/book-service/**", "/rating-service/**", "/login*", "/").permitAll()
|
.antMatchers("/book-service/**", "/rating-service/**", "/login*", "/").permitAll()
|
||||||
.antMatchers("/eureka/**").hasRole("ADMIN")
|
.antMatchers("/eureka/**").hasRole("ADMIN")
|
||||||
.antMatchers("/home/*").authenticated()
|
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and()
|
.and()
|
||||||
.logout()
|
.logout()
|
||||||
|
|
Loading…
Reference in New Issue