27 lines
1.0 KiB
Java
27 lines
1.0 KiB
Java
package eu.dnetlib.uoaorcidservice;
|
|
|
|
import org.apache.log4j.Logger;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
@Configuration
|
|
public class UoaOrcidServiceConfiguration extends WebMvcConfigurerAdapter {
|
|
private final Logger log = Logger.getLogger(this.getClass());
|
|
|
|
@Bean
|
|
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
|
|
return new PropertySourcesPlaceholderConfigurer();
|
|
}
|
|
|
|
@Override
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
// registry.addInterceptor(new AuthorizationHandler(securityConfig.getUserInfoUrl(), securityConfig.getOriginServer(), securityConfig.getPostsAllowed()))
|
|
// .addPathPatterns("/**");
|
|
|
|
}
|
|
|
|
}
|