30 lines
1.3 KiB
XML
30 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<flow xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://www.springframework.org/schema/webflow"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/webflow
|
|
http://www.springframework.org/schema/webflow/spring-webflow.xsd">
|
|
|
|
<action-state id="initializeLoginForm">
|
|
<evaluate expression="initializeLoginAction" />
|
|
<transition on="success" to="viewLoginForm"/>
|
|
</action-state>
|
|
|
|
<view-state id="viewLoginForm" view="casLoginView" model="credential">
|
|
<binder>
|
|
<binding property="username" required="true"/>
|
|
<binding property="password" required="true"/>
|
|
</binder>
|
|
<transition on="submit" bind="true" validate="true" to="realSubmit" history="invalidate"/>
|
|
</view-state>
|
|
|
|
<action-state id="realSubmit">
|
|
<evaluate expression="authenticationViaFormAction"/>
|
|
<transition on="warn" to="warn"/>
|
|
<transition on="success" to="createTicketGrantingTicket"/>
|
|
<transition on="successWithWarnings" to="showAuthenticationWarningMessages"/>
|
|
<transition on="authenticationFailure" to="handleAuthenticationFailure"/>
|
|
<transition on="error" to="initializeLoginForm"/>
|
|
</action-state>
|
|
|
|
</flow>
|