test_openid_connect 0.1.11 → 0.1.12
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/lib/omniauth/strategies/test_openid_connect.rb +10 -10
- data/test_openid_connect.gemspec +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: '08b8aab9d6f8be10dca4c562cd9b1bcf44ef0682679a418a2fb162e8a427c5bd'
|
4
|
+
data.tar.gz: 544cca78e0001d07ef7a8a49cab2b753469ee9ed36824392df7c35feedc2021a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e2dc1c9c5f1479c19dace8ab23126704b6c3291dbe62212ce93ff2fa47a7cae2c876abd942fe0aaf720b592fb3cfc02ca5ab3be763fcebc54c2099184f29ab
|
7
|
+
data.tar.gz: 99c728da0123e906be2f9e754afd0387c45eae6d306e75fbddde5103b219a63b730deb9223e64bc214fc78d2896eb8f1b0df5a2b856554a2f1dac6f00ff78f7b
|
@@ -3,12 +3,12 @@
|
|
3
3
|
require 'omniauth-oauth2'
|
4
4
|
|
5
5
|
module ::OmniAuth
|
6
|
-
module
|
6
|
+
module Oauth2
|
7
7
|
class DiscoveryError < Error; end
|
8
8
|
end
|
9
9
|
|
10
10
|
module Strategies
|
11
|
-
class
|
11
|
+
class Oauth2 < OmniAuth::Strategies::OAuth2
|
12
12
|
puts "*/*/*/*/*/*/*/*/*/*/*/*/*/*/"
|
13
13
|
option :scope, "openid"
|
14
14
|
option :discovery, true
|
@@ -46,7 +46,7 @@ module ::OmniAuth
|
|
46
46
|
|
47
47
|
discovery_params.each do |internal_key, external_key|
|
48
48
|
val = discovery_document[external_key].to_s
|
49
|
-
raise ::OmniAuth::
|
49
|
+
raise ::OmniAuth::Oauth2::DiscoveryError.new("missing discovery parameter #{external_key}") if val.nil? || val.empty?
|
50
50
|
options[:client_options][internal_key] = val
|
51
51
|
end
|
52
52
|
|
@@ -57,7 +57,7 @@ module ::OmniAuth
|
|
57
57
|
def request_phase
|
58
58
|
begin
|
59
59
|
discover!
|
60
|
-
rescue ::OmniAuth::
|
60
|
+
rescue ::OmniAuth::Oauth2::DiscoveryError => e
|
61
61
|
fail!(:openid_connect_discovery_error, e)
|
62
62
|
end
|
63
63
|
|
@@ -204,10 +204,10 @@ module ::OmniAuth
|
|
204
204
|
end
|
205
205
|
end
|
206
206
|
|
207
|
-
OmniAuth.config.add_camelization 'oauth2', 'OpenIDConnect'
|
207
|
+
# OmniAuth.config.add_camelization 'oauth2', 'OpenIDConnect'
|
208
208
|
|
209
|
-
module ::OmniAuth
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
end
|
209
|
+
# module ::OmniAuth
|
210
|
+
# module Strategies
|
211
|
+
# autoload :OpenIDConnect, "lib/omniauth/test_openid_connect.rb"
|
212
|
+
# end
|
213
|
+
# end
|
data/test_openid_connect.gemspec
CHANGED