Closed GoogleCodeExporter closed 9 years ago
Our strategy has been do something like this in our logout action:
def logout
CAS::Filter.service_url = request.referer
redirect_to CAS::Filter.logout_url(self)
end
This way the CAS server gets the URL of the referring URL. However, looking at
it
now, I think this is actually really wrong! Setting the class variable
service_url
will set it for the whole class and lead to unpredictable results (in fact I
think i
just discovered the source of a long-lived bug in one of our applications that
use
rubycas-client :)
So, to fix this I've added a second parameter to logout_url() that lets you
override
the service. You should now be able to define your logout action as:
def logout
redirect_to CAS::Filter.logout_url(self, request.referer)
end
(This fix is in svn trunk rev 97)
Original comment by matt.zuk...@gmail.com
on 19 Sep 2007 at 5:05
Original issue reported on code.google.com by
ruby...@gmail.com
on 24 Aug 2007 at 11:45