Sha256: c2507351ec4e4755de608d4af9bb474a530fa97cbc9775592ae44a45e2de0b74
Contents?: true
Size: 682 Bytes
Versions: 25
Compression:
Stored size: 682 Bytes
Contents
module CASClient # Represents a CAS service ticket. class ServiceTicket attr_reader :ticket, :service, :renew attr_accessor :response def initialize(ticket, service, renew = false) @ticket = ticket @service = service @renew = renew end def is_valid? response.is_success? end def has_been_validated? not response.nil? end end # Represents a CAS proxy ticket. class ProxyTicket < ServiceTicket end class ProxyGrantingTicket attr_reader :ticket, :iou def initialize(ticket, iou) @ticket = ticket @iou = iou end def to_s ticket end end end
Version data entries
25 entries across 25 versions & 7 rubygems