login-webflow.xml 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <flow xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://www.springframework.org/schema/webflow"
  4. xsi:schemaLocation="http://www.springframework.org/schema/webflow
  5. http://www.springframework.org/schema/webflow/spring-webflow.xsd">
  6. <action-state id="initializeLoginForm">
  7. <evaluate expression="initializeLoginAction" />
  8. <transition on="success" to="viewLoginForm"/>
  9. </action-state>
  10. <view-state id="viewLoginForm" view="casLoginView" model="credential">
  11. <binder>
  12. <binding property="username" required="true"/>
  13. <binding property="password" required="true"/>
  14. </binder>
  15. <transition on="submit" bind="true" validate="true" to="realSubmit" history="invalidate"/>
  16. </view-state>
  17. <action-state id="realSubmit">
  18. <evaluate expression="authenticationViaFormAction"/>
  19. <transition on="warn" to="warn"/>
  20. <transition on="success" to="createTicketGrantingTicket"/>
  21. <transition on="successWithWarnings" to="showAuthenticationWarningMessages"/>
  22. <transition on="authenticationFailure" to="handleAuthenticationFailure"/>
  23. <transition on="error" to="initializeLoginForm"/>
  24. </action-state>
  25. </flow>