Updating the service parameter

Ole Ersoy ole.ersoy at gmail.com
Fri Feb 1 00:21:10 EST 2008


Scott,

I'm looking to set it on the server.  For instance if a user logs in via the main cas login page (Thus no service parameter in the URL), the filter  would look up the default URL (Keyed by loginID) and add it to the request parameters.

So the servlet filter would first look at the incoming request to see if service is set.  If it is set, then it lets the request continue on for CAS authentication.  If it is not set, then the filter looks up the users default webapp, and adds that as the application that CAS will redirect to post successful authentication.

Thanks,
- Ole

Scott Battaglia wrote:
> Are you looking to set the service parameter on the client or on the server?
> 
> -Scott
> 
> On Jan 31, 2008 5:57 PM, Ole Ersoy <ole.ersoy at gmail.com 
> <mailto:ole.ersoy at gmail.com>> wrote:
> 
>     Hi,
> 
>     I'd like to set the service parameter before the authentication
>     request reaches cas.  Is this is simple as doing:
> 
>     request.setParameter("service",
>     "http://theDefaultServiceHost/theDefaultService");
> 
>     The reason I'm suspicious is because I tried just getting the
>     service parameter from an authentication request via a filter like this:
> 
>     System.out.println("Service Parameter: " +
>     servletRequest.getAttribute("service"));
> 
>     And it just prints null...
> 
>     Thoughts?
> 
>     Thanks,
>     - Ole
> 
> 
> 
>     _______________________________________________
>     Yale CAS mailing list
>     cas at tp.its.yale.edu <mailto:cas at tp.its.yale.edu>
>     http://tp.its.yale.edu/mailman/listinfo/cas
> 
> 
> 
> 
> -- 
> -Scott Battaglia
> 
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas


More information about the cas mailing list