Hi All,
First, thanks to the SpringSecurity team for a great product! kudos...
I need to use the SwitchUser functionality in one of our apps. Switching to a different user works great, however, it seems that j_spring_security_exit_user does not switch back to the original 'supervisor' role.
I am using SpringSecurity 2.0.4.
My setup is very simple:
applicationContext-security.xml:
and...Code:<intercept-url pattern="/csr/j_spring_security_switch_user" access="ROLE_CSR"/> <intercept-url pattern="/csr/j_spring_security_exit_user" access="ROLE_CSR"/>
And the form just calls:Code:<beans:bean id="switchUserProcessingFilter" class="org.springframework.security.ui.switchuser.SwitchUserProcessingFilter"> <custom-filter position="SWITCH_USER_FILTER"/> <beans:property name="userDetailsService" ref="myUserDetails"/> <beans:property name="switchUserUrl" value="/csr/j_spring_security_switch_user"/> <beans:property name="exitUserUrl" value="/csr/j_spring_security_exit_user"/> <beans:property name="targetUrl" value="/homebase"/> </beans:bean>
I would very much appreciate any insight, advice or thoughts about this.Code:<form action="/coyote1/csr/j_spring_security_exit_user" method="POST" target="frame1"> <input name="exit" type="submit" value="Exit user"/> </form>
Thanks


