dlindahl / omniauth-cas

A CAS OmniAuth Strategy
MIT License
88 stars 79 forks source link

If you are using the callback method of setup it fails #23

Closed eriko closed 10 years ago

eriko commented 10 years ago

Example below. This causes a " :host and :login_url MUST be provided" error. Also passing in url will cause the same.

omniauth.provider :cas,
                      :setup => lambda { |env|
                        strategy = env["omniauth.strategy"]
                        strategy.options[:host] = SiteSetting.plugin_cas_sso_host
                        strategy.options[:login_url] = SiteSetting.plugin_cas_sso_path
                      }
dlindahl commented 10 years ago

Is this related to your #25 PR?

eriko commented 10 years ago

yes

dlindahl commented 10 years ago

Closing since #25 was merged in.