1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xmlns:context="http://www.springframework.org/schema/context"
|
5
|
xmlns:cxf="http://cxf.apache.org/core"
|
6
|
xmlns:jaxws="http://cxf.apache.org/jaxws"
|
7
|
xmlns:p="http://http://www.springframework.org/schema/p"
|
8
|
xmlns:template="http://dnetlib.eu/springbeans/template"
|
9
|
xmlns:t="http://dnetlib.eu/springbeans/t"
|
10
|
|
11
|
xsi:schemaLocation="
|
12
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
13
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
14
|
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
|
15
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
16
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd"
|
17
|
default-autowire="byName">
|
18
|
<!--Un comment in order to run the tests / Comment to deploy-->
|
19
|
<!--<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">-->
|
20
|
<!--<property name="locations" value="classpath:eu/dnetlib/openaire/rest/springContext-claims-authorization.properties"/>-->
|
21
|
<!--</bean>-->
|
22
|
<bean id="userHandler" class="eu.dnetlib.openaire.rest.inputHandler.UserHandler" >
|
23
|
<property name="userInfoUrl" value="${services.claims.authorization.userInfoUrl}"/>
|
24
|
</bean>
|
25
|
|
26
|
<bean id="authorization" class="eu.dnetlib.openaire.rest.Authorization" >
|
27
|
<property name="registeredRoles" value="#{'${services.claims.authorization.registeredRoles}'.split(',')}"/>
|
28
|
<property name="adminRoles" value="#{'${services.claims.authorization.adminRoles}'.split(',')}"/>
|
29
|
<property name="projectCuratorRoles" value="#{'${services.claims.authorization.projectCuratorRoles}'.split(',')}"/>
|
30
|
<property name="userHandler" ref="userHandler"/>
|
31
|
<property name="originServer" value="${services.claims.authorization.originServer}"/>
|
32
|
|
33
|
</bean>
|
34
|
|
35
|
|
36
|
</beans>
|