ISSUE: Topology does not show Node description as learned by the OFA
[controller.git] / opendaylight / northbound / hosttracker / src / main / resources / WEB-INF / spring / servlet / security.xml
1 <beans:beans xmlns="http://www.springframework.org/schema/security"
2         xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://www.springframework.org/schema/beans
4            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
5            http://www.springframework.org/schema/security
6            http://www.springframework.org/schema/security/spring-security-3.1.xsd">
7
8         <http auto-config="false" authentication-manager-ref="authenticationManager"
9                 security-context-repository-ref="securityContextRepo" entry-point-ref="authenticationEntryPoint">
10                 <intercept-url pattern="/**"
11                         access="ROLE_SYSTEM-ADMIN, ROLE_NETWORK-ADMIN, ROLE_NETWORK-OPERATOR, ROLE_CONTAINER-USER" />
12                 <custom-filter ref="restAuthenticationFilter" position="BASIC_AUTH_FILTER" />
13         </http>
14
15         <authentication-manager id="authenticationManager">
16                 <authentication-provider ref="AuthenticationProviderWrapper" />
17         </authentication-manager>
18
19         <beans:bean id="restAuthenticationFilter"
20           class="org.springframework.security.web.authentication.www.BasicAuthenticationFilter">
21           <beans:property name="authenticationManager" ref="authenticationManager"/>
22           <beans:property name="authenticationEntryPoint" ref="authenticationEntryPoint"/>
23         </beans:bean>
24         
25         <beans:bean id="authenticationEntryPoint"
26           class="org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint">
27           <beans:property name="realmName" value="opendaylight"/>
28         </beans:bean>
29
30         <beans:bean id="securityContextRepo"
31                 class="org.opendaylight.controller.northbound.commons.WebSecurityContextRepository" />
32
33         <beans:bean id="AuthenticationProviderWrapper"
34                 class="org.opendaylight.controller.northbound.commons.AuthenticationProviderWrapper" />
35
36 </beans:beans>