I am trying to figure out how to add CAS authentication to Refinery. The best arrangement I have found so far is to use devise_cas_authenticatable
.
I used rake refinery:override model=user
and replaced :database_authenticatable
:
# /app/models/refinery/user.rb
if self.respond_to?(:devise)
devise :cas_authenticatable, ...
end
But I can't find where to set the CAS configuration values, e.g.:
Devise.setup do |config|
...
config.cas_base_url = "https://cas.myorganization.com"
...
end
Does anyone know if there is an existing initializer where this belongs? Also, any thoughts on the task of making Refinery work with CAS would be helpful. Thanks!