I could not understand why you are checking the password change flag at the time of password validation. What I would suggest is to write separate action for checking that flag or somehow separate that flag and password changing part from the authentication handler then you need not use exception for password change flag on state.
Lekhnath

Giorgio R. wrote:
Thanks All for reply,
i woul'd like to try altering the login-webflow by adding a new state that reside between the submit and sendTicketGrantingTicket. The problem is : how can i intercept my custom "NeedChangePwdException" and how can i differenciate it from others exceptions (for exemple from the standard BadCredentialsAuthenticationException ) ?

I can do something like that :

<action-state id="submit">
  <action bean="authenticationViaFormAction" method="submit" />
    <transition on="warn" to="warn" />
<!-- CUSTOM i need to add a transition that intercept my NeedChangePwdException. How ? -->

<transition on="error" (needToChangePwdException) to "changePassword"/>

    <!-- CUSTOM END -->

    <transition on="success" to="sendTicketGrantingTicket" />
    <transition on="error" to="viewLoginForm" />
</action-state>

<!-- new state-->
<action-state id="changePassword">
 <action bean="changePassword" />
   <transition on="success" to="sendTicketGrantingTicket" />
   <transition on="error" to="changePassword" />
</action-state>
        

<action-state id="sendTicketGrantingTicket">
  <action bean="sendTicketGrantingTicketAction" />
    <transition on="success" to="serviceCheck" />
</action-state>

I need also a decision-state?
Any help will be appreciate.

Giorgio

--
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