aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/babel-beans.xml
blob: e979a2e2398cae03e337ed9a58145aa7784ebbcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">

	<!-- ////////////////////////////////////////////////////////////////// -->
	<!-- PROPERTY AND CONFIGURATION FILES -->
	<!-- ////////////////////////////////////////////////////////////////// -->

	<context:property-placeholder
		location="file:${CONFIG_HOME}/babel-auth.properties"
		ignore-unresolvable="true" />

	<!-- ////////////////////////////////////////////////////////////////// -->
	<!-- CONFIG BEANS -->
	<!-- ////////////////////////////////////////////////////////////////// -->

	<bean id="babelAuthConfig" class="org.onap.aai.babel.config.BabelAuthConfig">
		<property name="authenticationDisable" value="${auth.authentication.disable}" />
		<property name="authPolicyFile" value="${auth.policy.file}" />
	</bean>

	<!-- ////////////////////////////////////////////////////////////////// -->
	<!-- IMPLEMENTATION BEANS -->
	<!-- ////////////////////////////////////////////////////////////////// -->

	<bean id="aaiMicroServiceAuth" class="org.onap.aai.auth.AAIMicroServiceAuth">
		<constructor-arg ref="babelAuthConfig" />
	</bean>

</beans>