Hello.

We're using CAS 3.4.6.

I'm trying to integrate a disclaimer page ("Accept"/"Decline") into the CAS web 
flow.  The disclaimer page has to open after logging in and, if necessary, 
changing the user's password.  Once the user logs in and is authenticated, an 
application select page opens (the application select page is the service).  
When the user clicks a link to open an application, the application opens in a 
new browser tab.

A requirement is that the user should also be able type the URL for one of the 
applications (e.g. http://myserver:8080/myapps/app1) and it will open.

I'm trying to set it up so that if a user is on the disclaimer view and types 
in a URL for one of the applications, then the user will be prevented from 
opening the application and will be redirectd back to the disclaimer view.  The 
result will be that the user cannot get past the disclaimer view and to the 
service until (s)he clicks "Accept".  If the user clicks "Decline", then (s)he 
will be logged out and the ticket granting ticket will be destroyed.

I've created a disclaimer view, and a disclaimer action that logs if the user 
clicked "Accept" or "Decline".  The disclaimer action also has a method that 
gets the disclaimer from the database and puts it in flow scope.  When the 
disclaimer view opens, it gets the disclaimer from flow scope and displays it.  
 The methods for logging get run from the disclaimer view's transitions.  I've 
put the disclaimer action and view just before sendTicketGrantingTicket.

The problem is that I can't figure out how to redirect the user back to the 
disclaimer page if they type an application's URL into the browser.  I've tried 
an interceptor, but I can't get the flow scope into the ineterceptor, because 
the request context is null.  I also tried the same thing with a servlet 
filter.  Could create a new controller for this?  If so then how to I integrate 
the new controller?

Thanks in advance for your help.
-- 
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-user

Reply via email to