BAEL-649 Making updates to add two service applications that are domain specific
This commit is contained in:
@@ -22,14 +22,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
http.authorizeRequests()
|
||||
.antMatchers("/resource/hello/cloud").permitAll()
|
||||
.antMatchers("/book-service/books").permitAll()
|
||||
.antMatchers("/eureka/**").hasRole("ADMIN")
|
||||
.anyRequest().authenticated()
|
||||
.and()
|
||||
.formLogin()
|
||||
.and()
|
||||
.logout().permitAll()
|
||||
.logoutSuccessUrl("/resource/hello/cloud").permitAll()
|
||||
.logoutSuccessUrl("/book-service/books").permitAll()
|
||||
.and()
|
||||
.csrf()
|
||||
.disable();
|
||||
|
||||
Reference in New Issue
Block a user