oidc_provider 0.3.3 → 0.3.8
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb23ef5e321d9cb62cc42b2dc12f889d0cb1afdf196a0325cf366c5e51042041
|
|
4
|
+
data.tar.gz: 9c8561368c279b8357010eba05af33273ae9edd65f9a79abb3ecc816db740e78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b70af33eb18c724ea06966d38095ba2721cb95f2724b1a29b098a2e4960f166863475d96d702554747e08b252adb237ed8091d5ccd062931886bb54e78f936cf
|
|
7
|
+
data.tar.gz: dead7551211061e07783f4120c3abd1b8c9dedb3c048c8636feeabeec9ee97ce444a83a1b29e64c84eaab6729a89a1d7ba1cb55995ab15c21df440bb96e4db1e
|
|
@@ -4,7 +4,8 @@ module OIDCProvider
|
|
|
4
4
|
|
|
5
5
|
def destroy
|
|
6
6
|
unauthenticate!
|
|
7
|
-
redirect_to
|
|
7
|
+
redirect_to "/" unless OIDCProvider.after_sign_out_path
|
|
8
|
+
redirect_to OIDCProvider.after_sign_out_path.respond_to?(:call) ? OIDCProvider.after_sign_out_path.call(params) : OIDCProvider.after_sign_out_path
|
|
8
9
|
end
|
|
9
10
|
end
|
|
10
11
|
end
|
data/lib/oidc_provider.rb
CHANGED
|
@@ -34,9 +34,14 @@ module OIDCProvider
|
|
|
34
34
|
mattr_accessor :current_authentication_method
|
|
35
35
|
@@current_authentication_method = :authenticate_user!
|
|
36
36
|
|
|
37
|
+
mattr_accessor :current_unauthenticate_method
|
|
38
|
+
@@current_unauthenticate_method = :sign_out
|
|
39
|
+
|
|
37
40
|
mattr_accessor :account_identifier
|
|
38
41
|
@@account_identifier = :id
|
|
39
42
|
|
|
43
|
+
mattr_accessor :after_sign_out_path
|
|
44
|
+
|
|
40
45
|
def self.add_client(&block)
|
|
41
46
|
@@clients << Client::Builder.new(&block).build
|
|
42
47
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oidc_provider
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Carey
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-10-
|
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: '0'
|
|
96
96
|
requirements: []
|
|
97
|
-
|
|
98
|
-
rubygems_version: 2.7.6.2
|
|
97
|
+
rubygems_version: 3.0.3
|
|
99
98
|
signing_key:
|
|
100
99
|
specification_version: 4
|
|
101
100
|
summary: Uses the openid_connect gem to turn a Rails app into an OpenID Connect provider.
|