Fix Babel authorisation mechanism
[aai/babel.git] / src / main / resources / babel-beans.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
4         xsi:schemaLocation="
5                 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
6                 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">
7
8         <!-- ////////////////////////////////////////////////////////////////// -->
9         <!-- PROPERTY AND CONFIGURATION FILES -->
10         <!-- ////////////////////////////////////////////////////////////////// -->
11
12         <context:property-placeholder
13                 location="file:${CONFIG_HOME}/babel-auth.properties"
14                 ignore-unresolvable="true" />
15
16         <!-- ////////////////////////////////////////////////////////////////// -->
17         <!-- CONFIG BEANS -->
18         <!-- ////////////////////////////////////////////////////////////////// -->
19
20         <bean id="babelAuthConfig" class="org.onap.aai.babel.config.BabelAuthConfig">
21                 <property name="authenticationDisable" value="${auth.authentication.disable}" />
22                 <property name="authPolicyFile" value="${auth.policy.file}" />
23         </bean>
24
25         <!-- ////////////////////////////////////////////////////////////////// -->
26         <!-- IMPLEMENTATION BEANS -->
27         <!-- ////////////////////////////////////////////////////////////////// -->
28
29         <bean id="aaiMicroServiceAuth" class="org.onap.aai.auth.AAIMicroServiceAuth">
30                 <constructor-arg ref="babelAuthConfig" />
31         </bean>
32
33 </beans>