safaacar / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Follow redirects in send_logout_notification_for_service_ticket #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. enable_single_sign_out
2. access client site with trailing, e.g. http://example.com/webapp/
3. rubycas-server removes trailing / from service (see issue 37), e.g.
http://example.com/webapp
4. log out
5. client site responds to logout notification with 301, e.g. request to
http://example.com/webapp is redirected to http://example.com/webapp/
6. rubycas-server does not follow redirect

What version of RubyCAS-Server are you using? How is it installed (rubygem,
manual install)? How are you running it (webrick, mongrel, passenger,
etc.)?

rubycas-server-0.7.999999.20100202 & mongrel

Please provide any additional information below.

I updated send_logout_notification_for_service_ticket to follow redirects
(using http://tinyurl.com/24kxlho as an example).  The attached patch works
for me but as it's the first time I've every written/patched ruby, you
might want to review it :)

Original issue reported on code.google.com by black.wa...@gmail.com on 2 Jun 2010 at 4:35

Attachments:

GoogleCodeExporter commented 9 years ago
Will take a look

Original comment by matt.zuk...@gmail.com on 8 Jun 2010 at 9:49