nbudin/devise_cas_authenticatable — Issue #19: CASClient::BadResponseException in Devise::CasSessionsController#service 
Author: dwickwire
Created: 2011-10-19 16:46:15+00:00
State: open

Hello again, thank you so much for your help thus far on this gem,

During validation I am getting a bad response error with the following response:

This does not appear to be a valid CAS response (missing cas:serviceResponse root element)!
XML DOC:
yes
myusername

Session Dump:
_csrf_token: "nZ2kqSuTi/rY1qdrHuY76qAR5auURc3LansuNrRU1rE="
account_return_to: "/accounts/service?ticket=ST-bqXr80RD9nByAjg1hPNoCux2kfMsT"
session_id: "ecba41acf0dd7c027ffdf9efb0ccc235"
user_return_to: "/accounts/sign_in"

Env Dump:
GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
HTTP_ACCEPT_ENCODING: "gzip, deflate"
HTTP_ACCEPT_LANGUAGE: "en-us,en;q=0.5"
REMOTE_ADDR: "127.0.0.1"
REMOTE_HOST: "localhost"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"

I noticed that its trying to use XML, I'm not sure here but I'm guessing the client isn't being told to use the CAS 1.0 architecture specifically. Is there a way to specify that through this gem or is there a problem with the CAS Server end of it?
Note: when I try to validate manually through the browser with the ticket and service as query attributes, it gives a valid plain HTML response.