Both of those examples should work.  We've enhanced the return message in
CAS 3.1 to inform you of the original provided url and the currently
provided url when it fails.

My guess is that for some reason the original service url and the newly
constructed one for your validation request do not match.  If you are
fronting Tomcat with Apache you  can check the access_log to compare the
service parameters.  If you're not, you'll need to turn on Tomcat's
access_log monitoring (I don't recall how to do that).

-Scott

On 8/9/07, Christian Haugen <[EMAIL PROTECTED]> wrote:
>
>  Is there any logs I can look at to see what goes wrong in the validation
> process? I cannot seem to figure out why validation fails when I build my
> own url compared to when i set it manually..
>
>
>
> This works:
>
> Response.Redirect("
> https://login.agresso.com/cas/login?service=http://agressonet.agresso.int
> ")
>
> https://login.agresso.com/cas/serviceValidate?ticket="; & ticket &
> "&service=http://agressonet.agresso.int";, False
>
>
>
> This doesn't:
>
> Response.Redirect(https://login.agresso.com/cas/login?service=";
> &encodedurl)
>
> https://login.agresso.com/cas/serviceValidate?ticket="; & ticket &
> "&service=" &encodedurl, False
>
>
>
> As long as the url of the login and the validation is the same, shouldn't
> the validation succeed without any problems then?
>
>
>
> Christian
>
>
>
>
>
>
>  ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Scott Battaglia
> *Sent:* 9. august 2007 13:53
> *To:* Yale CAS mailing list
> *Subject:* Re: More than one parameter in the service variable
>
>
>
> Yes, you need to URLEncode the "service" parameter!  Otherwise, as you
> see, the second parameter in your service url will be associated with the
> CAS login url and not the service url parameter.
>
> -Scott
>
> On 8/9/07, *Christian Haugen* <[EMAIL PROTECTED]> wrote:
>
> I use the following code to reconstruct the service parameter:
>
> url = "http://"; & request.ServerVariables("HTTP_HOST") &
> request.ServerVariables("URL")
>
>             If request.ServerVariables("QUERY_STRING") <> "" then
>
>             url = url & "?" & request.ServerVariables("QUERY_STRING")
>
>             End If
>
>
>
> And it produces the correct redirect url so that when I am back at the cas
> login page the correct link is saved as the service parameter. But after the
> logon button is pressed it seems like it can't save more than one variable..
>
> When the service paramameter url shows up correctly, is there a need for
> url encoding then?
>
>
>
> Christian
>
>
>
>
>  ------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]
> *On Behalf Of *Scott Battaglia
> *Sent:* 8. august 2007 16:26
> *To:* Yale CAS mailing list
> *Subject:* Re: More than one parameter in the service variable
>
>
>
> Christian,
>
> Are you URLEncoding the service parameter before you construct the
> redirect url?
>
> -Scott
>
> On 8/8/07, *Christian Haugen* < [EMAIL PROTECTED]> wrote:
>
> Hi again!
>
>
>
> One of the pages that is using cas as a loginpage uses http adresses that
> has more than one parameter. For example: 
> http://www.website.com/test?value=2&value2=p
>
>
> Now.. I want cas to redirect to that page and not just to www.website.comso I 
> retrieve the adress from the browser and build a service adress for the
> authentication redirect. It redirects fine to the cas login page with the
> correct service variable, but when you click logon and it is supposed to
> redirect me back to the service specified in the service variable it cuts
> off one of the variables so that the redirection link is now
> http://www.website.com/test?value=2 instead.
>
>
>
> Is there a way to get the cas server to redirect back to the correct page?
>
>
>
> My regards,
>
>
>
> Christian Haugen
>
>
> _______________________________________________
> 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
>
>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
> _______________________________________________
> 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