Sha256: d9a44000643689a81aba7de7d439154e795b878c590dca1808d8f8310448abdc
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
module Castronaut module Presenters class ServiceValidate < Base MissingCredentialsMessage = "Please supply a username and password to login." attr_reader :service_ticket_result attr_accessor :login_ticket def proxy_granting_ticket_url params['pgtUrl'] end def proxy_granting_ticket_iou @proxy_granting_ticket_result && @proxy_granting_ticket_result.iou end def identifier @service_ticket_result.identifier end def extra_xml @service_ticket_result.extra_xml end def represent! @service_ticket_result = Castronaut::Models::ServiceTicket.validate_ticket(service, ticket) if @service_ticket_result.valid? if proxy_granting_ticket_url @proxy_granting_ticket_result = Castronaut::Models::ProxyGrantingTicket.generate_ticket(proxy_granting_ticket_url, client_host, @service_ticket_result.ticket) end end @your_mission = { :template => :service_validate, :layout => false } self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
3mix-castronaut-0.5.0.2 | lib/castronaut/presenters/service_validate.rb |