Hi,

   I'm using an application that emails links to users to view reports and 
need to redirect these links through CAS (version 3.5.2). The issue is that 
the application does not URL encode these links when sending to the user as 
there is no requirement to do so. If the URL is clicked "as-is", it gets 
redirected to CAS which will strip off any extra parameters it finds. I 
want to know if it would be possible to have CAS auto-encode the request 
URL it receives before creating the service string. Here is an example of a 
URL that is clicked by a user 

https:
//test.domain.com/EMPLOYEE/CDM_RPT.GBL?Page=CDM_RPT_INDEX&Action=U&CDM_ID=1234567

I redirect this to

https:
//cas2.domain.com/cas/login?method=POST&service=https://test.domain.com/EMPLOYEE/CDM_RPT.GBL?Page=CDM_RPT_INDEX&Action=U&CDM_ID=1234567


After the user authenticates with the above URL, the service used becomes

https://test.domain.com/EMPLOYEE/CDM_RPT.GBL?Page=CDM_RPT_INDEX

as Action is read as another parameter due to the ampersand. I would like 
the entire URL to be used as a service and be altered to the following 

https:
//test.domain.com/EMPLOYEE/CDM_RPT.GBL?Page=CDM_RPT_INDEX%26Action=U%26CDM_ID=1234567

Does CAS have the capability to auto-encode this for me? So all the '&' 
would change to '%26'. The only other alternative would be to figure out 
how to get the application itself to auto-encode the URL but users wouldn't 
have a "user-friendly" URL.

I looked over the CAS 3.5.2 source code and noticed that the service is 
generated in this method within the SimpleWebApplicationServiceImpl class

SimpleWebApplicationServiceImpl createServiceFrom(final HttpServletRequest 
request, final HttpClient httpClient) { ... }

This is the only spot I can see where modifying the service URL would work.

Any input is appreciated.

Thanks!!

Dan

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/afacaa72-9758-4166-858d-29164025e14b%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to