omniauth-nitro-id 1.3.0 → 1.3.2
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/.github/CODEOWNERS +1 -0
- data/Gemfile.lock +63 -46
- data/docs/CHANGELOG.md +6 -1
- data/lib/omniauth/nitro_id/version.rb +1 -1
- data/lib/omniauth/strategies/base_strategy.rb +8 -0
- data/lib/omniauth/strategies/nitro_id.rb +1 -1
- data/lib/omniauth/strategies/tempo_id.rb +1 -1
- data/spec/omniauth/strategies/nitro_id_spec.rb +1 -1
- data/spec/omniauth/strategies/tempo_id_spec.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7d4793af4dcd6a40df7cf3185a92f7ebc010e967f4499948d8e7b315a23acf5
|
|
4
|
+
data.tar.gz: 013e9cdf1c207fc29e2145a8459db480507be683ba02918438c530db46346133
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9ffadaba1ac4caeb00b464a434983ac80613981f4bc1dd85d51d8025ed948bcd1aa2489ccbf2384fc487d5bcdf5092a8d37b6a92b4642b173cfac0492eee340
|
|
7
|
+
data.tar.gz: 1226568d0bb6a3397c7dd0b90592917bfa7ec589bcf2c5e5a7c994aaf294d8a4dad7ac9713b362dd0ab11b5d36bffa0bee499458b7c1d6d56fe44c164e5ba121
|
data/.github/CODEOWNERS
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,55 +1,69 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
omniauth-nitro-id (1.3.
|
|
4
|
+
omniauth-nitro-id (1.3.2)
|
|
5
5
|
omniauth-rails_csrf_protection (= 1.0.1)
|
|
6
6
|
omniauth_openid_connect (~> 0.4.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
actionpack (7.
|
|
12
|
-
actionview (= 7.
|
|
13
|
-
activesupport (= 7.
|
|
14
|
-
|
|
11
|
+
actionpack (7.1.2)
|
|
12
|
+
actionview (= 7.1.2)
|
|
13
|
+
activesupport (= 7.1.2)
|
|
14
|
+
nokogiri (>= 1.8.5)
|
|
15
|
+
racc
|
|
16
|
+
rack (>= 2.2.4)
|
|
17
|
+
rack-session (>= 1.0.1)
|
|
15
18
|
rack-test (>= 0.6.3)
|
|
16
|
-
rails-dom-testing (~> 2.
|
|
17
|
-
rails-html-sanitizer (~> 1.
|
|
18
|
-
actionview (7.
|
|
19
|
-
activesupport (= 7.
|
|
19
|
+
rails-dom-testing (~> 2.2)
|
|
20
|
+
rails-html-sanitizer (~> 1.6)
|
|
21
|
+
actionview (7.1.2)
|
|
22
|
+
activesupport (= 7.1.2)
|
|
20
23
|
builder (~> 3.1)
|
|
21
|
-
erubi (~> 1.
|
|
22
|
-
rails-dom-testing (~> 2.
|
|
23
|
-
rails-html-sanitizer (~> 1.
|
|
24
|
-
activemodel (7.
|
|
25
|
-
activesupport (= 7.
|
|
26
|
-
activesupport (7.
|
|
24
|
+
erubi (~> 1.11)
|
|
25
|
+
rails-dom-testing (~> 2.2)
|
|
26
|
+
rails-html-sanitizer (~> 1.6)
|
|
27
|
+
activemodel (7.1.2)
|
|
28
|
+
activesupport (= 7.1.2)
|
|
29
|
+
activesupport (7.1.2)
|
|
30
|
+
base64
|
|
31
|
+
bigdecimal
|
|
27
32
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
33
|
+
connection_pool (>= 2.2.5)
|
|
34
|
+
drb
|
|
28
35
|
i18n (>= 1.6, < 2)
|
|
29
36
|
minitest (>= 5.1)
|
|
37
|
+
mutex_m
|
|
30
38
|
tzinfo (~> 2.0)
|
|
31
|
-
addressable (2.8.
|
|
39
|
+
addressable (2.8.6)
|
|
32
40
|
public_suffix (>= 2.0.2, < 6.0)
|
|
33
41
|
aes_key_wrap (1.1.0)
|
|
34
42
|
ast (2.4.2)
|
|
35
43
|
attr_required (1.0.1)
|
|
44
|
+
base64 (0.2.0)
|
|
45
|
+
bigdecimal (3.1.5)
|
|
36
46
|
bindata (2.4.15)
|
|
37
47
|
builder (3.2.4)
|
|
38
48
|
coderay (1.1.3)
|
|
39
49
|
concurrent-ruby (1.2.2)
|
|
50
|
+
connection_pool (2.4.1)
|
|
40
51
|
crass (1.0.6)
|
|
41
|
-
date (3.3.
|
|
52
|
+
date (3.3.4)
|
|
42
53
|
diff-lcs (1.5.0)
|
|
54
|
+
drb (2.2.0)
|
|
55
|
+
ruby2_keywords
|
|
43
56
|
erubi (1.12.0)
|
|
44
|
-
faraday (2.
|
|
57
|
+
faraday (2.8.1)
|
|
58
|
+
base64
|
|
45
59
|
faraday-net_http (>= 2.0, < 3.1)
|
|
46
60
|
ruby2_keywords (>= 0.0.4)
|
|
47
61
|
faraday-follow_redirects (0.3.0)
|
|
48
62
|
faraday (>= 1, < 3)
|
|
49
63
|
faraday-net_http (3.0.2)
|
|
50
|
-
ffi (1.
|
|
64
|
+
ffi (1.16.3)
|
|
51
65
|
formatador (1.1.0)
|
|
52
|
-
guard (2.18.
|
|
66
|
+
guard (2.18.1)
|
|
53
67
|
formatador (>= 0.2.4)
|
|
54
68
|
listen (>= 2.7, < 4.0)
|
|
55
69
|
lumberjack (>= 1.0.12, < 2.0)
|
|
@@ -67,7 +81,7 @@ GEM
|
|
|
67
81
|
httpclient (2.8.3)
|
|
68
82
|
i18n (1.14.1)
|
|
69
83
|
concurrent-ruby (~> 1.0)
|
|
70
|
-
json (2.
|
|
84
|
+
json (2.7.1)
|
|
71
85
|
json-jwt (1.16.3)
|
|
72
86
|
activesupport (>= 4.2)
|
|
73
87
|
aes_key_wrap
|
|
@@ -84,10 +98,10 @@ GEM
|
|
|
84
98
|
listen (3.8.0)
|
|
85
99
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
86
100
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
87
|
-
loofah (2.
|
|
101
|
+
loofah (2.22.0)
|
|
88
102
|
crass (~> 1.0.2)
|
|
89
103
|
nokogiri (>= 1.12.0)
|
|
90
|
-
lumberjack (1.2.
|
|
104
|
+
lumberjack (1.2.10)
|
|
91
105
|
mail (2.8.1)
|
|
92
106
|
mini_mime (>= 0.1.1)
|
|
93
107
|
net-imap
|
|
@@ -95,29 +109,30 @@ GEM
|
|
|
95
109
|
net-smtp
|
|
96
110
|
method_source (1.0.0)
|
|
97
111
|
mini_mime (1.1.5)
|
|
98
|
-
mini_portile2 (2.8.
|
|
99
|
-
minitest (5.
|
|
112
|
+
mini_portile2 (2.8.5)
|
|
113
|
+
minitest (5.20.0)
|
|
114
|
+
mutex_m (0.2.0)
|
|
100
115
|
nenv (0.3.0)
|
|
101
|
-
net-imap (0.
|
|
116
|
+
net-imap (0.4.9)
|
|
102
117
|
date
|
|
103
118
|
net-protocol
|
|
104
119
|
net-pop (0.1.2)
|
|
105
120
|
net-protocol
|
|
106
|
-
net-protocol (0.2.
|
|
121
|
+
net-protocol (0.2.2)
|
|
107
122
|
timeout
|
|
108
|
-
net-smtp (0.
|
|
123
|
+
net-smtp (0.4.0)
|
|
109
124
|
net-protocol
|
|
110
|
-
nokogiri (1.15.
|
|
125
|
+
nokogiri (1.15.5)
|
|
111
126
|
mini_portile2 (~> 2.8.2)
|
|
112
127
|
racc (~> 1.4)
|
|
113
|
-
nokogiri (1.15.
|
|
128
|
+
nokogiri (1.15.5-arm64-darwin)
|
|
114
129
|
racc (~> 1.4)
|
|
115
|
-
nokogiri (1.15.
|
|
130
|
+
nokogiri (1.15.5-x86_64-linux)
|
|
116
131
|
racc (~> 1.4)
|
|
117
132
|
notiffany (0.1.3)
|
|
118
133
|
nenv (~> 0.1)
|
|
119
134
|
shellany (~> 0.0)
|
|
120
|
-
omniauth (2.1.
|
|
135
|
+
omniauth (2.1.2)
|
|
121
136
|
hashie (>= 3.4.6)
|
|
122
137
|
rack (>= 2.2.3)
|
|
123
138
|
rack-protection
|
|
@@ -139,24 +154,26 @@ GEM
|
|
|
139
154
|
validate_email
|
|
140
155
|
validate_url
|
|
141
156
|
webfinger (~> 1.2)
|
|
142
|
-
parallel (1.
|
|
143
|
-
parser (3.2.2.
|
|
157
|
+
parallel (1.24.0)
|
|
158
|
+
parser (3.2.2.4)
|
|
144
159
|
ast (~> 2.4.1)
|
|
145
160
|
racc
|
|
146
161
|
pry (0.14.2)
|
|
147
162
|
coderay (~> 1.1)
|
|
148
163
|
method_source (~> 1.0)
|
|
149
|
-
public_suffix (5.0.
|
|
150
|
-
racc (1.7.
|
|
151
|
-
rack (
|
|
164
|
+
public_suffix (5.0.4)
|
|
165
|
+
racc (1.7.3)
|
|
166
|
+
rack (3.0.8)
|
|
152
167
|
rack-oauth2 (1.21.3)
|
|
153
168
|
activesupport
|
|
154
169
|
attr_required
|
|
155
170
|
httpclient
|
|
156
171
|
json-jwt (>= 1.11.0)
|
|
157
172
|
rack (>= 2.1.0)
|
|
158
|
-
rack-protection (3.
|
|
159
|
-
rack
|
|
173
|
+
rack-protection (3.0.6)
|
|
174
|
+
rack
|
|
175
|
+
rack-session (2.0.0)
|
|
176
|
+
rack (>= 3.0.0)
|
|
160
177
|
rack-test (2.1.0)
|
|
161
178
|
rack (>= 1.3)
|
|
162
179
|
rails-dom-testing (2.2.0)
|
|
@@ -171,7 +188,7 @@ GEM
|
|
|
171
188
|
rb-fsevent (0.11.2)
|
|
172
189
|
rb-inotify (0.10.1)
|
|
173
190
|
ffi (~> 1.0)
|
|
174
|
-
regexp_parser (2.8.
|
|
191
|
+
regexp_parser (2.8.3)
|
|
175
192
|
rexml (3.2.6)
|
|
176
193
|
rspec (3.11.0)
|
|
177
194
|
rspec-core (~> 3.11.0)
|
|
@@ -196,9 +213,9 @@ GEM
|
|
|
196
213
|
rubocop-ast (>= 1.18.0, < 2.0)
|
|
197
214
|
ruby-progressbar (~> 1.7)
|
|
198
215
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
199
|
-
rubocop-ast (1.
|
|
216
|
+
rubocop-ast (1.30.0)
|
|
200
217
|
parser (>= 3.2.1.0)
|
|
201
|
-
rubocop-performance (1.19.
|
|
218
|
+
rubocop-performance (1.19.1)
|
|
202
219
|
rubocop (>= 1.7.0, < 2.0)
|
|
203
220
|
rubocop-ast (>= 0.4.0)
|
|
204
221
|
rubocop-powerhome (0.5.0)
|
|
@@ -223,12 +240,12 @@ GEM
|
|
|
223
240
|
activesupport (>= 3)
|
|
224
241
|
attr_required (>= 0.0.5)
|
|
225
242
|
httpclient (>= 2.4)
|
|
226
|
-
thor (1.
|
|
227
|
-
timeout (0.4.
|
|
243
|
+
thor (1.3.0)
|
|
244
|
+
timeout (0.4.1)
|
|
228
245
|
tomlrb (2.0.3)
|
|
229
246
|
tzinfo (2.0.6)
|
|
230
247
|
concurrent-ruby (~> 1.0)
|
|
231
|
-
unicode-display_width (2.
|
|
248
|
+
unicode-display_width (2.5.0)
|
|
232
249
|
validate_email (0.1.6)
|
|
233
250
|
activemodel (>= 3.0)
|
|
234
251
|
mail (>= 2.2.5)
|
|
@@ -260,4 +277,4 @@ DEPENDENCIES
|
|
|
260
277
|
rubocop-powerhome (>= 0.4.1)
|
|
261
278
|
|
|
262
279
|
BUNDLED WITH
|
|
263
|
-
2.4.
|
|
280
|
+
2.4.22
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.1] - 2023-09-21
|
|
11
|
+
|
|
12
|
+
* Display better error message for missing credentials. PR [#27](https://github.com/powerhome/omniauth-nitro-id/pull/27)
|
|
13
|
+
|
|
10
14
|
## [1.3.0] - 2023-08-22
|
|
11
15
|
|
|
12
16
|
### Added
|
|
@@ -43,7 +47,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
43
47
|
|
|
44
48
|
* Initial release
|
|
45
49
|
|
|
46
|
-
[Unreleased]: https://github.com/powerhome/omniauth-nitro-id/compare/v1.3.
|
|
50
|
+
[Unreleased]: https://github.com/powerhome/omniauth-nitro-id/compare/v1.3.1...HEAD
|
|
51
|
+
[1.3.1]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.3.1
|
|
47
52
|
[1.3.0]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.3.0
|
|
48
53
|
[1.2.1]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.2.1
|
|
49
54
|
[1.2.0]: https://github.com/powerhome/omniauth-nitro-id/releases/tag/v1.2.0
|
|
@@ -7,6 +7,7 @@ module OmniAuth
|
|
|
7
7
|
module Strategies
|
|
8
8
|
class BaseStrategy < OmniAuth::Strategies::OpenIDConnect
|
|
9
9
|
class APIError < StandardError; end
|
|
10
|
+
class ClientCredentialsError < StandardError; end
|
|
10
11
|
|
|
11
12
|
def public_key
|
|
12
13
|
@public_key ||= if options.discovery
|
|
@@ -18,6 +19,13 @@ module OmniAuth
|
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
|
|
22
|
+
def client
|
|
23
|
+
super
|
|
24
|
+
rescue AttrRequired::AttrMissing
|
|
25
|
+
raise ClientCredentialsError,
|
|
26
|
+
"#{options[:name].camelize} client credentials not found. Please check your environment."
|
|
27
|
+
end
|
|
28
|
+
|
|
21
29
|
def self.decode_logout_token(token)
|
|
22
30
|
jwks = fetch_jwks
|
|
23
31
|
JSON::JWT.decode(token, jwks)
|
|
@@ -7,7 +7,7 @@ module OmniAuth
|
|
|
7
7
|
class TempoId < BaseStrategy
|
|
8
8
|
option :name, "tempo_id"
|
|
9
9
|
option :discovery, true
|
|
10
|
-
option :issuer, "https://id.streamfinancial.io
|
|
10
|
+
option :issuer, "https://id.streamfinancial.io"
|
|
11
11
|
option :client_options, host: "id.streamfinancial.io"
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -31,7 +31,7 @@ describe OmniAuth::Strategies::NitroId do
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
it "should have correct issuer" do
|
|
34
|
-
expect(subject.options.issuer).to eq "https://id.powerhrg.com
|
|
34
|
+
expect(subject.options.issuer).to eq "https://id.powerhrg.com"
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
it "should have the correct discovery setting" do
|
|
@@ -31,7 +31,7 @@ describe OmniAuth::Strategies::TempoId do
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
it "should have correct issuer" do
|
|
34
|
-
expect(subject.options.issuer).to eq "https://id.streamfinancial.io
|
|
34
|
+
expect(subject.options.issuer).to eq "https://id.streamfinancial.io"
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
it "should have the correct discovery setting" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-nitro-id
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Greer
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth_openid_connect
|
|
@@ -204,7 +204,7 @@ homepage: https://github.com/powerhome/omniauth-nitro-id
|
|
|
204
204
|
licenses:
|
|
205
205
|
- MIT
|
|
206
206
|
metadata: {}
|
|
207
|
-
post_install_message:
|
|
207
|
+
post_install_message:
|
|
208
208
|
rdoc_options: []
|
|
209
209
|
require_paths:
|
|
210
210
|
- lib
|
|
@@ -219,8 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
219
219
|
- !ruby/object:Gem::Version
|
|
220
220
|
version: '0'
|
|
221
221
|
requirements: []
|
|
222
|
-
rubygems_version: 3.
|
|
223
|
-
signing_key:
|
|
222
|
+
rubygems_version: 3.2.33
|
|
223
|
+
signing_key:
|
|
224
224
|
specification_version: 4
|
|
225
225
|
summary: NitroID Strategy for OmniAuth.
|
|
226
226
|
test_files: []
|