Scott,

Thanks for the pointer.

So to clarify a few things:

1. Adding a default service is not yet supported by cas 3.1.1 out of the
box.

2. We'd probably need to patch the code. 
We'd probably add a default service in cas.properties file, and access
it from this flow class. Does this sound reasonable?

3. Granted we write a good code, does it look like something that would
benefit cas project in general?

Thanks,
Ezra


On Fri, 2008-01-25 at 19:36 -0500, Scott Battaglia wrote:
> Ezra,
> 
> The service is extracted and set in the InitialFlowAction:
> http://developer.ja-sig.org/source/browse/jasigsvn/cas3/trunk/cas-server-core/src/main/java/org/jasig/cas/web/flow/InitialFlowSetupAction.java?r=42776
> 
> You should have an action after that that checks for the setting of
> the service and if not adds the default.
> 
> -Scott
> 
> On Jan 25, 2008 6:42 PM, Ezra Nugroho <[EMAIL PROTECTED]>
> wrote:
>         Dear CAS experts,
>         
>         
>         We used to use Cas 3.0.5 in our product, and we are recently
>         trying to
>         upgrade to cas 3.1.1.
>         
>         We customized the cas login screen so that if someone tries to
>         login
>         without setting up the service url value, the default service
>         will be
>         selected.
>         
>         We did so by adding a conditional statement to the action of
>         the login
>         form post.
>         
>         
>         code:
>         
>         String queryString =
>         StringUtils.hasText(request.getQueryString())
>                        ? "?" + request.getQueryString()
>                        : "?service=" + server + "landing/";
>         
>         
>         <form method="post"
>         onsubmit="set_remember_me_flag($('remember_me').checked);
>         return true;" action="<%=actionUrl%>">
>          <!-- the login form ... -->
>         
>         </form>
>         
>         end
>         
>         
>         Such trick seems no longer working in CAS 3.1.1. On a
>         successful
>         authentication, the user only gets the standard "Login
>         Successful"
>         message, although the url now consists of a service url.
>         
>         
>         I also tried to add the service value as a post input, with no
>         success.
>         
>         Is there a better way to set up the default service?
>         
>         Thank you,
>         Ezra
>         
>         
>         _______________________________________________
>         Yale CAS mailing list
>         [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

Reply via email to