# File cas.rb, line 49 def parse_uuid(raw_text) raise BadResponseException, "CAS response is empty/blank." if raw_text.blank? @xml = check_and_parse_xml(raw_text) if is_success? @uuid = @xml.elements["cas:uuid"].text.strip if @xml.elements["cas:uuid"] RAILS_DEFAULT_LOGGER.info 'CAS: Successfully authenticated user ' + @uuid.to_s + '...' unless not defined? RAILS_DEFAULT_LOGGER else # this should never happen, since the response should already have # been recognized as invalid raise BadResponseException, "BAD CAS RESPONSE:\n#{raw_text.inspect}\n\nXML DOC:\n#{@xml.inspect}" end end