Class: CASino::ServiceTicketValidatorProcessor
- Defined in:
- app/processors/casino/service_ticket_validator_processor.rb
Overview
The ServiceTicketValidator processor should be used to handle GET requests to /serviceValidate
Direct Known Subclasses
Constant Summary
Constants included from ProcessorConcern::Tickets
ProcessorConcern::Tickets::ALLOWED_TICKET_STRING_CHARACTERS
Constants included from ProcessorConcern::ServiceTickets
ProcessorConcern::ServiceTickets::RESERVED_CAS_PARAMETER_KEYS
Instance Method Summary collapse
-
#process(params = nil) ⇒ Object
This method will call ‘#validation_succeeded` or `#validation_failed`.
Methods included from ProcessorConcern::ProxyGrantingTickets
#acquire_proxy_granting_ticket
Methods included from ProcessorConcern::Tickets
Methods included from ProcessorConcern::ServiceTickets
#acquire_service_ticket, #clean_service_url
Methods included from ProcessorConcern::ProxyTickets
#acquire_proxy_ticket, #ticket_valid_for_service?, #validate_ticket_for_service
Methods inherited from Processor
Constructor Details
This class inherits a constructor from CASino::Processor
Instance Method Details
#process(params = nil) ⇒ Object
This method will call ‘#validation_succeeded` or `#validation_failed`. In both cases, it supplies a string as argument. The web application should present that string (and nothing else) to the requestor. The Content-Type should be set to ’text/xml; charset=utf-8’
11 12 13 14 15 16 17 |
# File 'app/processors/casino/service_ticket_validator_processor.rb', line 11 def process(params = nil) params ||= {} if request_valid?(params) ticket = CASino::ServiceTicket.where(ticket: params[:ticket]).first validate_ticket!(ticket, params) end end |