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 <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> 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
>     [email protected] <mailto:[email protected]>
>     http://tp.its.yale.edu/mailman/listinfo/cas
> 
> 
> 
> 
> -- 
> -Scott Battaglia
> 
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to