Class: OmniAuth::Strategies::UocCas
- Inherits:
-
CAS
- Object
- CAS
- OmniAuth::Strategies::UocCas
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/uoc_cas.rb
Instance Method Summary collapse
-
#initialize(app, options = {}, &block) ⇒ UocCas
constructor
A new instance of UocCas.
Constructor Details
#initialize(app, options = {}, &block) ⇒ UocCas
Returns a new instance of UocCas.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/omniauth/strategies/uoc_cas.rb', line 8 def initialize(app, = {}, &block) = { :name => :uoc_cas, :host => 'cv.uoc.edu', :login_url => '/webapps/cas/login', :logout_url => '/webapps/cas/logout', :service_validate_url => '/webapps/cas/serviceValidate', :name_key => 'fullName', }.merge(); if Rails.env.staging? [:host] = 'cv-pre.uoc.edu' [:disable_ssl_verification] = true end if Rails.env.test? or Rails.env.development? [:host] = 'cv-test.uoc.edu' [:disable_ssl_verification] = true end super(app, , &block) end |