More than one parameter in the service variable

Scott Battaglia scott.battaglia at gmail.com
Thu Aug 9 07:53:28 EDT 2007


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 <christian.haugen at agresso.no> 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:* cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu] *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* < christian.haugen at agresso.no> 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
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070809/83360a06/attachment.html 


More information about the cas mailing list