Module: CASino::ProcessorConcern::ProxyGrantingTickets

Includes:
Tickets
Included in:
CASino::ProxyTicketProviderProcessor, ServiceTicketValidatorProcessor
Defined in:
app/processors/casino/processor_concern/proxy_granting_tickets.rb

Constant Summary

Constants included from Tickets

Tickets::ALLOWED_TICKET_STRING_CHARACTERS

Instance Method Summary collapse

Methods included from Tickets

#random_ticket_string

Instance Method Details

#acquire_proxy_granting_ticket(pgt_url, service_ticket) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'app/processors/casino/processor_concern/proxy_granting_tickets.rb', line 9

def acquire_proxy_granting_ticket(pgt_url, service_ticket)
  callback_uri = Addressable::URI.parse(pgt_url)
  if callback_uri.scheme != 'https'
    Rails.logger.warn "Proxy tickets can only be granted to callback servers using HTTPS."
    nil
  else
    contact_callback_server(callback_uri, service_ticket)
  end
end