package org.onap.so.adapters.vnfmadapter.oauth;
+import static org.onap.so.adapters.vnfmadapter.common.CommonConstants.BASE_URL;
import javax.servlet.http.HttpServletRequest;
-import org.onap.so.adapters.vnfmadapter.Constants;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
@Override
public void configure(final HttpSecurity http) throws Exception {
http.requestMatcher(new OAuth2ResourceServerRequestMatcher()).authorizeRequests()
- .antMatchers(Constants.BASE_URL + "/grants/**", Constants.BASE_URL + "/lcn/**").authenticated();
+ .antMatchers(BASE_URL + "/grants/**", BASE_URL + "/lcn/**").authenticated();
}
private static class OAuth2ResourceServerRequestMatcher implements RequestMatcher {