keycloak_rack 1.1.0 → 1.2.0
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/workflows/main.yml +9 -11
- data/.rubocop.yml +4 -1
- data/Appraisals +6 -1
- data/README.md +2 -7
- data/gemfiles/rack_2.gemfile +7 -0
- data/gemfiles/{rack_only.gemfile.lock → rack_2.gemfile.lock} +111 -78
- data/gemfiles/{rack_only.gemfile → rack_3.gemfile} +2 -0
- data/gemfiles/rack_3.gemfile.lock +232 -0
- data/gemfiles/rails_6_0.gemfile.lock +95 -81
- data/gemfiles/rails_6_1.gemfile.lock +96 -82
- data/keycloak_rack.gemspec +5 -4
- data/lib/keycloak_rack/decoded_token.rb +3 -1
- data/lib/keycloak_rack/read_token.rb +1 -1
- data/lib/keycloak_rack/version.rb +1 -1
- data/spec/keycloak_rack/wrap_token_spec.rb +15 -0
- data/spec/spec_helper.rb +3 -1
- metadata +28 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
keycloak_rack (1.
|
4
|
+
keycloak_rack (1.2.0)
|
5
5
|
activesupport (>= 4.2)
|
6
6
|
anyway_config (>= 2.1.0, < 3)
|
7
7
|
dry-auto_inject
|
@@ -14,7 +14,7 @@ PATH
|
|
14
14
|
dry-types (>= 1, < 2)
|
15
15
|
dry-validation
|
16
16
|
jwt (>= 2.2.0, < 3)
|
17
|
-
rack (>= 2.0.0, <
|
17
|
+
rack (>= 2.0.0, < 4)
|
18
18
|
zeitwerk (>= 2.0.0, < 3)
|
19
19
|
|
20
20
|
GEM
|
@@ -75,73 +75,83 @@ GEM
|
|
75
75
|
minitest (~> 5.1)
|
76
76
|
tzinfo (~> 1.1)
|
77
77
|
zeitwerk (~> 2.2, >= 2.2.2)
|
78
|
-
addressable (2.8.
|
79
|
-
public_suffix (>= 2.0.2, <
|
80
|
-
anyway_config (2.2
|
81
|
-
ruby-next-core (
|
82
|
-
appraisal (2.
|
78
|
+
addressable (2.8.7)
|
79
|
+
public_suffix (>= 2.0.2, < 7.0)
|
80
|
+
anyway_config (2.7.2)
|
81
|
+
ruby-next-core (~> 1.0)
|
82
|
+
appraisal (2.5.0)
|
83
83
|
bundler
|
84
84
|
rake
|
85
85
|
thor (>= 0.14.0)
|
86
|
-
ast (2.4.
|
87
|
-
backports (3.
|
86
|
+
ast (2.4.3)
|
87
|
+
backports (3.25.1)
|
88
|
+
base64 (0.3.0)
|
89
|
+
bigdecimal (3.2.2)
|
88
90
|
builder (3.2.4)
|
89
91
|
coderay (1.1.3)
|
90
|
-
concurrent-ruby (1.
|
91
|
-
crack (0.
|
92
|
+
concurrent-ruby (1.3.5)
|
93
|
+
crack (1.0.0)
|
94
|
+
bigdecimal
|
92
95
|
rexml
|
93
96
|
crass (1.0.6)
|
94
|
-
diff-lcs (1.
|
95
|
-
docile (1.4.
|
96
|
-
dry-auto_inject (0.
|
97
|
-
dry-
|
98
|
-
|
97
|
+
diff-lcs (1.6.2)
|
98
|
+
docile (1.4.1)
|
99
|
+
dry-auto_inject (1.0.1)
|
100
|
+
dry-core (~> 1.0)
|
101
|
+
zeitwerk (~> 2.6)
|
102
|
+
dry-configurable (1.2.0)
|
103
|
+
dry-core (~> 1.0, < 2)
|
104
|
+
zeitwerk (~> 2.6)
|
105
|
+
dry-container (0.11.0)
|
99
106
|
concurrent-ruby (~> 1.0)
|
100
|
-
|
101
|
-
dry-container (0.9.0)
|
107
|
+
dry-core (1.0.2)
|
102
108
|
concurrent-ruby (~> 1.0)
|
103
|
-
|
104
|
-
|
109
|
+
logger
|
110
|
+
zeitwerk (~> 2.6)
|
111
|
+
dry-effects (0.4.1)
|
105
112
|
concurrent-ruby (~> 1.0)
|
106
|
-
|
107
|
-
|
108
|
-
dry-container (~> 0.7, >= 0.7.2)
|
109
|
-
dry-core (~> 0.5, >= 0.5)
|
110
|
-
dry-inflector (~> 0.1, >= 0.1.2)
|
113
|
+
dry-core (~> 1.0)
|
114
|
+
dry-inflector (~> 1.0)
|
111
115
|
dry-initializer (~> 3.0)
|
112
|
-
|
116
|
+
zeitwerk (~> 2.6)
|
117
|
+
dry-inflector (1.1.0)
|
113
118
|
dry-initializer (3.1.1)
|
114
|
-
dry-logic (1.
|
119
|
+
dry-logic (1.5.0)
|
115
120
|
concurrent-ruby (~> 1.0)
|
116
|
-
dry-core (~> 0
|
117
|
-
|
118
|
-
|
119
|
-
|
121
|
+
dry-core (~> 1.0, < 2)
|
122
|
+
zeitwerk (~> 2.6)
|
123
|
+
dry-matcher (1.0.0)
|
124
|
+
dry-core (~> 1.0, < 2)
|
125
|
+
dry-monads (1.6.0)
|
120
126
|
concurrent-ruby (~> 1.0)
|
121
|
-
dry-core (~> 0
|
122
|
-
|
127
|
+
dry-core (~> 1.0, < 2)
|
128
|
+
zeitwerk (~> 2.6)
|
129
|
+
dry-schema (1.13.4)
|
123
130
|
concurrent-ruby (~> 1.0)
|
124
|
-
dry-configurable (~> 0
|
125
|
-
dry-core (~> 0
|
131
|
+
dry-configurable (~> 1.0, >= 1.0.1)
|
132
|
+
dry-core (~> 1.0, < 2)
|
126
133
|
dry-initializer (~> 3.0)
|
127
|
-
dry-logic (
|
128
|
-
dry-types (
|
129
|
-
|
130
|
-
|
131
|
-
dry-
|
134
|
+
dry-logic (>= 1.4, < 2)
|
135
|
+
dry-types (>= 1.7, < 2)
|
136
|
+
zeitwerk (~> 2.6)
|
137
|
+
dry-struct (1.6.0)
|
138
|
+
dry-core (~> 1.0, < 2)
|
139
|
+
dry-types (>= 1.7, < 2)
|
132
140
|
ice_nine (~> 0.11)
|
133
|
-
|
141
|
+
zeitwerk (~> 2.6)
|
142
|
+
dry-types (1.7.2)
|
143
|
+
bigdecimal (~> 3.0)
|
134
144
|
concurrent-ruby (~> 1.0)
|
135
|
-
dry-
|
136
|
-
dry-
|
137
|
-
dry-
|
138
|
-
|
139
|
-
dry-validation (1.
|
145
|
+
dry-core (~> 1.0)
|
146
|
+
dry-inflector (~> 1.0)
|
147
|
+
dry-logic (~> 1.4)
|
148
|
+
zeitwerk (~> 2.6)
|
149
|
+
dry-validation (1.10.0)
|
140
150
|
concurrent-ruby (~> 1.0)
|
141
|
-
dry-
|
142
|
-
dry-core (~> 0.5, >= 0.5)
|
151
|
+
dry-core (~> 1.0, < 2)
|
143
152
|
dry-initializer (~> 3.0)
|
144
|
-
dry-schema (
|
153
|
+
dry-schema (>= 1.12, < 2)
|
154
|
+
zeitwerk (~> 2.6)
|
145
155
|
erubi (1.10.0)
|
146
156
|
factory_bot (6.1.0)
|
147
157
|
activesupport (>= 5.0.0)
|
@@ -149,40 +159,41 @@ GEM
|
|
149
159
|
i18n (>= 1.6, < 2)
|
150
160
|
globalid (1.0.0)
|
151
161
|
activesupport (>= 5.0)
|
152
|
-
hashdiff (1.0
|
153
|
-
i18n (1.
|
162
|
+
hashdiff (1.2.0)
|
163
|
+
i18n (1.14.7)
|
154
164
|
concurrent-ruby (~> 1.0)
|
155
165
|
ice_nine (0.11.2)
|
156
|
-
jwt (2.
|
166
|
+
jwt (2.10.2)
|
167
|
+
base64
|
168
|
+
logger (1.7.0)
|
157
169
|
loofah (2.13.0)
|
158
170
|
crass (~> 1.0.2)
|
159
171
|
nokogiri (>= 1.5.9)
|
160
172
|
mail (2.7.1)
|
161
173
|
mini_mime (>= 0.1.1)
|
162
174
|
marcel (1.0.2)
|
163
|
-
method_source (1.
|
175
|
+
method_source (1.1.0)
|
164
176
|
mini_mime (1.1.2)
|
165
|
-
|
166
|
-
minitest (5.15.0)
|
177
|
+
minitest (5.25.5)
|
167
178
|
nio4r (2.5.8)
|
168
|
-
nokogiri (1.13.1)
|
169
|
-
mini_portile2 (~> 2.7.0)
|
170
|
-
racc (~> 1.4)
|
171
179
|
nokogiri (1.13.1-x86_64-darwin)
|
172
180
|
racc (~> 1.4)
|
173
181
|
nokogiri (1.13.1-x86_64-linux)
|
174
182
|
racc (~> 1.4)
|
175
|
-
|
176
|
-
|
183
|
+
ostruct (0.6.3)
|
184
|
+
parallel (1.27.0)
|
185
|
+
parser (3.3.9.0)
|
177
186
|
ast (~> 2.4.1)
|
187
|
+
racc
|
188
|
+
prism (1.4.0)
|
178
189
|
pry (0.14.1)
|
179
190
|
coderay (~> 1.1)
|
180
191
|
method_source (~> 1.0)
|
181
|
-
public_suffix (
|
182
|
-
racc (1.
|
192
|
+
public_suffix (6.0.2)
|
193
|
+
racc (1.8.1)
|
183
194
|
rack (2.2.3)
|
184
|
-
rack-test (
|
185
|
-
rack (>= 1.
|
195
|
+
rack-test (2.2.0)
|
196
|
+
rack (>= 1.3)
|
186
197
|
rails (6.0.4.4)
|
187
198
|
actioncable (= 6.0.4.4)
|
188
199
|
actionmailbox (= 6.0.4.4)
|
@@ -210,10 +221,10 @@ GEM
|
|
210
221
|
rake (>= 0.8.7)
|
211
222
|
thor (>= 0.20.3, < 2.0)
|
212
223
|
rainbow (3.1.1)
|
213
|
-
rake (13.0
|
214
|
-
redcarpet (3.
|
215
|
-
regexp_parser (2.
|
216
|
-
rexml (3.
|
224
|
+
rake (13.3.0)
|
225
|
+
redcarpet (3.6.1)
|
226
|
+
regexp_parser (2.11.0)
|
227
|
+
rexml (3.4.1)
|
217
228
|
rspec (3.10.0)
|
218
229
|
rspec-core (~> 3.10.0)
|
219
230
|
rspec-expectations (~> 3.10.0)
|
@@ -245,21 +256,23 @@ GEM
|
|
245
256
|
rubocop-ast (>= 1.2.0, < 2.0)
|
246
257
|
ruby-progressbar (~> 1.7)
|
247
258
|
unicode-display_width (>= 1.4.0, < 3.0)
|
248
|
-
rubocop-ast (1.
|
249
|
-
parser (>= 3.
|
259
|
+
rubocop-ast (1.46.0)
|
260
|
+
parser (>= 3.3.7.2)
|
261
|
+
prism (~> 1.4)
|
250
262
|
rubocop-rake (0.5.1)
|
251
263
|
rubocop
|
252
264
|
rubocop-rspec (2.3.0)
|
253
265
|
rubocop (~> 1.0)
|
254
266
|
rubocop-ast (>= 1.1.0)
|
255
|
-
ruby-next-core (
|
256
|
-
ruby-progressbar (1.
|
267
|
+
ruby-next-core (1.1.2)
|
268
|
+
ruby-progressbar (1.13.0)
|
269
|
+
set (1.1.2)
|
257
270
|
simplecov (0.21.2)
|
258
271
|
docile (~> 1.1)
|
259
272
|
simplecov-html (~> 0.11)
|
260
273
|
simplecov_json_formatter (~> 0.1)
|
261
|
-
simplecov-html (0.
|
262
|
-
simplecov_json_formatter (0.1.
|
274
|
+
simplecov-html (0.13.2)
|
275
|
+
simplecov_json_formatter (0.1.4)
|
263
276
|
sprockets (4.0.2)
|
264
277
|
concurrent-ruby (~> 1.0)
|
265
278
|
rack (> 1, < 3)
|
@@ -267,12 +280,12 @@ GEM
|
|
267
280
|
actionpack (>= 5.2)
|
268
281
|
activesupport (>= 5.2)
|
269
282
|
sprockets (>= 3.0.0)
|
270
|
-
thor (1.
|
283
|
+
thor (1.4.0)
|
271
284
|
thread_safe (0.3.6)
|
272
285
|
timecop (0.9.4)
|
273
286
|
tzinfo (1.2.9)
|
274
287
|
thread_safe (~> 0.1)
|
275
|
-
unicode-display_width (2.
|
288
|
+
unicode-display_width (2.6.0)
|
276
289
|
webmock (3.12.2)
|
277
290
|
addressable (>= 2.3.6)
|
278
291
|
crack (>= 0.3.2)
|
@@ -281,24 +294,24 @@ GEM
|
|
281
294
|
websocket-extensions (>= 0.1.0)
|
282
295
|
websocket-extensions (0.1.5)
|
283
296
|
yard (0.9.26)
|
284
|
-
yard-junk (0.0.
|
297
|
+
yard-junk (0.0.10)
|
285
298
|
backports (>= 3.18)
|
299
|
+
ostruct
|
286
300
|
rainbow
|
287
301
|
yard
|
288
|
-
zeitwerk (2.
|
302
|
+
zeitwerk (2.6.18)
|
289
303
|
|
290
304
|
PLATFORMS
|
291
|
-
ruby
|
292
305
|
x86_64-darwin-19
|
293
306
|
x86_64-linux
|
294
307
|
|
295
308
|
DEPENDENCIES
|
296
|
-
appraisal (= 2.
|
309
|
+
appraisal (= 2.5.0)
|
297
310
|
factory_bot (~> 6.1.0)
|
298
311
|
faker (= 2.19.0)
|
299
312
|
keycloak_rack!
|
300
313
|
pry (= 0.14.1)
|
301
|
-
rack-test (=
|
314
|
+
rack-test (= 2.2.0)
|
302
315
|
rails (>= 6, < 6.1.0)
|
303
316
|
rake (>= 13, < 14)
|
304
317
|
redcarpet
|
@@ -308,6 +321,7 @@ DEPENDENCIES
|
|
308
321
|
rubocop (= 1.13.0)
|
309
322
|
rubocop-rake (= 0.5.1)
|
310
323
|
rubocop-rspec (= 2.3.0)
|
324
|
+
set (= 1.1.2)
|
311
325
|
simplecov (= 0.21.2)
|
312
326
|
timecop (= 0.9.4)
|
313
327
|
webmock (= 3.12.2)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
keycloak_rack (1.
|
4
|
+
keycloak_rack (1.2.0)
|
5
5
|
activesupport (>= 4.2)
|
6
6
|
anyway_config (>= 2.1.0, < 3)
|
7
7
|
dry-auto_inject
|
@@ -14,7 +14,7 @@ PATH
|
|
14
14
|
dry-types (>= 1, < 2)
|
15
15
|
dry-validation
|
16
16
|
jwt (>= 2.2.0, < 3)
|
17
|
-
rack (>= 2.0.0, <
|
17
|
+
rack (>= 2.0.0, < 4)
|
18
18
|
zeitwerk (>= 2.0.0, < 3)
|
19
19
|
|
20
20
|
GEM
|
@@ -79,73 +79,83 @@ GEM
|
|
79
79
|
minitest (>= 5.1)
|
80
80
|
tzinfo (~> 2.0)
|
81
81
|
zeitwerk (~> 2.3)
|
82
|
-
addressable (2.8.
|
83
|
-
public_suffix (>= 2.0.2, <
|
84
|
-
anyway_config (2.2
|
85
|
-
ruby-next-core (
|
86
|
-
appraisal (2.
|
82
|
+
addressable (2.8.7)
|
83
|
+
public_suffix (>= 2.0.2, < 7.0)
|
84
|
+
anyway_config (2.7.2)
|
85
|
+
ruby-next-core (~> 1.0)
|
86
|
+
appraisal (2.5.0)
|
87
87
|
bundler
|
88
88
|
rake
|
89
89
|
thor (>= 0.14.0)
|
90
|
-
ast (2.4.
|
91
|
-
backports (3.
|
90
|
+
ast (2.4.3)
|
91
|
+
backports (3.25.1)
|
92
|
+
base64 (0.3.0)
|
93
|
+
bigdecimal (3.2.2)
|
92
94
|
builder (3.2.4)
|
93
95
|
coderay (1.1.3)
|
94
|
-
concurrent-ruby (1.
|
95
|
-
crack (0.
|
96
|
+
concurrent-ruby (1.3.5)
|
97
|
+
crack (1.0.0)
|
98
|
+
bigdecimal
|
96
99
|
rexml
|
97
100
|
crass (1.0.6)
|
98
|
-
diff-lcs (1.
|
99
|
-
docile (1.4.
|
100
|
-
dry-auto_inject (0.
|
101
|
-
dry-
|
102
|
-
|
101
|
+
diff-lcs (1.6.2)
|
102
|
+
docile (1.4.1)
|
103
|
+
dry-auto_inject (1.0.1)
|
104
|
+
dry-core (~> 1.0)
|
105
|
+
zeitwerk (~> 2.6)
|
106
|
+
dry-configurable (1.2.0)
|
107
|
+
dry-core (~> 1.0, < 2)
|
108
|
+
zeitwerk (~> 2.6)
|
109
|
+
dry-container (0.11.0)
|
103
110
|
concurrent-ruby (~> 1.0)
|
104
|
-
|
105
|
-
dry-container (0.9.0)
|
111
|
+
dry-core (1.0.2)
|
106
112
|
concurrent-ruby (~> 1.0)
|
107
|
-
|
108
|
-
|
113
|
+
logger
|
114
|
+
zeitwerk (~> 2.6)
|
115
|
+
dry-effects (0.4.1)
|
109
116
|
concurrent-ruby (~> 1.0)
|
110
|
-
|
111
|
-
|
112
|
-
dry-container (~> 0.7, >= 0.7.2)
|
113
|
-
dry-core (~> 0.5, >= 0.5)
|
114
|
-
dry-inflector (~> 0.1, >= 0.1.2)
|
117
|
+
dry-core (~> 1.0)
|
118
|
+
dry-inflector (~> 1.0)
|
115
119
|
dry-initializer (~> 3.0)
|
116
|
-
|
120
|
+
zeitwerk (~> 2.6)
|
121
|
+
dry-inflector (1.1.0)
|
117
122
|
dry-initializer (3.1.1)
|
118
|
-
dry-logic (1.
|
123
|
+
dry-logic (1.5.0)
|
119
124
|
concurrent-ruby (~> 1.0)
|
120
|
-
dry-core (~> 0
|
121
|
-
|
122
|
-
|
123
|
-
|
125
|
+
dry-core (~> 1.0, < 2)
|
126
|
+
zeitwerk (~> 2.6)
|
127
|
+
dry-matcher (1.0.0)
|
128
|
+
dry-core (~> 1.0, < 2)
|
129
|
+
dry-monads (1.6.0)
|
124
130
|
concurrent-ruby (~> 1.0)
|
125
|
-
dry-core (~> 0
|
126
|
-
|
131
|
+
dry-core (~> 1.0, < 2)
|
132
|
+
zeitwerk (~> 2.6)
|
133
|
+
dry-schema (1.13.4)
|
127
134
|
concurrent-ruby (~> 1.0)
|
128
|
-
dry-configurable (~> 0
|
129
|
-
dry-core (~> 0
|
135
|
+
dry-configurable (~> 1.0, >= 1.0.1)
|
136
|
+
dry-core (~> 1.0, < 2)
|
130
137
|
dry-initializer (~> 3.0)
|
131
|
-
dry-logic (
|
132
|
-
dry-types (
|
133
|
-
|
134
|
-
|
135
|
-
dry-
|
138
|
+
dry-logic (>= 1.4, < 2)
|
139
|
+
dry-types (>= 1.7, < 2)
|
140
|
+
zeitwerk (~> 2.6)
|
141
|
+
dry-struct (1.6.0)
|
142
|
+
dry-core (~> 1.0, < 2)
|
143
|
+
dry-types (>= 1.7, < 2)
|
136
144
|
ice_nine (~> 0.11)
|
137
|
-
|
145
|
+
zeitwerk (~> 2.6)
|
146
|
+
dry-types (1.7.2)
|
147
|
+
bigdecimal (~> 3.0)
|
138
148
|
concurrent-ruby (~> 1.0)
|
139
|
-
dry-
|
140
|
-
dry-
|
141
|
-
dry-
|
142
|
-
|
143
|
-
dry-validation (1.
|
149
|
+
dry-core (~> 1.0)
|
150
|
+
dry-inflector (~> 1.0)
|
151
|
+
dry-logic (~> 1.4)
|
152
|
+
zeitwerk (~> 2.6)
|
153
|
+
dry-validation (1.10.0)
|
144
154
|
concurrent-ruby (~> 1.0)
|
145
|
-
dry-
|
146
|
-
dry-core (~> 0.5, >= 0.5)
|
155
|
+
dry-core (~> 1.0, < 2)
|
147
156
|
dry-initializer (~> 3.0)
|
148
|
-
dry-schema (
|
157
|
+
dry-schema (>= 1.12, < 2)
|
158
|
+
zeitwerk (~> 2.6)
|
149
159
|
erubi (1.10.0)
|
150
160
|
factory_bot (6.1.0)
|
151
161
|
activesupport (>= 5.0.0)
|
@@ -153,40 +163,41 @@ GEM
|
|
153
163
|
i18n (>= 1.6, < 2)
|
154
164
|
globalid (1.0.0)
|
155
165
|
activesupport (>= 5.0)
|
156
|
-
hashdiff (1.0
|
157
|
-
i18n (1.
|
166
|
+
hashdiff (1.2.0)
|
167
|
+
i18n (1.14.7)
|
158
168
|
concurrent-ruby (~> 1.0)
|
159
169
|
ice_nine (0.11.2)
|
160
|
-
jwt (2.
|
170
|
+
jwt (2.10.2)
|
171
|
+
base64
|
172
|
+
logger (1.7.0)
|
161
173
|
loofah (2.13.0)
|
162
174
|
crass (~> 1.0.2)
|
163
175
|
nokogiri (>= 1.5.9)
|
164
176
|
mail (2.7.1)
|
165
177
|
mini_mime (>= 0.1.1)
|
166
178
|
marcel (1.0.2)
|
167
|
-
method_source (1.
|
179
|
+
method_source (1.1.0)
|
168
180
|
mini_mime (1.1.2)
|
169
|
-
|
170
|
-
minitest (5.15.0)
|
181
|
+
minitest (5.25.5)
|
171
182
|
nio4r (2.5.8)
|
172
|
-
nokogiri (1.13.1)
|
173
|
-
mini_portile2 (~> 2.7.0)
|
174
|
-
racc (~> 1.4)
|
175
183
|
nokogiri (1.13.1-x86_64-darwin)
|
176
184
|
racc (~> 1.4)
|
177
185
|
nokogiri (1.13.1-x86_64-linux)
|
178
186
|
racc (~> 1.4)
|
179
|
-
|
180
|
-
|
187
|
+
ostruct (0.6.3)
|
188
|
+
parallel (1.27.0)
|
189
|
+
parser (3.3.9.0)
|
181
190
|
ast (~> 2.4.1)
|
191
|
+
racc
|
192
|
+
prism (1.4.0)
|
182
193
|
pry (0.14.1)
|
183
194
|
coderay (~> 1.1)
|
184
195
|
method_source (~> 1.0)
|
185
|
-
public_suffix (
|
186
|
-
racc (1.
|
196
|
+
public_suffix (6.0.2)
|
197
|
+
racc (1.8.1)
|
187
198
|
rack (2.2.3)
|
188
|
-
rack-test (
|
189
|
-
rack (>= 1.
|
199
|
+
rack-test (2.2.0)
|
200
|
+
rack (>= 1.3)
|
190
201
|
rails (6.1.4.4)
|
191
202
|
actioncable (= 6.1.4.4)
|
192
203
|
actionmailbox (= 6.1.4.4)
|
@@ -214,10 +225,10 @@ GEM
|
|
214
225
|
rake (>= 0.13)
|
215
226
|
thor (~> 1.0)
|
216
227
|
rainbow (3.1.1)
|
217
|
-
rake (13.0
|
218
|
-
redcarpet (3.
|
219
|
-
regexp_parser (2.
|
220
|
-
rexml (3.
|
228
|
+
rake (13.3.0)
|
229
|
+
redcarpet (3.6.1)
|
230
|
+
regexp_parser (2.11.0)
|
231
|
+
rexml (3.4.1)
|
221
232
|
rspec (3.10.0)
|
222
233
|
rspec-core (~> 3.10.0)
|
223
234
|
rspec-expectations (~> 3.10.0)
|
@@ -249,21 +260,23 @@ GEM
|
|
249
260
|
rubocop-ast (>= 1.2.0, < 2.0)
|
250
261
|
ruby-progressbar (~> 1.7)
|
251
262
|
unicode-display_width (>= 1.4.0, < 3.0)
|
252
|
-
rubocop-ast (1.
|
253
|
-
parser (>= 3.
|
263
|
+
rubocop-ast (1.46.0)
|
264
|
+
parser (>= 3.3.7.2)
|
265
|
+
prism (~> 1.4)
|
254
266
|
rubocop-rake (0.5.1)
|
255
267
|
rubocop
|
256
268
|
rubocop-rspec (2.3.0)
|
257
269
|
rubocop (~> 1.0)
|
258
270
|
rubocop-ast (>= 1.1.0)
|
259
|
-
ruby-next-core (
|
260
|
-
ruby-progressbar (1.
|
271
|
+
ruby-next-core (1.1.2)
|
272
|
+
ruby-progressbar (1.13.0)
|
273
|
+
set (1.1.2)
|
261
274
|
simplecov (0.21.2)
|
262
275
|
docile (~> 1.1)
|
263
276
|
simplecov-html (~> 0.11)
|
264
277
|
simplecov_json_formatter (~> 0.1)
|
265
|
-
simplecov-html (0.
|
266
|
-
simplecov_json_formatter (0.1.
|
278
|
+
simplecov-html (0.13.2)
|
279
|
+
simplecov_json_formatter (0.1.4)
|
267
280
|
sprockets (4.0.2)
|
268
281
|
concurrent-ruby (~> 1.0)
|
269
282
|
rack (> 1, < 3)
|
@@ -271,11 +284,11 @@ GEM
|
|
271
284
|
actionpack (>= 5.2)
|
272
285
|
activesupport (>= 5.2)
|
273
286
|
sprockets (>= 3.0.0)
|
274
|
-
thor (1.
|
287
|
+
thor (1.4.0)
|
275
288
|
timecop (0.9.4)
|
276
|
-
tzinfo (2.0.
|
289
|
+
tzinfo (2.0.6)
|
277
290
|
concurrent-ruby (~> 1.0)
|
278
|
-
unicode-display_width (2.
|
291
|
+
unicode-display_width (2.6.0)
|
279
292
|
webmock (3.12.2)
|
280
293
|
addressable (>= 2.3.6)
|
281
294
|
crack (>= 0.3.2)
|
@@ -284,24 +297,24 @@ GEM
|
|
284
297
|
websocket-extensions (>= 0.1.0)
|
285
298
|
websocket-extensions (0.1.5)
|
286
299
|
yard (0.9.26)
|
287
|
-
yard-junk (0.0.
|
300
|
+
yard-junk (0.0.10)
|
288
301
|
backports (>= 3.18)
|
302
|
+
ostruct
|
289
303
|
rainbow
|
290
304
|
yard
|
291
|
-
zeitwerk (2.
|
305
|
+
zeitwerk (2.6.18)
|
292
306
|
|
293
307
|
PLATFORMS
|
294
|
-
ruby
|
295
308
|
x86_64-darwin-19
|
296
309
|
x86_64-linux
|
297
310
|
|
298
311
|
DEPENDENCIES
|
299
|
-
appraisal (= 2.
|
312
|
+
appraisal (= 2.5.0)
|
300
313
|
factory_bot (~> 6.1.0)
|
301
314
|
faker (= 2.19.0)
|
302
315
|
keycloak_rack!
|
303
316
|
pry (= 0.14.1)
|
304
|
-
rack-test (=
|
317
|
+
rack-test (= 2.2.0)
|
305
318
|
rails (>= 6.1.0, < 6.2.0)
|
306
319
|
rake (>= 13, < 14)
|
307
320
|
redcarpet
|
@@ -311,6 +324,7 @@ DEPENDENCIES
|
|
311
324
|
rubocop (= 1.13.0)
|
312
325
|
rubocop-rake (= 0.5.1)
|
313
326
|
rubocop-rspec (= 2.3.0)
|
327
|
+
set (= 1.1.2)
|
314
328
|
simplecov (= 0.21.2)
|
315
329
|
timecop (= 0.9.4)
|
316
330
|
webmock (= 3.12.2)
|
data/keycloak_rack.gemspec
CHANGED
@@ -31,14 +31,14 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency "dry-types", ">= 1", "< 2"
|
32
32
|
spec.add_dependency "dry-validation"
|
33
33
|
spec.add_dependency "jwt", ">= 2.2.0", "< 3"
|
34
|
-
spec.add_dependency "rack", ">= 2.0.0", "<
|
34
|
+
spec.add_dependency "rack", ">= 2.0.0", "< 4"
|
35
35
|
spec.add_dependency "zeitwerk", ">= 2.0.0", "< 3"
|
36
36
|
|
37
|
-
spec.add_development_dependency "appraisal", "2.
|
37
|
+
spec.add_development_dependency "appraisal", "2.5.0"
|
38
38
|
spec.add_development_dependency "factory_bot", "~> 6.1.0"
|
39
39
|
spec.add_development_dependency "faker", "2.19.0"
|
40
40
|
spec.add_development_dependency "pry", "0.14.1"
|
41
|
-
spec.add_development_dependency "rack-test", "
|
41
|
+
spec.add_development_dependency "rack-test", "2.2.0"
|
42
42
|
spec.add_development_dependency "rake", ">= 13", "< 14"
|
43
43
|
spec.add_development_dependency "redcarpet"
|
44
44
|
spec.add_development_dependency "rspec", "3.10.0"
|
@@ -46,11 +46,12 @@ Gem::Specification.new do |spec|
|
|
46
46
|
spec.add_development_dependency "rubocop", "1.13.0"
|
47
47
|
spec.add_development_dependency "rubocop-rake", "0.5.1"
|
48
48
|
spec.add_development_dependency "rubocop-rspec", "2.3.0"
|
49
|
+
spec.add_development_dependency "set", "1.1.2"
|
49
50
|
spec.add_development_dependency "simplecov", "0.21.2"
|
50
51
|
spec.add_development_dependency "timecop", "0.9.4"
|
51
52
|
spec.add_development_dependency "webmock", "3.12.2"
|
52
53
|
spec.add_development_dependency "yard", "0.9.26"
|
53
54
|
spec.add_development_dependency "yard-junk"
|
54
55
|
|
55
|
-
spec.required_ruby_version = ">=
|
56
|
+
spec.required_ruby_version = ">= 3.0.0"
|
56
57
|
end
|
@@ -16,6 +16,8 @@ module KeycloakRack
|
|
16
16
|
"typ" => :type,
|
17
17
|
}.with_indifferent_access.freeze
|
18
18
|
|
19
|
+
Audience = Types::Coercible::Array.of(Types::String)
|
20
|
+
|
19
21
|
private_constant :KEY_MAP
|
20
22
|
|
21
23
|
ALIAS_MAP = KEY_MAP.invert.freeze
|
@@ -85,7 +87,7 @@ module KeycloakRack
|
|
85
87
|
|
86
88
|
# @!attribute [r] audience
|
87
89
|
# @return [String]
|
88
|
-
attribute :audience,
|
90
|
+
attribute :audience, Audience.optional
|
89
91
|
|
90
92
|
# @!attribute [r] type
|
91
93
|
# The `typ` claim in the JWT. Keycloak sets this to `"JWT"`.
|
@@ -10,7 +10,7 @@ module KeycloakRack
|
|
10
10
|
include Import[config: "keycloak-rack.config"]
|
11
11
|
|
12
12
|
# The pattern to match bearer tokens with.
|
13
|
-
BEARER_TOKEN = /\ABearer (?<token>.+)\z/i
|
13
|
+
BEARER_TOKEN = /\ABearer (?<token>.+)\z/i
|
14
14
|
|
15
15
|
# @param [Hash, #[]] env
|
16
16
|
# @return [Dry::Monads::Success(String)] when a token is found
|