All of the validation filters that extend the base should allow you to
implement this template method:
/**
* Template method that gets executed if ticket validation
succeeds. Override if you want additional behavior to occur
* if ticket validation succeeds. This method is called after all
ValidationFilter processing required for a successful authentication
* occurs.
*
* @param request the HttpServletRequest.
* @param response the HttpServletResponse.
* @param assertion the successful Assertion from the server.
*/
protected void onSuccessfulValidation(final HttpServletRequest
request, final HttpServletResponse response, final Assertion
assertion) {
// nothing to do here.
}
will that help you?
On Mon, May 30, 2011 at 2:22 AM, Nadim <[email protected]> wrote:
> I've having a bit of an issue integrating CAS with a legacy Java
> application.
>
> It is currently working in that it redirects to the login page and I can
> login however, in the legacy application, there was a bit of logic that was
> executed at login time.
>
> I'm at a loss to figure out where I could put this logic in CAS. How can
> the client application handle a 'login' event?
>
> I tried overriding the Ticket Validation Filter and putting the logic in
> there, but I wasn't able to get access to the HTTPServletRequest object
> (which I needed to retrieve the client's IP address for example), not to
> mention it seems like a pretty dodgy solution.
>
> I read somewhere that CAS should only be used for authentication and
> actually querying the database based on that user and setting up stuff in
> the session should be handled as per the client, only I can find nowhere
> where I can actually handle this logic...
>
> Any ideas?
> --
> 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
>
--
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