Calls to/from VNFM fail
[so.git] / adapters / mso-vnfm-adapter / mso-vnfm-etsi-adapter / src / main / java / org / onap / so / adapters / vnfmadapter / WebSecurityConfigImpl.java
index 2b33e8b..f083013 100644 (file)
@@ -36,9 +36,11 @@ public class WebSecurityConfigImpl extends WebSecurityConfig {
 
     @Override
     protected void configure(final HttpSecurity http) throws Exception {
-        http.csrf().disable().authorizeRequests().antMatchers("/manage/health", "/manage/info").permitAll()
-                .antMatchers("/**").hasAnyRole(StringUtils.collectionToDelimitedString(getRoles(), ",")).and()
-                .httpBasic();
+        http.csrf().disable().authorizeRequests()
+                .antMatchers("/manage/health", "/manage/info", Constants.BASE_URL + "/lcn/**",
+                        Constants.BASE_URL + "/grants/**")
+                .permitAll().antMatchers("/**").hasAnyRole(StringUtils.collectionToDelimitedString(getRoles(), ","))
+                .and().httpBasic();
     }
 
     @Override