Project

General

Profile

« Previous | Next » 

Revision 6548ea8a

Added by Cherian Mathew almost 9 years ago

  • corrected recursive autowiring
  • changed application context loading to be more performant

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/remoting_services_security.xml
15 15
          security specific configuration
16 16
        ======================================================================
17 17
     -->
18
    <security:global-method-security pre-post-annotations="enabled" run-as-manager-ref="runAsManager" >
19
        <security:expression-handler ref="expressionHandler" />
20
    </security:global-method-security>
18
<!--     <security:global-method-security pre-post-annotations="enabled" run-as-manager-ref="runAsManager" > -->
19
<!--         <security:expression-handler ref="expressionHandler" /> -->
20
<!--     </security:global-method-security> -->
21 21

  
22 22
    <!--
23 23
        To use "hasPermission()" in the Spring EL method annotations like @PreAuthorize we explicitly configure the permissionEvaluator
24 24
        the cdmPermissionEvaluator is already defined in the persistence security context
25 25
    -->
26
    <bean id="expressionHandler" class="org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler">
27
        <property name="permissionEvaluator" ref="cdmPermissionEvaluator" />
28
    </bean>
26
<!--     <bean id="expressionHandler" class="org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler"> -->
27
<!--         <property name="permissionEvaluator" ref="cdmPermissionEvaluator" /> -->
28
<!--     </bean> -->
29 29

  
30 30
    <bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager">
31 31
        <property name="providers">
......
53 53

  
54 54
        the key must match FirstDataInserter.RUN_AS_KEY
55 55
     -->
56
    <bean id="runAsManager"
57
        class="org.springframework.security.access.intercept.RunAsManagerImpl">
58
      <property name="key" value="TtlCx3pgKC4l"/>
59
    </bean>
56
<!--     <bean id="runAsManager" -->
57
<!--         class="org.springframework.security.access.intercept.RunAsManagerImpl"> -->
58
<!--       <property name="key" value="TtlCx3pgKC4l"/> -->
59
<!--     </bean> -->
60 60

  
61 61

  
62 62
</beans>

Also available in: Unified diff