Ok i solved the first issue: i simply miss the bindAndValidate method

now my flow is :

<view-state id="viewLoginForm" view="casLoginView">
  <render-actions>
    <action bean="authenticationViaFormAction" method="setupForm"/>
    <action bean="authenticationViaFormAction"  
 method="referenceData"/>
  </render-actions>
  <transition on="submit" to="bindAndValidate" />
 </view-state>


 <action-state id="bindAndValidate">
  <action bean="authenticationViaFormAction" />
  <transition on="success" to="submit" />
  <transition on="error" to="viewLoginForm" />
 </action-state>


 <action-state id="submit">
  <action bean="authenticationViaFormAction" method="submit" />
    <transition on="warn" to="warn" />
 <!--CUSTOM TRANSITION-->
    <transition on="forceChangePassword" to "viewChangePassword"/>
    <transition on="success" to="sendTicketGrantingTicket" />
    <transition on="error" to="viewLoginForm" />
 </action-state>

 <!-- CUSTOM VIEW -->
 <view-state id="viewChangePassword" view="casChangePasswordView">
  <render-actions>
    <action bean="changePasswordAction" method="setupForm"/>
    <action bean="changePasswordAction" method="referenceData"/>
  </render-actions>
  <transition on="submit" to="bindAndValidateNewPassword" />
 </view-state>

 <action-state id="bindAndValidateNewPassword">
  <action bean="changePasswordAction" method="BindAndValidate"/>
  <transition on="success" to="saveNewPassword" />
  <transition on="error" to="viewChangePassword" />
 </action-state>
 
 <!-- CUSTOM ACTION -->
 <action-state id="saveNewPassword">
  <action bean="changePasswordAction" method="submit" />
    <transition on="success" to="sendTicketGrantingTicket" />
    <transition on="error" to="changePasswordAction" />
 </action-state>



Now the problem is : the user is not logged in but he give me 
correct credentials and i correct change his password;
I would like to "silent" login after password change;
if i call sendTicketGrantingTicket on success i caught an exception
because the TGC is null. What can i do (other then call 
viewLoginForm again and re-insert credentials ? ) 

thanks all

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to