openid_connect 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/Gemfile.lock +34 -26
- data/README.rdoc +2 -2
- data/Rakefile +12 -4
- data/VERSION +1 -1
- data/lib/openid_connect/access_token.rb +8 -0
- data/lib/openid_connect/client/registrar.rb +217 -0
- data/lib/openid_connect/client.rb +4 -0
- data/lib/openid_connect/discovery/provider/config/response.rb +40 -5
- data/lib/openid_connect/exception.rb +9 -0
- data/lib/openid_connect/response_object/id_token.rb +6 -28
- data/lib/openid_connect/response_object/user_info/open_id.rb +22 -15
- data/lib/openid_connect/response_object.rb +0 -16
- data/lib/openid_connect.rb +14 -0
- data/openid_connect.gemspec +5 -1
- data/spec/mock_response/discovery/config.json +4 -4
- data/spec/mock_response/id_token.json +3 -3
- data/spec/openid_connect/access_token_spec.rb +46 -26
- data/spec/openid_connect/client/registrar_spec.rb +115 -0
- data/spec/openid_connect/discovery/provider/config/response_spec.rb +46 -0
- data/spec/openid_connect/discovery/provider/config_spec.rb +5 -5
- data/spec/openid_connect/response_object/id_token_spec.rb +32 -7
- data/spec/openid_connect/response_object/user_info/open_id_spec.rb +8 -0
- data/spec/openid_connect/response_object_spec.rb +4 -4
- data/spec/rack/oauth2/server/authorize/extension/code_and_id_token_spec.rb +2 -1
- data/spec/rack/oauth2/server/authorize/extension/id_token_and_token_spec.rb +10 -5
- data/spec/rack/oauth2/server/authorize/extension/id_token_spec.rb +8 -5
- data/spec/spec_helper.rb +7 -0
- metadata +124 -126
metadata
CHANGED
@@ -1,170 +1,166 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: openid_connect
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.32
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.31
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- nov matake
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-01 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70144609969240 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.4.3
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: tzinfo
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: *70144609969240
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: tzinfo
|
27
|
+
requirement: &70144609968320 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
35
33
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: attr_required
|
39
34
|
prerelease: false
|
40
|
-
|
35
|
+
version_requirements: *70144609968320
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: attr_required
|
38
|
+
requirement: &70144609967380 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
45
43
|
version: 0.0.3
|
46
44
|
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: activemodel
|
50
45
|
prerelease: false
|
51
|
-
|
46
|
+
version_requirements: *70144609967380
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: activemodel
|
49
|
+
requirement: &70144609959280 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3'
|
57
55
|
type: :runtime
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: validate_url
|
61
56
|
prerelease: false
|
62
|
-
|
57
|
+
version_requirements: *70144609959280
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: validate_url
|
60
|
+
requirement: &70144609958200 !ruby/object:Gem::Requirement
|
63
61
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
68
66
|
type: :runtime
|
69
|
-
version_requirements: *id005
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: validate_email
|
72
67
|
prerelease: false
|
73
|
-
|
68
|
+
version_requirements: *70144609958200
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: validate_email
|
71
|
+
requirement: &70144609956520 !ruby/object:Gem::Requirement
|
74
72
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
79
77
|
type: :runtime
|
80
|
-
version_requirements: *id006
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: json-jwt
|
83
78
|
prerelease: false
|
84
|
-
|
79
|
+
version_requirements: *70144609956520
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: json-jwt
|
82
|
+
requirement: &70144609955380 !ruby/object:Gem::Requirement
|
85
83
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
89
87
|
version: 0.0.3
|
90
88
|
type: :runtime
|
91
|
-
version_requirements: *id007
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: swd
|
94
89
|
prerelease: false
|
95
|
-
|
90
|
+
version_requirements: *70144609955380
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: swd
|
93
|
+
requirement: &70144609953140 !ruby/object:Gem::Requirement
|
96
94
|
none: false
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
100
98
|
version: 0.0.6
|
101
99
|
type: :runtime
|
102
|
-
version_requirements: *id008
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: rack-oauth2
|
105
100
|
prerelease: false
|
106
|
-
|
101
|
+
version_requirements: *70144609953140
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: rack-oauth2
|
104
|
+
requirement: &70144609952600 !ruby/object:Gem::Requirement
|
107
105
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
111
109
|
version: 0.10.0
|
112
110
|
type: :runtime
|
113
|
-
version_requirements: *id009
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
|
-
name: rake
|
116
111
|
prerelease: false
|
117
|
-
|
112
|
+
version_requirements: *70144609952600
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rake
|
115
|
+
requirement: &70144609951520 !ruby/object:Gem::Requirement
|
118
116
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version:
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0.8'
|
123
121
|
type: :development
|
124
|
-
version_requirements: *id010
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rcov
|
127
122
|
prerelease: false
|
128
|
-
|
123
|
+
version_requirements: *70144609951520
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: cover_me
|
126
|
+
requirement: &70144609946820 !ruby/object:Gem::Requirement
|
129
127
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version:
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.2.0
|
134
132
|
type: :development
|
135
|
-
version_requirements: *id011
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
name: rspec
|
138
133
|
prerelease: false
|
139
|
-
|
134
|
+
version_requirements: *70144609946820
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: rspec
|
137
|
+
requirement: &70144609945900 !ruby/object:Gem::Requirement
|
140
138
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version:
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '2'
|
145
143
|
type: :development
|
146
|
-
version_requirements: *id012
|
147
|
-
- !ruby/object:Gem::Dependency
|
148
|
-
name: webmock
|
149
144
|
prerelease: false
|
150
|
-
|
145
|
+
version_requirements: *70144609945900
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: webmock
|
148
|
+
requirement: &70144609944820 !ruby/object:Gem::Requirement
|
151
149
|
none: false
|
152
|
-
requirements:
|
153
|
-
- -
|
154
|
-
- !ruby/object:Gem::Version
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
155
153
|
version: 1.6.2
|
156
154
|
type: :development
|
157
|
-
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: *70144609944820
|
158
157
|
description: OpenID Connect Server & Client Library
|
159
|
-
email:
|
158
|
+
email:
|
160
159
|
- nov@matake.jp
|
161
160
|
executables: []
|
162
|
-
|
163
161
|
extensions: []
|
164
|
-
|
165
162
|
extra_rdoc_files: []
|
166
|
-
|
167
|
-
files:
|
163
|
+
files:
|
168
164
|
- .gitignore
|
169
165
|
- .rspec
|
170
166
|
- .travis.yml
|
@@ -177,6 +173,7 @@ files:
|
|
177
173
|
- lib/openid_connect.rb
|
178
174
|
- lib/openid_connect/access_token.rb
|
179
175
|
- lib/openid_connect/client.rb
|
176
|
+
- lib/openid_connect/client/registrar.rb
|
180
177
|
- lib/openid_connect/debugger.rb
|
181
178
|
- lib/openid_connect/debugger/request_filter.rb
|
182
179
|
- lib/openid_connect/discovery.rb
|
@@ -215,12 +212,14 @@ files:
|
|
215
212
|
- spec/mock_response/id_token.json
|
216
213
|
- spec/mock_response/user_info/openid.json
|
217
214
|
- spec/openid_connect/access_token_spec.rb
|
215
|
+
- spec/openid_connect/client/registrar_spec.rb
|
218
216
|
- spec/openid_connect/client_spec.rb
|
219
217
|
- spec/openid_connect/debugger/request_filter_spec.rb
|
220
218
|
- spec/openid_connect/discovery/principal/email_spec.rb
|
221
219
|
- spec/openid_connect/discovery/principal/uri_spec.rb
|
222
220
|
- spec/openid_connect/discovery/principal/xri_spec.rb
|
223
221
|
- spec/openid_connect/discovery/principal_spec.rb
|
222
|
+
- spec/openid_connect/discovery/provider/config/response_spec.rb
|
224
223
|
- spec/openid_connect/discovery/provider/config_spec.rb
|
225
224
|
- spec/openid_connect/discovery/provider_spec.rb
|
226
225
|
- spec/openid_connect/exception_spec.rb
|
@@ -238,32 +237,29 @@ files:
|
|
238
237
|
- spec/spec_helper.rb
|
239
238
|
homepage: https://github.com/nov/openid_connect
|
240
239
|
licenses: []
|
241
|
-
|
242
240
|
post_install_message:
|
243
241
|
rdoc_options: []
|
244
|
-
|
245
|
-
require_paths:
|
242
|
+
require_paths:
|
246
243
|
- lib
|
247
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
244
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
248
245
|
none: false
|
249
|
-
requirements:
|
250
|
-
- -
|
251
|
-
- !ruby/object:Gem::Version
|
252
|
-
version:
|
253
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - ! '>='
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0'
|
250
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
251
|
none: false
|
255
|
-
requirements:
|
256
|
-
- -
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version:
|
252
|
+
requirements:
|
253
|
+
- - ! '>='
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '0'
|
259
256
|
requirements: []
|
260
|
-
|
261
257
|
rubyforge_project:
|
262
|
-
rubygems_version: 1.8.
|
258
|
+
rubygems_version: 1.8.12
|
263
259
|
signing_key:
|
264
260
|
specification_version: 3
|
265
261
|
summary: OpenID Connect Server & Client Library
|
266
|
-
test_files:
|
262
|
+
test_files:
|
267
263
|
- spec/helpers/webmock_helper.rb
|
268
264
|
- spec/mock_response/access_token/bearer.json
|
269
265
|
- spec/mock_response/access_token/bearer_with_id_token.json
|
@@ -277,12 +273,14 @@ test_files:
|
|
277
273
|
- spec/mock_response/id_token.json
|
278
274
|
- spec/mock_response/user_info/openid.json
|
279
275
|
- spec/openid_connect/access_token_spec.rb
|
276
|
+
- spec/openid_connect/client/registrar_spec.rb
|
280
277
|
- spec/openid_connect/client_spec.rb
|
281
278
|
- spec/openid_connect/debugger/request_filter_spec.rb
|
282
279
|
- spec/openid_connect/discovery/principal/email_spec.rb
|
283
280
|
- spec/openid_connect/discovery/principal/uri_spec.rb
|
284
281
|
- spec/openid_connect/discovery/principal/xri_spec.rb
|
285
282
|
- spec/openid_connect/discovery/principal_spec.rb
|
283
|
+
- spec/openid_connect/discovery/provider/config/response_spec.rb
|
286
284
|
- spec/openid_connect/discovery/provider/config_spec.rb
|
287
285
|
- spec/openid_connect/discovery/provider_spec.rb
|
288
286
|
- spec/openid_connect/exception_spec.rb
|