google-code-export / rubycas-client

Automatically exported from code.google.com/p/rubycas-client
1 stars 1 forks source link

Rubycas-client can't handle unauthenticated web services #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Using the restful API from the cas documentation works just fine. The
problem goes when the ST is invalid or when no STicket is given. The gem
redirects to the cas login page.

What is the expected output? What do you see instead?
I expect that the gem could handle different formats from the requested
url. I expect that when I do a GET on an url with a .xml in the end of it
without being properly authorized, that the server answers me with a "401
Unauthorized" status code and the explanation of the error.

What version of the product are you using? On what operating system?
rubycas-client-2.1.0 on a MacOSX

Please provide any additional information below.
I've already implemented the xml support, and I'm about to ask the merge
request. Hope you find it useful.

Roberto.

Original issue reported on code.google.com by robert...@gmail.com on 9 Apr 2010 at 2:00

GoogleCodeExporter commented 9 years ago
Thanks! I've merged in your change on github.

Original comment by matt.zuk...@gmail.com on 13 Apr 2010 at 5:03

GoogleCodeExporter commented 9 years ago
This seems ActiveResource specific, and it actually created a problem in our 
applications where we had to comment it out.  Perhaps this could be separated 
out into a specific adapter gem so as to not mar the general case?

Original comment by J.Mark.B...@gmail.com on 31 May 2012 at 7:46