Project

General

Profile

« Previous | Next » 

Revision 532683bd

Added by Patrick Plitzner almost 12 years ago

Merged latest trunk updates to branch

View differences:

cdmlib-services/src/main/resources/eu/etaxonomy/cdm/services_security.xml
34 34
          security specific configuration
35 35
        ======================================================================
36 36
     -->
37
    <security:global-method-security pre-post-annotations="enabled">
37
    <security:global-method-security pre-post-annotations="enabled" run-as-manager-ref="runAsManager" >
38 38
        <security:expression-handler ref="expressionHandler" />
39 39
    </security:global-method-security>
40 40

  
......
66 66
        <property name="userPropertyToUse" value="getUsername"/>
67 67
    </bean>
68 68

  
69
    <!--
70
        Run-As Authentication Replacement for system operations
71
        as e.g. performed by the eu.etaxonomy.cdm.api.application.FirstDataInserter
72

  
73
        the key must match FirstDataInserter.RUN_AS_KEY
74
     -->
75
    <bean id="runAsManager"
76
        class="org.springframework.security.access.intercept.RunAsManagerImpl">
77
      <property name="key" value="TtlCx3pgKC4l"/>
78
    </bean>
79

  
80
    <bean id="runAsAuthenticationProvider"
81
        class="org.springframework.security.access.intercept.RunAsImplAuthenticationProvider">
82
      <property name="key" value="TtlCx3pgKC4l"/>
83
    </bean>
84

  
85
    <!-- equips a new and empty database with the initial set of meta data and admin user   -->
86
    <bean id="firstDataInserter" class="eu.etaxonomy.cdm.api.application.FirstDataInserter">
87
        <property name="runAsAuthenticationProvider" ref="runAsAuthenticationProvider"/>
88
    </bean>
89

  
69 90
</beans>

Also available in: Unified diff