devise_auth_proxy 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/devise_auth_proxy.rb +5 -1
- data/lib/devise_auth_proxy/helper.rb +1 -3
- data/lib/devise_auth_proxy/strategy.rb +1 -1
- data/lib/devise_auth_proxy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9b679470b4f07671e47ce108c45270fc227b9bccdc78cd03ca8f1dec0e1bc07
|
4
|
+
data.tar.gz: 3023d64dcc4bce3c1978eb7a3fff8de3cb313d335b45bccd9a22f3347623d760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff2a76fd427a71f5d0dc55332942b7b14f8e34acc0ad9131e5cc1f4a5cc44b83c61ccb6ed8acc69c4d70204e273a7057247c0a44dff9d91721116dce9d53137a
|
7
|
+
data.tar.gz: 1121f852ae5d984edfc245f9121c1f5b01243397a9b373e61cc5ca74c427152fb0055c9b507780fefd8cda93d3bb2628418607cd004589572c95e000158344e2
|
data/Gemfile.lock
CHANGED
data/lib/devise_auth_proxy.rb
CHANGED
@@ -3,7 +3,9 @@ require 'devise_auth_proxy/version'
|
|
3
3
|
|
4
4
|
module DeviseAuthProxy
|
5
5
|
class << self
|
6
|
-
attr_accessor :env_key, :auto_create, :auto_update, :auth_key,
|
6
|
+
attr_accessor :env_key, :auto_create, :auto_update, :auth_key,
|
7
|
+
:attribute_map, :default_role, :logout_service, :logout_url,
|
8
|
+
:http_cookie
|
7
9
|
end
|
8
10
|
|
9
11
|
# request.env key for remote user name
|
@@ -34,6 +36,8 @@ module DeviseAuthProxy
|
|
34
36
|
# (it overrides Devise's after_sign_out_path_for method).
|
35
37
|
self.logout_url = '/'
|
36
38
|
|
39
|
+
self.http_cookie = nil
|
40
|
+
|
37
41
|
def self.configure
|
38
42
|
yield self
|
39
43
|
end
|
@@ -9,14 +9,12 @@ module DeviseAuthProxy
|
|
9
9
|
unless DeviseAuthProxy.logout_service.nil?
|
10
10
|
case DeviseAuthProxy.logout_service
|
11
11
|
when 'foss_identity'
|
12
|
-
Service::FossIdentity.logout(DeviseAuthProxy.logout_url,
|
12
|
+
Service::FossIdentity.logout(DeviseAuthProxy.logout_url, DeviseAuthProxy.http_cookie)
|
13
13
|
else
|
14
14
|
# do nothing
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
session.delete(:http_cookie)
|
19
|
-
|
20
18
|
return DeviseAuthProxy.logout_url if DeviseAuthProxy.logout_url
|
21
19
|
super
|
22
20
|
end
|