lib/omniauth/patches.rb
# patch to accept a different host for service_validate_url
patch to accept a different host for service_validate_url
patch to accept a different host for service_validate_url
def service_validate_url_with_different_host(service_url, ticket)
        service_url = Addressable::URI.parse( service_url )
        service_url.query_values = service_url.query_values.tap { |qs| qs.delete('ticket') }
        validate_url = Addressable::URI.parse( @options.service_validate_url )
        if service_url.host.nil? || validate_url.host.nil?
          cas_url + append_params(@options.service_validate_url, { :service => service_url.to_s, :ticket => ticket })
        else
          append_params(@options.service_validate_url, { :service => service_url.to_s, :ticket => ticket })
        end
      end
def service_validate_url_with_different_host ( service_url , ticket ) service_url = Addressable :: URI . parse ( service_url ) service_url . query_values = service_url . query_values . tap { | qs | qs . delete ( 'ticket' ) } validate_url = Addressable :: URI . parse ( @options . service_validate_url ) if service_url . host . nil? || validate_url . host . nil? cas_url + append_params ( @options . service_validate_url , { :service => service_url . to_s , :ticket => ticket } ) else append_params ( @options . service_validate_url , { :service => service_url . to_s , :ticket => ticket } ) end end
patch to accept a different host for service_validate_url
patch to accept a different host for service_validate_url
service_url
<not_specific>
ticket
<not_specific>