def validate_service_ticket(st)
RAILS_DEFAULT_LOGGER.debug 'CAS: Starting to validate service ticket...' unless not defined? RAILS_DEFAULT_LOGGER
uri = URI.parse(validate_url)
h = uri.query ? query_to_hash(uri.query) : {}
h['service'] = st.service
h['ticket'] = st.ticket
h['renew'] = 1 if st.renew
h['pgtUrl'] = proxy_callback_url if proxy_callback_url
h['domain'] = Rmobio::Utils.get_domain(st.service)
uri.query = hash_to_query(h)
st.response = request_cas_response(uri, Rmobio::Cas::MobioValidationResponse)
@xml_response = st.response
return st
end