openid_connect 0.6.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +5 -5
  2. data/.github/FUNDING.yml +3 -0
  3. data/.github/workflows/spec.yml +31 -0
  4. data/.gitignore +1 -0
  5. data/CHANGELOG.md +23 -0
  6. data/LICENSE +3 -1
  7. data/README.rdoc +10 -3
  8. data/Rakefile +6 -6
  9. data/TODOs +12 -0
  10. data/VERSION +1 -1
  11. data/lib/openid_connect/access_token/mtls.rb +9 -0
  12. data/lib/openid_connect/access_token.rb +14 -6
  13. data/lib/openid_connect/client/registrar.rb +69 -130
  14. data/lib/openid_connect/client.rb +7 -12
  15. data/lib/openid_connect/discovery/provider/config/resource.rb +5 -3
  16. data/lib/openid_connect/discovery/provider/config/response.rb +73 -78
  17. data/lib/openid_connect/discovery/provider/config.rb +5 -2
  18. data/lib/openid_connect/discovery/provider.rb +6 -2
  19. data/lib/openid_connect/discovery.rb +0 -2
  20. data/lib/openid_connect/jwtnizable.rb +6 -4
  21. data/lib/openid_connect/request_object/claimable.rb +4 -6
  22. data/lib/openid_connect/request_object.rb +6 -13
  23. data/lib/openid_connect/response_object/id_token.rb +38 -37
  24. data/lib/openid_connect/response_object/user_info/address.rb +10 -0
  25. data/lib/openid_connect/response_object/user_info.rb +64 -2
  26. data/lib/openid_connect.rb +26 -11
  27. data/lib/rack/oauth2/server/authorize/extension/code_and_id_token.rb +5 -1
  28. data/lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb +1 -1
  29. data/lib/rack/oauth2/server/authorize/extension/id_token.rb +1 -1
  30. data/lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb +1 -1
  31. data/lib/rack/oauth2/server/authorize/request_with_connect_params.rb +17 -14
  32. data/lib/rack/oauth2/server/id_token_response.rb +11 -13
  33. data/openid_connect.gemspec +19 -13
  34. data/spec/helpers/crypto_spec_helper.rb +2 -2
  35. data/spec/helpers/webmock_helper.rb +14 -9
  36. data/spec/mock_response/access_token/without_token_type.json +3 -0
  37. data/spec/mock_response/discovery/config.json +3 -3
  38. data/spec/mock_response/discovery/config_with_custom_port.json +13 -0
  39. data/spec/mock_response/discovery/config_with_invalid_issuer.json +13 -0
  40. data/spec/mock_response/discovery/config_with_path.json +13 -0
  41. data/spec/mock_response/discovery/config_without_issuer.json +12 -0
  42. data/spec/mock_response/errors/unknown.json +3 -1
  43. data/spec/mock_response/public_keys/{jwk.json → jwks.json} +1 -1
  44. data/spec/mock_response/public_keys/jwks_with_private_key.json +8 -0
  45. data/spec/mock_response/public_keys/private_key.pem +27 -0
  46. data/spec/openid_connect/access_token_spec.rb +11 -20
  47. data/spec/openid_connect/client/registrar_spec.rb +93 -208
  48. data/spec/openid_connect/client_spec.rb +79 -22
  49. data/spec/openid_connect/connect_object_spec.rb +1 -1
  50. data/spec/openid_connect/discovery/provider/config/response_spec.rb +76 -284
  51. data/spec/openid_connect/discovery/provider/config_spec.rb +64 -27
  52. data/spec/openid_connect/discovery/provider_spec.rb +2 -2
  53. data/spec/openid_connect/request_object_spec.rb +4 -4
  54. data/spec/openid_connect/response_object/id_token_spec.rb +94 -52
  55. data/spec/openid_connect/response_object/user_info/{open_id/address_spec.rb → address_spec.rb} +3 -3
  56. data/spec/openid_connect/response_object/{user_info/open_id_spec.rb → user_info_spec.rb} +13 -12
  57. data/spec/openid_connect_spec.rb +19 -19
  58. data/spec/rack/oauth2/server/authorize/extension/code_and_id_token_and_token_spec.rb +11 -0
  59. data/spec/rack/oauth2/server/authorize/extension/code_and_id_token_spec.rb +11 -0
  60. data/spec/rack/oauth2/server/authorize/extension/id_token_and_token_spec.rb +11 -0
  61. data/spec/rack/oauth2/server/authorize/extension/id_token_spec.rb +1 -1
  62. data/spec/rack/oauth2/server/authorize/request_with_connect_params_spec.rb +45 -0
  63. data/spec/spec_helper.rb +12 -1
  64. metadata +155 -90
  65. data/.travis.yml +0 -3
  66. data/Gemfile.lock +0 -102
  67. data/lib/openid_connect/debugger/request_filter.rb +0 -28
  68. data/lib/openid_connect/debugger.rb +0 -3
  69. data/lib/openid_connect/response_object/user_info/open_id/address.rb +0 -12
  70. data/lib/openid_connect/response_object/user_info/open_id.rb +0 -64
  71. data/lib/rack/oauth2/server/resource/error_with_connect_ext.rb +0 -14
  72. data/spec/mock_response/public_keys/x509.pem +0 -21
  73. data/spec/openid_connect/debugger/request_filter_spec.rb +0 -33
  74. data/spec/rack/oauth2/server/resource/error_with_connect_ext_spec.rb +0 -12
  75. /data/spec/mock_response/{user_info → userinfo}/openid.json +0 -0
metadata CHANGED
@@ -1,211 +1,267 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-03 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: json
14
+ name: tzinfo
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.3
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.3
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: tzinfo
28
+ name: attr_required
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: activemodel
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: attr_required
56
+ name: validate_url
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - '>='
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: 0.0.5
61
+ version: '0'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - '>='
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: 0.0.5
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
- name: activemodel
70
+ name: email_validator
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '>='
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: '3'
75
+ version: '0'
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '>='
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: '3'
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: validate_url
84
+ name: mail
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - '>='
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - '>='
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
- name: validate_email
98
+ name: faraday
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: faraday-follow_redirects
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - '>='
115
+ - - ">="
88
116
  - !ruby/object:Gem::Version
89
117
  version: '0'
90
118
  type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
- - - '>='
122
+ - - ">="
95
123
  - !ruby/object:Gem::Version
96
124
  version: '0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: json-jwt
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
- - - '>='
129
+ - - ">="
102
130
  - !ruby/object:Gem::Version
103
- version: 0.3.3
131
+ version: '1.16'
104
132
  type: :runtime
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
- - - '>='
136
+ - - ">="
109
137
  - !ruby/object:Gem::Version
110
- version: 0.3.3
138
+ version: '1.16'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: swd
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
- - - '>='
143
+ - - "~>"
116
144
  - !ruby/object:Gem::Version
117
- version: 0.1.2
145
+ version: '2.0'
118
146
  type: :runtime
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
- - - '>='
150
+ - - "~>"
123
151
  - !ruby/object:Gem::Version
124
- version: 0.1.2
152
+ version: '2.0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: webfinger
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
- - - '>='
157
+ - - "~>"
130
158
  - !ruby/object:Gem::Version
131
- version: 0.0.2
159
+ version: '2.0'
132
160
  type: :runtime
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
- - - '>='
164
+ - - "~>"
137
165
  - !ruby/object:Gem::Version
138
- version: 0.0.2
166
+ version: '2.0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: rack-oauth2
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
- - - '>='
171
+ - - "~>"
144
172
  - !ruby/object:Gem::Version
145
- version: 1.0.0
173
+ version: '2.2'
146
174
  type: :runtime
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
- - - '>='
178
+ - - "~>"
151
179
  - !ruby/object:Gem::Version
152
- version: 1.0.0
180
+ version: '2.2'
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: rake
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
- - - '>='
185
+ - - ">="
158
186
  - !ruby/object:Gem::Version
159
- version: '0.8'
187
+ version: '0'
160
188
  type: :development
161
189
  prerelease: false
162
190
  version_requirements: !ruby/object:Gem::Requirement
163
191
  requirements:
164
- - - '>='
192
+ - - ">="
165
193
  - !ruby/object:Gem::Version
166
- version: '0.8'
194
+ version: '0'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: rspec
169
197
  requirement: !ruby/object:Gem::Requirement
170
198
  requirements:
171
- - - '>='
199
+ - - ">="
172
200
  - !ruby/object:Gem::Version
173
- version: '2'
201
+ version: '0'
174
202
  type: :development
175
203
  prerelease: false
176
204
  version_requirements: !ruby/object:Gem::Requirement
177
205
  requirements:
178
- - - '>='
206
+ - - ">="
179
207
  - !ruby/object:Gem::Version
180
- version: '2'
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rspec-its
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
181
223
  - !ruby/object:Gem::Dependency
182
224
  name: webmock
183
225
  requirement: !ruby/object:Gem::Requirement
184
226
  requirements:
185
- - - '>='
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: simplecov
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
186
242
  - !ruby/object:Gem::Version
187
- version: 1.6.2
243
+ version: '0'
188
244
  type: :development
189
245
  prerelease: false
190
246
  version_requirements: !ruby/object:Gem::Requirement
191
247
  requirements:
192
- - - '>='
248
+ - - ">="
193
249
  - !ruby/object:Gem::Version
194
- version: 1.6.2
250
+ version: '0'
195
251
  - !ruby/object:Gem::Dependency
196
- name: cover_me
252
+ name: rexml
197
253
  requirement: !ruby/object:Gem::Requirement
198
254
  requirements:
199
- - - '>='
255
+ - - ">="
200
256
  - !ruby/object:Gem::Version
201
- version: 1.2.0
257
+ version: '0'
202
258
  type: :development
203
259
  prerelease: false
204
260
  version_requirements: !ruby/object:Gem::Requirement
205
261
  requirements:
206
- - - '>='
262
+ - - ">="
207
263
  - !ruby/object:Gem::Version
208
- version: 1.2.0
264
+ version: '0'
209
265
  description: OpenID Connect Server & Client Library
210
266
  email:
211
267
  - nov@matake.jp
@@ -213,22 +269,23 @@ executables: []
213
269
  extensions: []
214
270
  extra_rdoc_files: []
215
271
  files:
216
- - .gitignore
217
- - .rspec
218
- - .travis.yml
272
+ - ".github/FUNDING.yml"
273
+ - ".github/workflows/spec.yml"
274
+ - ".gitignore"
275
+ - ".rspec"
276
+ - CHANGELOG.md
219
277
  - Gemfile
220
- - Gemfile.lock
221
278
  - LICENSE
222
279
  - README.rdoc
223
280
  - Rakefile
281
+ - TODOs
224
282
  - VERSION
225
283
  - lib/openid_connect.rb
226
284
  - lib/openid_connect/access_token.rb
285
+ - lib/openid_connect/access_token/mtls.rb
227
286
  - lib/openid_connect/client.rb
228
287
  - lib/openid_connect/client/registrar.rb
229
288
  - lib/openid_connect/connect_object.rb
230
- - lib/openid_connect/debugger.rb
231
- - lib/openid_connect/debugger/request_filter.rb
232
289
  - lib/openid_connect/discovery.rb
233
290
  - lib/openid_connect/discovery/provider.rb
234
291
  - lib/openid_connect/discovery/provider/config.rb
@@ -243,8 +300,7 @@ files:
243
300
  - lib/openid_connect/response_object.rb
244
301
  - lib/openid_connect/response_object/id_token.rb
245
302
  - lib/openid_connect/response_object/user_info.rb
246
- - lib/openid_connect/response_object/user_info/open_id.rb
247
- - lib/openid_connect/response_object/user_info/open_id/address.rb
303
+ - lib/openid_connect/response_object/user_info/address.rb
248
304
  - lib/rack/oauth2/server/authorize/error_with_connect_ext.rb
249
305
  - lib/rack/oauth2/server/authorize/extension/code_and_id_token.rb
250
306
  - lib/rack/oauth2/server/authorize/extension/code_and_id_token_and_token.rb
@@ -252,7 +308,6 @@ files:
252
308
  - lib/rack/oauth2/server/authorize/extension/id_token_and_token.rb
253
309
  - lib/rack/oauth2/server/authorize/request_with_connect_params.rb
254
310
  - lib/rack/oauth2/server/id_token_response.rb
255
- - lib/rack/oauth2/server/resource/error_with_connect_ext.rb
256
311
  - openid_connect.gemspec
257
312
  - spec/helpers/crypto_spec_helper.rb
258
313
  - spec/helpers/webmock_helper.rb
@@ -260,10 +315,15 @@ files:
260
315
  - spec/mock_response/access_token/bearer_with_id_token.json
261
316
  - spec/mock_response/access_token/invalid_json.json
262
317
  - spec/mock_response/access_token/mac.json
318
+ - spec/mock_response/access_token/without_token_type.json
263
319
  - spec/mock_response/client/registered.json
264
320
  - spec/mock_response/client/rotated.json
265
321
  - spec/mock_response/client/updated.json
266
322
  - spec/mock_response/discovery/config.json
323
+ - spec/mock_response/discovery/config_with_custom_port.json
324
+ - spec/mock_response/discovery/config_with_invalid_issuer.json
325
+ - spec/mock_response/discovery/config_with_path.json
326
+ - spec/mock_response/discovery/config_without_issuer.json
267
327
  - spec/mock_response/discovery/swd.json
268
328
  - spec/mock_response/discovery/webfinger.json
269
329
  - spec/mock_response/errors/insufficient_scope.json
@@ -271,15 +331,15 @@ files:
271
331
  - spec/mock_response/errors/invalid_request.json
272
332
  - spec/mock_response/errors/unknown.json
273
333
  - spec/mock_response/id_token.json
274
- - spec/mock_response/public_keys/jwk.json
275
- - spec/mock_response/public_keys/x509.pem
334
+ - spec/mock_response/public_keys/jwks.json
335
+ - spec/mock_response/public_keys/jwks_with_private_key.json
336
+ - spec/mock_response/public_keys/private_key.pem
276
337
  - spec/mock_response/request_object/signed.jwt
277
- - spec/mock_response/user_info/openid.json
338
+ - spec/mock_response/userinfo/openid.json
278
339
  - spec/openid_connect/access_token_spec.rb
279
340
  - spec/openid_connect/client/registrar_spec.rb
280
341
  - spec/openid_connect/client_spec.rb
281
342
  - spec/openid_connect/connect_object_spec.rb
282
- - spec/openid_connect/debugger/request_filter_spec.rb
283
343
  - spec/openid_connect/discovery/provider/config/resource_spec.rb
284
344
  - spec/openid_connect/discovery/provider/config/response_spec.rb
285
345
  - spec/openid_connect/discovery/provider/config_spec.rb
@@ -287,38 +347,38 @@ files:
287
347
  - spec/openid_connect/exception_spec.rb
288
348
  - spec/openid_connect/request_object_spec.rb
289
349
  - spec/openid_connect/response_object/id_token_spec.rb
290
- - spec/openid_connect/response_object/user_info/open_id/address_spec.rb
291
- - spec/openid_connect/response_object/user_info/open_id_spec.rb
350
+ - spec/openid_connect/response_object/user_info/address_spec.rb
351
+ - spec/openid_connect/response_object/user_info_spec.rb
292
352
  - spec/openid_connect_spec.rb
293
353
  - spec/rack/oauth2/server/authorize/extension/code_and_id_token_and_token_spec.rb
294
354
  - spec/rack/oauth2/server/authorize/extension/code_and_id_token_spec.rb
295
355
  - spec/rack/oauth2/server/authorize/extension/id_token_and_token_spec.rb
296
356
  - spec/rack/oauth2/server/authorize/extension/id_token_spec.rb
297
- - spec/rack/oauth2/server/resource/error_with_connect_ext_spec.rb
357
+ - spec/rack/oauth2/server/authorize/request_with_connect_params_spec.rb
298
358
  - spec/rack/oauth2/server/token/authorization_code_spec.rb
299
359
  - spec/rack/oauth2/server/token/refresh_token_spec.rb
300
360
  - spec/spec_helper.rb
301
361
  homepage: https://github.com/nov/openid_connect
302
- licenses: []
362
+ licenses:
363
+ - MIT
303
364
  metadata: {}
304
- post_install_message:
365
+ post_install_message:
305
366
  rdoc_options: []
306
367
  require_paths:
307
368
  - lib
308
369
  required_ruby_version: !ruby/object:Gem::Requirement
309
370
  requirements:
310
- - - '>='
371
+ - - ">="
311
372
  - !ruby/object:Gem::Version
312
373
  version: '0'
313
374
  required_rubygems_version: !ruby/object:Gem::Requirement
314
375
  requirements:
315
- - - '>='
376
+ - - ">="
316
377
  - !ruby/object:Gem::Version
317
378
  version: '0'
318
379
  requirements: []
319
- rubyforge_project:
320
- rubygems_version: 2.0.0
321
- signing_key:
380
+ rubygems_version: 3.4.10
381
+ signing_key:
322
382
  specification_version: 4
323
383
  summary: OpenID Connect Server & Client Library
324
384
  test_files:
@@ -328,10 +388,15 @@ test_files:
328
388
  - spec/mock_response/access_token/bearer_with_id_token.json
329
389
  - spec/mock_response/access_token/invalid_json.json
330
390
  - spec/mock_response/access_token/mac.json
391
+ - spec/mock_response/access_token/without_token_type.json
331
392
  - spec/mock_response/client/registered.json
332
393
  - spec/mock_response/client/rotated.json
333
394
  - spec/mock_response/client/updated.json
334
395
  - spec/mock_response/discovery/config.json
396
+ - spec/mock_response/discovery/config_with_custom_port.json
397
+ - spec/mock_response/discovery/config_with_invalid_issuer.json
398
+ - spec/mock_response/discovery/config_with_path.json
399
+ - spec/mock_response/discovery/config_without_issuer.json
335
400
  - spec/mock_response/discovery/swd.json
336
401
  - spec/mock_response/discovery/webfinger.json
337
402
  - spec/mock_response/errors/insufficient_scope.json
@@ -339,15 +404,15 @@ test_files:
339
404
  - spec/mock_response/errors/invalid_request.json
340
405
  - spec/mock_response/errors/unknown.json
341
406
  - spec/mock_response/id_token.json
342
- - spec/mock_response/public_keys/jwk.json
343
- - spec/mock_response/public_keys/x509.pem
407
+ - spec/mock_response/public_keys/jwks.json
408
+ - spec/mock_response/public_keys/jwks_with_private_key.json
409
+ - spec/mock_response/public_keys/private_key.pem
344
410
  - spec/mock_response/request_object/signed.jwt
345
- - spec/mock_response/user_info/openid.json
411
+ - spec/mock_response/userinfo/openid.json
346
412
  - spec/openid_connect/access_token_spec.rb
347
413
  - spec/openid_connect/client/registrar_spec.rb
348
414
  - spec/openid_connect/client_spec.rb
349
415
  - spec/openid_connect/connect_object_spec.rb
350
- - spec/openid_connect/debugger/request_filter_spec.rb
351
416
  - spec/openid_connect/discovery/provider/config/resource_spec.rb
352
417
  - spec/openid_connect/discovery/provider/config/response_spec.rb
353
418
  - spec/openid_connect/discovery/provider/config_spec.rb
@@ -355,14 +420,14 @@ test_files:
355
420
  - spec/openid_connect/exception_spec.rb
356
421
  - spec/openid_connect/request_object_spec.rb
357
422
  - spec/openid_connect/response_object/id_token_spec.rb
358
- - spec/openid_connect/response_object/user_info/open_id/address_spec.rb
359
- - spec/openid_connect/response_object/user_info/open_id_spec.rb
423
+ - spec/openid_connect/response_object/user_info/address_spec.rb
424
+ - spec/openid_connect/response_object/user_info_spec.rb
360
425
  - spec/openid_connect_spec.rb
361
426
  - spec/rack/oauth2/server/authorize/extension/code_and_id_token_and_token_spec.rb
362
427
  - spec/rack/oauth2/server/authorize/extension/code_and_id_token_spec.rb
363
428
  - spec/rack/oauth2/server/authorize/extension/id_token_and_token_spec.rb
364
429
  - spec/rack/oauth2/server/authorize/extension/id_token_spec.rb
365
- - spec/rack/oauth2/server/resource/error_with_connect_ext_spec.rb
430
+ - spec/rack/oauth2/server/authorize/request_with_connect_params_spec.rb
366
431
  - spec/rack/oauth2/server/token/authorization_code_spec.rb
367
432
  - spec/rack/oauth2/server/token/refresh_token_spec.rb
368
433
  - spec/spec_helper.rb
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- rvm:
2
- - 1.9.2
3
- - 1.9.3
data/Gemfile.lock DELETED
@@ -1,102 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- openid_connect (0.6.1)
5
- activemodel (>= 3)
6
- attr_required (>= 0.0.5)
7
- json (>= 1.4.3)
8
- json-jwt (>= 0.3.3)
9
- rack-oauth2 (>= 1.0.0)
10
- swd (>= 0.1.2)
11
- tzinfo
12
- validate_email
13
- validate_url
14
- webfinger (>= 0.0.2)
15
-
16
- GEM
17
- remote: https://rubygems.org/
18
- specs:
19
- activemodel (3.2.12)
20
- activesupport (= 3.2.12)
21
- builder (~> 3.0.0)
22
- activesupport (3.2.12)
23
- i18n (~> 0.6)
24
- multi_json (~> 1.0)
25
- addressable (2.3.3)
26
- attr_required (0.0.5)
27
- builder (3.0.4)
28
- configatron (2.10.0)
29
- yamler (>= 0.1.0)
30
- cover_me (1.2.0)
31
- configatron
32
- hashie
33
- crack (0.3.2)
34
- diff-lcs (1.2.1)
35
- hashie (2.0.2)
36
- httpclient (2.3.3)
37
- i18n (0.6.4)
38
- json (1.7.7)
39
- json-jwt (0.4.3)
40
- activesupport (>= 2.3)
41
- i18n
42
- multi_json (>= 1.3)
43
- url_safe_base64
44
- mail (2.5.3)
45
- i18n (>= 0.4.0)
46
- mime-types (~> 1.16)
47
- treetop (~> 1.4.8)
48
- mime-types (1.21)
49
- multi_json (1.6.1)
50
- polyglot (0.3.3)
51
- rack (1.5.2)
52
- rack-oauth2 (1.0.3)
53
- activesupport (>= 2.3)
54
- attr_required (>= 0.0.5)
55
- httpclient (>= 2.2.0.2)
56
- i18n
57
- multi_json (>= 1.3.6)
58
- rack (>= 1.1)
59
- rake (10.0.3)
60
- rspec (2.13.0)
61
- rspec-core (~> 2.13.0)
62
- rspec-expectations (~> 2.13.0)
63
- rspec-mocks (~> 2.13.0)
64
- rspec-core (2.13.0)
65
- rspec-expectations (2.13.0)
66
- diff-lcs (>= 1.1.3, < 2.0)
67
- rspec-mocks (2.13.0)
68
- swd (0.2.1)
69
- activesupport (>= 3)
70
- attr_required (>= 0.0.5)
71
- httpclient (>= 2.2.1)
72
- i18n
73
- json (>= 1.4.3)
74
- treetop (1.4.12)
75
- polyglot
76
- polyglot (>= 0.3.1)
77
- tzinfo (0.3.35)
78
- url_safe_base64 (0.2.1)
79
- validate_email (0.1.6)
80
- activemodel (>= 3.0)
81
- mail (>= 2.2.5)
82
- validate_url (0.2.0)
83
- activemodel (>= 3.0.0)
84
- webfinger (0.0.4)
85
- activesupport (>= 3)
86
- httpclient (>= 2.2.0.2)
87
- multi_json
88
- webmock (1.10.1)
89
- addressable (>= 2.2.7)
90
- crack (>= 0.3.2)
91
- yamler (0.1.0)
92
-
93
- PLATFORMS
94
- java
95
- ruby
96
-
97
- DEPENDENCIES
98
- cover_me (>= 1.2.0)
99
- openid_connect!
100
- rake (>= 0.8)
101
- rspec (>= 2)
102
- webmock (>= 1.6.2)
@@ -1,28 +0,0 @@
1
- module OpenIDConnect
2
- module Debugger
3
- class RequestFilter
4
- # Callback called in HTTPClient (before sending a request)
5
- # request:: HTTP::Message
6
- def filter_request(request)
7
- started = "======= [OpenIDConnect] HTTP REQUEST STARTED ======="
8
- log started, request.dump
9
- end
10
-
11
- # Callback called in HTTPClient (after received a response)
12
- # request:: HTTP::Message
13
- # response:: HTTP::Message
14
- def filter_response(request, response)
15
- finished = "======= [OpenIDConnect] HTTP REQUEST FINISHED ======="
16
- log '-' * 50, response.dump, finished
17
- end
18
-
19
- private
20
-
21
- def log(*outputs)
22
- outputs.each do |output|
23
- OpenIDConnect.logger.info output
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,3 +0,0 @@
1
- Dir[File.dirname(__FILE__) + '/debugger/*.rb'].each do |file|
2
- require file
3
- end
@@ -1,12 +0,0 @@
1
- module OpenIDConnect
2
- class ResponseObject
3
- module UserInfo
4
- class OpenID
5
- class Address < ConnectObject
6
- attr_optional :formatted, :street_address, :locality, :region, :postal_code, :country
7
- validate :require_at_least_one_attributes
8
- end
9
- end
10
- end
11
- end
12
- end