devise_auth_proxy 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/devise_auth_proxy/version.rb +1 -1
- data/lib/service/foss_identity.rb +1 -0
- 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: a7b8c06f1cfc1c095e593694745b2c94df0248d34636bf4a7a360dab88b374d3
|
4
|
+
data.tar.gz: 76e606ebdc8fc7c8042058429769aeeb9100f6b8ab9b7898a30d8a867e3b10f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c10add109b98d5f2a052b1aea8011f277cea8f07674454dc8c47fc3ae85038d2905b0f519397665c67f032e51d7e09916f8446e82eb5aae014d6424d93a35a2
|
7
|
+
data.tar.gz: 65854419db6ccbc644c0bf456c5ea8a6f605ff3eda9a4be3b4269aaa3e79304fa93ae1cbad0846d7bb4f00789147b693d89030e772be988b2fe65b75b5cef4a9
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -32,6 +32,7 @@ Configuration options:
|
|
32
32
|
* `auto_create` - Boolean (default: false). Whether to auto-create a local user from the proxy user attributes. Note: Also requires adding the Warden callbacks as shown below.
|
33
33
|
* `auto_update` - Boolean (default: false). Whether to auto-update authenticated user attributes from proxy user attributes.
|
34
34
|
* `default_role` - List (default: []). A list of role default for new user. If your application integrate with CanCan of something like that.
|
35
|
+
* `logout_service` - String. A service to handle logout session.
|
35
36
|
* `logout_url` - String (default: '/'). For redirecting to a proxy user logout URL after signing out of the Rails application. Include DeviseAuthProxy::ControllerBehavior in your application controller to enable (by overriding Devise's after_sign_out_path_for).
|
36
37
|
|
37
38
|
|
@@ -46,6 +47,7 @@ DeviseAuthProxy.configure do |config|
|
|
46
47
|
config.auto_update = true
|
47
48
|
config.attribute_map = { email: 'mail' }
|
48
49
|
config.default_role = ['role_name / role_id']
|
50
|
+
config.logout_service = '<service name>'
|
49
51
|
config.logout_url = "http://localhost:3000/logout"
|
50
52
|
end
|
51
53
|
```
|