aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/devise.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/devise.rb')
-rw-r--r--config/initializers/devise.rb47
1 files changed, 47 insertions, 0 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index b91fa3c19..aacc8ad0b 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -276,6 +276,53 @@ Devise.setup do |config|
# When using omniauth, Devise cannot automatically set Omniauth path,
# so you need to do it manually. For the users scope, it would be:
# config.omniauth_path_prefix = '/my_engine/users/auth'
+
+ config.cas_base_url = "http://stif-portail-dev.af83.priv/sessions"
+
+ # you can override these if you need to, but cas_base_url is usually enough
+ # config.cas_login_url = "https://cas.myorganization.com/login"
+ # config.cas_logout_url = "https://cas.myorganization.com/logout"
+ # config.cas_validate_url = "https://cas.myorganization.com/serviceValidate"
+
+ # The CAS specification allows for the passing of a follow URL to be displayed when
+ # a user logs out on the CAS server. RubyCAS-Server also supports redirecting to a
+ # URL via the destination param. Set either of these urls and specify either nil,
+ # 'destination' or 'follow' as the logout_url_param. If the urls are blank but
+ # logout_url_param is set, a default will be detected for the service.
+ # config.cas_destination_url = 'https://cas.myorganization.com'
+ # config.cas_follow_url = 'https://cas.myorganization.com'
+ # config.cas_logout_url_param = nil
+
+ # You can specify the name of the destination argument with the following option.
+ # e.g. the following option will change it from 'destination' to 'url'
+ # config.cas_destination_logout_param_name = 'url'
+
+ # By default, devise_cas_authenticatable will create users. If you would rather
+ # require user records to already exist locally before they can authenticate via
+ # CAS, uncomment the following line.
+ config.cas_create_user = false
+
+ # You can enable Single Sign Out, which by default is disabled.
+ # config.cas_enable_single_sign_out = true
+
+ # If you don't want to use the username returned from your CAS server as the unique
+ # identifier, but some other field passed in cas_extra_attributes, you can specify
+ # the field name here.
+ # config.cas_user_identifier = nil
+
+ # If you want to use the Devise Timeoutable module with single sign out,
+ # uncommenting this will redirect timeouts to the logout url, so that the CAS can
+ # take care of signing out the other serviced applocations. Note that each
+ # application manages timeouts independently, so one application timing out will
+ # kill the session on all applications serviced by the CAS.
+ # config.warden do |manager|
+ # manager.failure_app = DeviseCasAuthenticatable::SingleSignOut::WardenFailureApp
+ # end
+
+ # If you need to specify some extra configs for rubycas-client, you can do this via:
+ # config.cas_client_config_options = {
+ # logger: Rails.logger
+ # }
end
Rails.application.config.to_prepare do