[cas-dev] CAS - new sub-flow after authentication

shivanic shivani.chandna at gmail.com
Tue Jun 3 02:37:55 EDT 2008


Hello,

The need is to introduce an agreement page (a new flow) after
authentication. Based on a condition the page may or may not be displayed.
After the user accepts the agreement the normal CAS flow proceeds.

For this, I checked that 
CentralAuthenticationServiceImpl (CASI) method 
                                createTicketGrantingTicket(final Credentials
credentials)
                                 is doing the authentication by called the
authenticate method on
                                 authenticate manager and passing the
authenticate object to the  
                                 constructor of TicketGrantingTicketImpl.

The CASI method gets called from
AuthenticationViaFormAction (AVFA) after click of submit button on the Login
page.

Could you, the developers of CAS, validate the following changes - (in terms
of unexpected impact on existing behavior of CAS)  - It is expected that
this would impact only the initial login flow related to first time ticket
generation. 

Flow changed is -> Login Page -> Login successful -> Agreement Page ->
Agreement Accepted -> submit to AVFA to create ticket.

Changes required are in : 
 1. login-webflow.xml
 2. CentralAuthenticationServiceImpl (CASI) 
           a. Remove the creation of authentication in createTicket()  to
another 
               method in CAM validateUser(Credentials)
           b. Modify the createTicket( ) to take authenticate as a param
instead of credentials.
           c. Create a new method call validateUser to authenticate user and
return the authenticate 
               object.

3. AuthenticationViaFormAction (AVFA) following changes:
     a. Create a new method in AVFA - named processTPA that calls
CASI.validateUser(Credentials)  
         and store it in object of Agreement class.
     b. Modify the submit method in AVFA to call the createTicket()  with
param  = Authenticate 
         object from Agreement rather than Credential .
  
3. Create a new Agreement class that has  instance Authentication stored  
4. AVFA has object of Agreement  that is used to call createTicket of CASI.

Thanks to validate the above changes. 

Shivani.
-- 
View this message in context: http://www.nabble.com/CAS---new-sub-flow-after-authentication-tp17616948p17616948.html
Sent from the CAS Dev mailing list archive at Nabble.com.



More information about the cas-dev mailing list