Class OmniAuth::Strategies::CAS3::ServiceTicketValidator
In: lib/omniauth/strategies/cas3/service_ticket_validator.rb
Parent: Object

Methods

call   new   user_info  

Constants

VALIDATION_REQUEST_HEADERS = { 'Accept' => '*/*' }

Public Class methods

Build a validator from a configuration, a return_to URL, and a ticket.

@param [Hash] options the OmniAuth Strategy options @param [String] return_to_url the URL of this CAS client service @param [String] ticket the service ticket to validate

Public Instance methods

Executes a network request to process the CAS Service Response

Request validation of the ticket from the CAS server‘s serviceValidate (CAS 2.0) function.

Swallows all XML parsing errors (and returns nil in those cases).

@return [Hash, nil] a user information hash if the response is valid; nil otherwise.

@raise any connection errors encountered.

[Validate]