Figured that out :-) So now I am one step further. Cas now redirect to the correct address but now for some reason the ticket does not validate.
When I get redirectet to the page I asked for there is a ticket parameter in the adress field. The value of this ticket is the same as the ticket value that I can see in catalina.out. How can it then be that my request for validation fails? If I on the other hand replace the service parameter with a fixed address in my code my tickets validate. I can't seem to make any sense of this.. Thanks for the help so far!! ________________________________ 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] <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] <mailto:[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.com <http://www.website.com/> so 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
