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]
<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

Reply via email to