diff options
author | Alexandros Keramidas <dev.alexkeramidas@gmail.com> | 2017-01-06 22:07:27 +0300 |
---|---|---|
committer | Alexandros Keramidas <dev.alexkeramidas@gmail.com> | 2017-02-20 19:46:58 +0300 |
commit | beb887748e8aa3bc42376656f28b689aad91dab7 (patch) | |
tree | 80f4e3e8f460c947798f2ceec0379ffbcc902b9d /config/initializers/devise.rb | |
parent | 5d8f5328baca93b9134f10ae593e71834578a9f8 (diff) |
Added support for Authentiq Back-Channel Logout
Diffstat (limited to 'config/initializers/devise.rb')
-rw-r--r-- | config/initializers/devise.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index a8afc36fc78..738dbeefc11 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -240,6 +240,17 @@ Devise.setup do |config| true end end + if provider['name'] == 'authentiq' + provider['args'][:remote_sign_out_handler] = lambda do |request| + authentiq_session = request.params['sid'] + if Gitlab::OAuth::Session.valid?(:authentiq, authentiq_session) + Gitlab::OAuth::Session.destroy(:authentiq, authentiq_session) + true + else + false + end + end + end if provider['name'] == 'shibboleth' provider['args'][:fail_with_empty_uid] = true |