Class OmniAuth::Strategies::CAS::Configuration
In: lib/omniauth/strategies/cas/configuration.rb
Parent: Object

Methods

Constants

DEFAULT_LOGIN_URL = "%s/login"
DEFAULT_SERVICE_VALIDATE_URL = "%s/serviceValidate"
IS_NOT_URL_ERROR_MESSAGE = "%s is not a valid URL"

Public Class methods

@param [Hash] params configuration options @option params [String, nil] :cas_server the CAS server root URL; probably something like

        `http://cas.mycompany.com` or `http://cas.mycompany.com/cas`; optional.

@option params [String, nil] :cas_login_url (:cas_server + ’/login’) the URL to which to

        redirect for logins; options if `:cas_server` is specified,
        required otherwise.

@option params [String, nil] :cas_service_validate_url (:cas_server + ’/serviceValidate’) the

        URL to use for validating service tickets; optional if `:cas_server` is
        specified, requred otherwise.

@option params [Boolean, nil] :disable_ssl_verification disable verification for SSL cert,

        helpful when you developing with a fake cert.

Public Instance methods

Build a CAS login URL from service.

@param [String] service the service (a.k.a. return-to) URL

@return [String] a URL like `cas.mycompany.com/login?service=…`

Build a service-validation URL from service and ticket. If service has a ticket param, first remove it. URL-encode service and add it and the ticket as paraemters to the CAS serviceValidate URL.

@param [String] service the service (a.k.a. return-to) URL @param [String] ticket the ticket to validate

@return [String] a URL like `cas.mycompany.com/serviceValidate?service=...&ticket=…`

[Validate]