Guest User

Untitled

a guest
Jan 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <bean id="switchUserProcessingFilter"
  2. class="org.springframework.security.web.authentication.switchuser.SwitchUserFilter">
  3. <property name="userDetailsService" ref="customDetailService" />
  4. <property name="switchUserUrl" value="/j_spring_security_switch_user" />
  5. <property name="exitUserUrl" value="/j_spring_security_exit_user" />
  6. <property name="targetUrl" value="/" />
  7. </bean>
  8.  
  9. <h:form>
  10. <h:inputText id="j_username" value="" styleClass="textInput" size="50"/>
  11. <p>Click <h:commandLink value="here" action="/j_spring_security_switch_user"/> to switch to
  12. user </p>
  13. </h:form>
Add Comment
Please, Sign In to add comment