Forráskód Böngészése

added switchUserProcessingFilter config, not added to filter chain (yet)

Mark St. Godard 20 éve
szülő
commit
230d1946b9

+ 9 - 0
samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml

@@ -180,4 +180,13 @@
       </property>
    </bean>
 
+   <!-- Filter used to switch the user context. Note: the switch and exit url must be secured 
+        based on the role granted the ability to 'switch' to another user -->
+   <bean id="switchUserProcessingFilter" class="net.sf.acegisecurity.ui.switchuser.SwitchUserProcessingFilter">
+      <property name="authenticationDao" ref="jdbcDaoImpl" />
+	  <property name="switchUserUrl"><value>/j_acegi_switch_user</value></property>
+	  <property name="exitUserUrl"><value>/j_acegi_exit_user</value></property>
+	  <property name="targetUrl"><value>/secure/index.htm</value></property>
+   </bean>    
+
 </beans>