Class OmniAuth::Strategies::CAS::ServiceTicketValidator
In: lib/omniauth/strategies/cas/service_ticket_validator.rb
Parent: Object

Methods

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 [OmniAuth::Strategies::CAS::Configuration] configuration the CAS configuration @param [String] return_to_url the URL of this CAS client service @param [String] ticket the service ticket to validate

Public Instance methods

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]