Project

General

Profile

« Previous | Next » 

Revision 51084

1. Enable aai.
2. Create security.xml file
3. Reorganize imports.

View differences:

springContext-repo-manager.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<beans xmlns="http://www.springframework.org/schema/beans"
3 3
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
       xmlns:security="http://www.springframework.org/schema/security"
5
       xmlns:util="http://www.springframework.org/schema/util" xmlns:task="http://www.springframework.org/schema/task"
4
       xmlns:task="http://www.springframework.org/schema/task"
6 5
       xmlns:context="http://www.springframework.org/schema/context"
7
       xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd
8
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
9
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.1.xsd
10

  
6
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
11 7
		  http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
12 8
       default-autowire="byType">
13 9

  
......
31 27
    </bean>
32 28

  
33 29

  
34
    <bean id="webexpressionHandler"
35
          class="org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler"/>
30
    <!--<bean id="webexpressionHandler"
31
          class="org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler"/>-->
36 32

  
37
    <bean class="eu.dnetlib.repo.manager.server.utils.FrontEndLinkURIAuthenticationSuccessHandler" id="frontEndRedirect">
38
        <property name="frontEndURI" value="${webapp.front}"/>
39
    </bean>
40

  
41
    <!-- Enable SPEL annotation-->
42
    <security:global-method-security pre-post-annotations="enabled" proxy-target-class="true"
43
                                     authentication-manager-ref="authenticationManager"/>
44

  
45
    <security:http auto-config="false" use-expressions="true"
46
                   disable-url-rewriting="true" entry-point-ref="authenticationEntryPoint"
47
                   pattern="/**">
48
    </security:http>
49

  
50
    <!--Disable authentication from this service-->
51
    <bean id="authenticationEntryPoint"
52
          class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint"/>
53
    <security:authentication-manager alias="authenticationManager"/>
54

  
55 33
</beans>

Also available in: Unified diff