lib/casclient/client.rb
def request_login_ticket
      uri = URI.parse(login_url+'Ticket')
      https = Net::HTTP.new(uri.host, uri.port)
      https.use_ssl = (uri.scheme == 'https')
      https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE)
      res = https.post(uri.path, ';')
      
      raise CASException, res.body unless res.kind_of? Net::HTTPSuccess
      
      res.body.strip
    end
# Requests a login ticket from the CAS server for use in a login request;
# returns a LoginTicket object.
#
# This only works with RubyCAS-Server, since obtaining login
# tickets in this manner is not part of the official CAS spec.
Requests a login ticket from the CAS server for use in a login request;
returns a LoginTicket object.

This only works with RubyCAS-Server, since obtaining login
tickets in this manner is not part of the official CAS spec.
Requests a login ticket from the CAS server for use in a login request ; returns a LoginTicket object . This only works with RubyCAS - Server since obtaining login tickets in this manner is not part of the official CAS spec .
def request_login_ticket
      uri = URI.parse(login_url+'Ticket')
      https = Net::HTTP.new(uri.host, uri.port)
      https.use_ssl = (uri.scheme == 'https')
      https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE)
      res = https.post(uri.path, ';')
      raise CASException, res.body unless res.kind_of? Net::HTTPSuccess
      res.body.strip
    end
def request_login_ticket uri = URI . parse ( login_url + 'Ticket' ) https = Net :: HTTP . new ( uri . host , uri . port ) https . use_ssl = ( uri . scheme == 'https' ) https . verify_mode = ( @force_ssl_verification ? OpenSSL :: SSL :: VERIFY_PEER : OpenSSL :: SSL :: VERIFY_NONE ) res = https . post ( uri . path , ';' ) raise CASException , res . body unless res . kind_of? Net :: HTTPSuccess res . body . strip end
Requests a login ticket from the CAS server for use in a login request;
returns a LoginTicket object.
Requests a login ticket from the CAS server for use in a login request ; returns a LoginTicket object .