1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
3
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xmlns:context="http://www.springframework.org/schema/context"
|
5
|
xmlns="http://www.springframework.org/schema/beans"
|
6
|
xmlns:security="http://www.springframework.org/schema/security"
|
7
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
8
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
9
|
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd">
|
10
|
|
11
|
<import resource="classpath:META-INF/cxf/cxf.xml"/>
|
12
|
<!-- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> -->
|
13
|
<!-- <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" /> -->
|
14
|
<!-- <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> -->
|
15
|
|
16
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml"/>
|
17
|
<import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml"/>
|
18
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml"/>
|
19
|
<import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml"/>
|
20
|
<import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
|
21
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml"/>
|
22
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml"/>
|
23
|
<import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml"/>
|
24
|
<import resource="classpath*:/eu/dnetlib/data/claims/migration/springContext-claimsDemo.xml"/>
|
25
|
<import resource="classpath*:/eu/dnetlib/openaire/rest/springContext-claims-authorization.xml"/>
|
26
|
<!--
|
27
|
<import resource="classpath*:/eu/dnetlib/openaire/thrift/springContext-openaire-thrift.xml" /> -->
|
28
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" id="propertySourcesPlaceholderConfigurer">
|
29
|
<property name="order" value="2"/>
|
30
|
<property name="ignoreUnresolvablePlaceholders" value="true"/>
|
31
|
<property name="properties">
|
32
|
<bean class="eu.dnetlib.conf.WebappContextProperyFactory">
|
33
|
<property name="propertyFetcher">
|
34
|
<bean class="eu.dnetlib.conf.PropertyFetcher"/>
|
35
|
</property>
|
36
|
</bean>
|
37
|
</property>
|
38
|
<property name="locations">
|
39
|
<list>
|
40
|
<value>classpath*:/eu/**/applicationContext*.properties</value>
|
41
|
<value>classpath*:/eu/dnetlib/applicationContext-defaultProperties.properties</value>
|
42
|
<value>classpath*:/gr/**/springContext-commons.properties</value>
|
43
|
<value>classpath*:/gr/**/springContext-registrator.properties</value>
|
44
|
<value>classpath*:/gr/**/springContext-locators.properties</value>
|
45
|
|
46
|
<value>classpath*:/eu/dnetlib/data/claims/migration/springContext-claimsDemo.properties</value>
|
47
|
<value>classpath*:/eu/dnetlib/openaire/rest/springContext-claims-authorization.properties</value>
|
48
|
<value>classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.properties</value>
|
49
|
<value>classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.properties</value>
|
50
|
|
51
|
<value>classpath*:/eu/dnetlib/openaire/applicationContext-openaire.properties</value>
|
52
|
<value>classpath*:/eu/dnetlib/openaire/thrift/springContext-openaire-thrift.properties</value>
|
53
|
|
54
|
|
55
|
<value>classpath*:dnet-site-override.properties</value>
|
56
|
<value>classpath*:dnet-dnet-openaire-connector-wizard.properties</value>
|
57
|
<value>classpath*:dnet-dnet-openaire-connector-override.properties</value>
|
58
|
|
59
|
<value>classpath*:/uoa-override.properties</value>
|
60
|
<value>classpath*:/dnet-override.properties</value>
|
61
|
|
62
|
<value>classpath*:dnet-force-override.properties</value>
|
63
|
|
64
|
</list>
|
65
|
</property>
|
66
|
</bean>
|
67
|
|
68
|
<context:annotation-config/>
|
69
|
<context:component-scan base-package="eu.dnetlib.openaire.rest"/>
|
70
|
|
71
|
<bean class="org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration"/>
|
72
|
<bean class="org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory">
|
73
|
<constructor-arg value="83.212.101.85"/>
|
74
|
<constructor-arg value="6379"/>
|
75
|
<!--<property name="password" value="${redis.password:#{null}}"/>-->
|
76
|
</bean>
|
77
|
|
78
|
<bean class="org.springframework.session.web.http.DefaultCookieSerializer">
|
79
|
<property name="cookieName" value="SESSION"/>
|
80
|
<property name="cookiePath" value="/"/>
|
81
|
</bean>
|
82
|
|
83
|
<!-- Enable SPEL annotation-->
|
84
|
<security:global-method-security pre-post-annotations="enabled" proxy-target-class="true"
|
85
|
authentication-manager-ref="authenticationManager"/>
|
86
|
|
87
|
<security:http auto-config="false" use-expressions="true"
|
88
|
disable-url-rewriting="true" entry-point-ref="authenticationEntryPoint"
|
89
|
pattern="/**">
|
90
|
</security:http>
|
91
|
|
92
|
<!--Disable authentication from this service-->
|
93
|
<bean id="authenticationEntryPoint"
|
94
|
class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint"/>
|
95
|
<security:authentication-manager alias="authenticationManager"/>
|
96
|
|
97
|
<!--
|
98
|
<context:component-scan base-package="eu.dnetlib.api.enabling"/>
|
99
|
-->
|
100
|
|
101
|
<!-- if the following import is not the last one, something overrides bus
|
102
|
configuration disabling logging and any other customized feature. -->
|
103
|
|
104
|
<import resource="./cxf.xml"/>
|
105
|
|
106
|
</beans>
|