authlete 1.0.21 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Makefile +40 -0
- data/README.md +20 -20
- data/Rakefile +5 -0
- data/authlete.gemspec +2 -2
- data/lib/authlete.rb +28 -9
- data/lib/authlete/api.rb +153 -322
- data/lib/authlete/authentication-server.rb +230 -230
- data/lib/authlete/exception.rb +14 -15
- data/lib/authlete/model/base.rb +30 -0
- data/lib/authlete/model/client-extension.rb +17 -119
- data/lib/authlete/model/client.rb +203 -338
- data/lib/authlete/model/hashable.rb +13 -33
- data/lib/authlete/model/named-uri.rb +13 -74
- data/lib/authlete/model/pair.rb +13 -74
- data/lib/authlete/model/param-initializer.rb +45 -0
- data/lib/authlete/model/property.rb +15 -85
- data/lib/authlete/model/request/authentication-callback-request.rb +63 -55
- data/lib/authlete/model/request/authorization-fail-request.rb +14 -75
- data/lib/authlete/model/request/authorization-issue-request.rb +38 -119
- data/lib/authlete/model/request/authorization-request.rb +8 -73
- data/lib/authlete/model/request/backchannel-authentication-complete-request.rb +97 -0
- data/lib/authlete/model/request/backchannel-authentication-fail-request.rb +55 -0
- data/lib/authlete/model/request/backchannel-authentication-issue-request.rb +37 -0
- data/lib/authlete/model/request/backchannel-authentication-request.rb +63 -0
- data/lib/authlete/model/request/base.rb +26 -0
- data/lib/authlete/model/request/client-authorization-delete-request.rb +7 -93
- data/lib/authlete/model/request/client-authorization-get-list-request.rb +17 -89
- data/lib/authlete/model/request/client-authorization-update-request.rb +11 -86
- data/lib/authlete/model/request/client-registration-request.rb +49 -0
- data/lib/authlete/model/request/client-secret-update-request.rb +7 -89
- data/lib/authlete/model/request/developer-authentication-callback-request.rb +40 -43
- data/lib/authlete/model/request/device-authorization-request.rb +63 -0
- data/lib/authlete/model/request/device-complete-request.rb +99 -0
- data/lib/authlete/model/request/device-verification-request.rb +40 -0
- data/lib/authlete/model/request/granted-scopes-request.rb +8 -74
- data/lib/authlete/model/request/introspection-request.rb +24 -83
- data/lib/authlete/model/request/pushed-auth-req-request.rb +64 -0
- data/lib/authlete/model/request/revocation-request.rb +14 -88
- data/lib/authlete/model/request/standard-introspection-request.rb +8 -73
- data/lib/authlete/model/request/token-create-request.rb +52 -183
- data/lib/authlete/model/request/token-fail-request.rb +12 -74
- data/lib/authlete/model/request/token-issue-request.rb +22 -80
- data/lib/authlete/model/request/token-request.rb +44 -81
- data/lib/authlete/model/request/token-update-request.rb +35 -121
- data/lib/authlete/model/request/user-info-issue-request.rb +14 -80
- data/lib/authlete/model/request/user-info-request.rb +25 -70
- data/lib/authlete/model/response/access-token.rb +96 -0
- data/lib/authlete/model/response/authentication-callback-response.rb +24 -19
- data/lib/authlete/model/response/authorization-fail-response.rb +13 -15
- data/lib/authlete/model/response/authorization-issue-response.rb +29 -32
- data/lib/authlete/model/response/authorization-response.rb +97 -123
- data/lib/authlete/model/response/authorized-client-list-response.rb +37 -0
- data/lib/authlete/model/response/backchannel-authentication-complete-response.rb +143 -0
- data/lib/authlete/model/response/backchannel-authentication-fail-response.rb +47 -0
- data/lib/authlete/model/response/backchannel-authentication-issue-response.rb +63 -0
- data/lib/authlete/model/response/backchannel-authentication-response.rb +160 -0
- data/lib/authlete/model/response/client-list-response.rb +58 -0
- data/lib/authlete/model/response/client-registration-response.rb +50 -0
- data/lib/authlete/model/response/client-secret-refresh-response.rb +12 -12
- data/lib/authlete/model/response/client-secret-update-response.rb +12 -12
- data/lib/authlete/model/response/developer-authentication-callback-response.rb +24 -19
- data/lib/authlete/model/response/device-authorization-response.rb +134 -0
- data/lib/authlete/model/response/device-complete-response.rb +39 -0
- data/lib/authlete/model/response/device-verification-response.rb +96 -0
- data/lib/authlete/model/response/granted-scopes-get-response.rb +27 -19
- data/lib/authlete/model/response/introspection-response.rb +64 -58
- data/lib/authlete/model/response/pushed-auth-req-response.rb +59 -0
- data/lib/authlete/model/response/revocation-response.rb +12 -15
- data/lib/authlete/model/response/service-list-response.rb +54 -0
- data/lib/authlete/model/response/standard-introspection-response.rb +13 -15
- data/lib/authlete/model/response/token-create-response.rb +50 -55
- data/lib/authlete/model/response/token-fail-response.rb +14 -17
- data/lib/authlete/model/response/token-issue-response.rb +49 -62
- data/lib/authlete/model/response/token-list-response.rb +64 -0
- data/lib/authlete/model/response/token-response.rb +59 -79
- data/lib/authlete/model/response/token-update-response.rb +28 -23
- data/lib/authlete/model/response/user-info-issue-response.rb +16 -16
- data/lib/authlete/model/response/user-info-response.rb +48 -42
- data/lib/authlete/model/result.rb +14 -13
- data/lib/authlete/model/scope.rb +68 -158
- data/lib/authlete/model/service-owner.rb +32 -116
- data/lib/authlete/model/service.rb +672 -837
- data/lib/authlete/model/sns-credentials.rb +51 -124
- data/lib/authlete/model/tagged-value.rb +14 -69
- data/lib/authlete/utility.rb +70 -99
- data/lib/authlete/version.rb +3 -3
- data/test/authlete/model/request/test_authentication-callback-request.rb +100 -0
- data/test/authlete/model/request/test_authorization-fail-request.rb +67 -0
- data/test/authlete/model/request/test_authorization-issue-request.rb +94 -0
- data/test/authlete/model/request/test_authorization-request.rb +57 -0
- data/test/authlete/model/request/test_backchannel-authentication-complete-request.rb +102 -0
- data/test/authlete/model/request/test_backchannel-authentication-fail-request.rb +71 -0
- data/test/authlete/model/request/test_backchannel-authentication-issue-request.rb +57 -0
- data/test/authlete/model/request/test_backchannel-authentication-request.rb +75 -0
- data/test/authlete/model/request/test_client-authorization-delete-request.rb +57 -0
- data/test/authlete/model/request/test_client-authorization-get-list-request.rb +71 -0
- data/test/authlete/model/request/test_client-authorization-update-request.rb +63 -0
- data/test/authlete/model/request/test_client-registration-request.rb +68 -0
- data/test/authlete/model/request/test_device-authorization-request.rb +75 -0
- data/test/authlete/model/request/test_device-complete-request.rb +102 -0
- data/test/authlete/model/request/test_device-verification-request.rb +57 -0
- data/test/authlete/model/request/test_granted-scopes-request.rb +57 -0
- data/test/authlete/model/request/test_introspection-request.rb +79 -0
- data/test/authlete/model/request/test_pushed-auth-req-request.rb +75 -0
- data/test/authlete/model/request/test_revocation-request.rb +67 -0
- data/test/authlete/model/request/test_standard-introspection-request.rb +57 -0
- data/test/authlete/model/request/test_token-create-request.rb +110 -0
- data/test/authlete/model/request/test_token-fail-request.rb +63 -0
- data/test/authlete/model/request/test_token-issue-request.rb +70 -0
- data/test/authlete/model/request/test_token-request.rb +94 -0
- data/test/authlete/model/request/test_token-update-request.rb +82 -0
- data/test/authlete/model/request/test_user-info-issue-request.rb +67 -0
- data/test/authlete/model/request/test_user-info-request.rb +75 -0
- data/test/authlete/model/response/test_access-token.rb +101 -0
- data/test/authlete/model/response/test_authorization-fail-response.rb +68 -0
- data/test/authlete/model/response/test_authorization-issue-response.rb +92 -0
- data/test/authlete/model/response/test_authorization-response.rb +145 -0
- data/test/authlete/model/response/test_authorized-client-list-response.rb +83 -0
- data/test/authlete/model/response/test_backchannel-authentication-complete-response.rb +132 -0
- data/test/authlete/model/response/test_backchannel-authentication-fail-response.rb +68 -0
- data/test/authlete/model/response/test_backchannel-authentication-issue-response.rb +80 -0
- data/test/authlete/model/response/test_backchannel-authentication-response.rb +156 -0
- data/test/authlete/model/response/test_client-list-response.rb +79 -0
- data/test/authlete/model/response/test_client-secret-refresh-response.rb +68 -0
- data/test/authlete/model/response/test_client-secret-update-response.rb +68 -0
- data/test/authlete/model/response/test_device-authorization-response.rb +140 -0
- data/test/authlete/model/response/test_device-complete-response.rb +64 -0
- data/test/authlete/model/response/test_device-verification-response.rb +112 -0
- data/test/authlete/model/response/test_granted-scopes-get-response.rb +84 -0
- data/test/authlete/model/response/test_introspection-response.rb +127 -0
- data/test/authlete/model/response/test_pushed-auth-req-response.rb +76 -0
- data/test/authlete/model/response/test_revocation-response.rb +68 -0
- data/test/authlete/model/response/test_service-list-response.rb +72 -0
- data/test/authlete/model/response/test_standard-introspection-response.rb +68 -0
- data/test/authlete/model/response/test_token-create-response.rb +107 -0
- data/test/authlete/model/response/test_token-fail-response.rb +68 -0
- data/test/authlete/model/response/test_token-issue-response.rb +127 -0
- data/test/authlete/model/response/test_token-list-response.rb +84 -0
- data/test/authlete/model/response/test_token-response.rb +147 -0
- data/test/authlete/model/response/test_token-update-response.rb +87 -0
- data/test/authlete/model/response/test_user-info-issue-response.rb +68 -0
- data/test/authlete/model/response/test_user-info-response.rb +107 -0
- data/test/authlete/model/test_client-extension.rb +95 -0
- data/test/authlete/model/test_client.rb +461 -0
- data/test/authlete/model/test_named-uri.rb +85 -0
- data/test/authlete/model/test_pair.rb +85 -0
- data/test/authlete/model/test_property.rb +90 -0
- data/test/authlete/model/test_result.rb +68 -0
- data/test/authlete/model/test_scope.rb +106 -0
- data/test/authlete/model/test_service-owner.rb +80 -0
- data/test/authlete/model/test_service.rb +624 -0
- data/test/authlete/model/test_sns-credentials.rb +88 -0
- data/test/authlete/model/test_tagged-value.rb +83 -0
- data/test/authlete/test_exception.rb +70 -0
- metadata +173 -13
- data/lib/authlete/model/client-list.rb +0 -129
- data/lib/authlete/model/response/client-authorization-get-list-response.rb +0 -60
- data/lib/authlete/model/response/service-creatable-response.rb +0 -51
- data/lib/authlete/model/service-list.rb +0 -128
@@ -1,837 +1,672 @@
|
|
1
|
-
# :nodoc:
|
2
|
-
#
|
3
|
-
# Copyright (C) 2014-
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
attr_accessor :
|
27
|
-
alias_method :
|
28
|
-
alias_method :
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
alias_method :
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
attr_accessor :
|
49
|
-
alias_method :
|
50
|
-
alias_method :
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
alias_method :
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
alias_method :
|
66
|
-
|
67
|
-
|
68
|
-
attr_accessor :
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
alias_method :
|
76
|
-
|
77
|
-
|
78
|
-
attr_accessor :
|
79
|
-
alias_method :
|
80
|
-
alias_method :
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
attr_accessor :
|
91
|
-
alias_method :
|
92
|
-
alias_method :
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
alias_method :
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
alias_method :
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
alias_method :
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
alias_method :
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
alias_method :
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
alias_method :
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
alias_method :
|
152
|
-
|
153
|
-
|
154
|
-
attr_accessor :
|
155
|
-
alias_method :
|
156
|
-
alias_method :
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
alias_method :
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
attr_accessor :
|
171
|
-
alias_method :
|
172
|
-
alias_method :
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
alias_method :
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
alias_method :
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
alias_method :
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
alias_method :direct_introspection_endpoint_enabled
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
alias_method :
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
alias_method :
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
alias_method :
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
alias_method :
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
alias_method :
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
alias_method :
|
248
|
-
|
249
|
-
|
250
|
-
attr_accessor :
|
251
|
-
alias_method :
|
252
|
-
alias_method :
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
alias_method :
|
264
|
-
|
265
|
-
|
266
|
-
attr_accessor :
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
attr_accessor :
|
273
|
-
alias_method :
|
274
|
-
alias_method :
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
attr_accessor :
|
281
|
-
alias_method :
|
282
|
-
alias_method :
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
alias_method :
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
alias_method :
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
alias_method :
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
alias_method :
|
328
|
-
|
329
|
-
|
330
|
-
attr_accessor :
|
331
|
-
alias_method :
|
332
|
-
alias_method :
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
alias_method :
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
alias_method :
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
alias_method :
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
alias_method :
|
364
|
-
|
365
|
-
|
366
|
-
attr_accessor :
|
367
|
-
alias_method :
|
368
|
-
alias_method :
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
alias_method :
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
attr_accessor :
|
379
|
-
alias_method :
|
380
|
-
alias_method :
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
alias_method :
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
attr_accessor :
|
391
|
-
alias_method :
|
392
|
-
alias_method :
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
attr_accessor :
|
399
|
-
alias_method :
|
400
|
-
alias_method :
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
alias_method :
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
alias_method :
|
420
|
-
|
421
|
-
|
422
|
-
attr_accessor :
|
423
|
-
alias_method :
|
424
|
-
alias_method :
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
attr_accessor :
|
431
|
-
alias_method :
|
432
|
-
alias_method :
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
:
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
:
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
:
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
:
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
:registration_endpoint => :registrationEndpoint,
|
674
|
-
:registration_management_endpoint => :registrationManagementEndpoint,
|
675
|
-
:revocation_endpoint => :revocationEndpoint,
|
676
|
-
:request_object_endpoint => :requestObjectEndpoint,
|
677
|
-
:service_documentation => :serviceDocumentation,
|
678
|
-
:service_name => :serviceName,
|
679
|
-
:service_owner_number => :serviceOwnerNumber,
|
680
|
-
:single_access_token_per_subject => :singleAccessTokenPerSubject,
|
681
|
-
:sns_credentials => :snsCredentials,
|
682
|
-
:supported_acrs => :supportedAcrs,
|
683
|
-
:supported_backchannel_token_delivery_modes => :supportedBackchannelTokenDeliveryModes,
|
684
|
-
:supported_claim_locales => :supportedClaimLocales,
|
685
|
-
:supported_claims => :supportedClaims,
|
686
|
-
:supported_claim_types => :supportedClaimTypes,
|
687
|
-
:supported_developer_snses => :supportedDeveloperSnses,
|
688
|
-
:supported_displays => :supportedDisplays,
|
689
|
-
:supported_grant_types => :supportedGrantTypes,
|
690
|
-
:supported_response_types => :supportedResponseTypes,
|
691
|
-
:supported_scopes => :supportedScopes,
|
692
|
-
:supported_service_profiles => :supportedServiceProfiles,
|
693
|
-
:supported_snses => :supportedSnses,
|
694
|
-
:supported_token_auth_methods => :supportedTokenAuthMethods,
|
695
|
-
:supported_ui_locales => :supportedUiLocales,
|
696
|
-
:tls_client_certificate_bound_access_tokens => :tlsClientCertificateBoundAccessTokens,
|
697
|
-
:token_endpoint => :tokenEndpoint,
|
698
|
-
:tos_uri => :tosUri,
|
699
|
-
:trusted_root_certificates => :trustedRootCertificates,
|
700
|
-
:user_code_charset => :userCodeCharset,
|
701
|
-
:user_code_length => :userCodeLength,
|
702
|
-
:user_info_endpoint => :userInfoEndpoint,
|
703
|
-
:user_info_signature_key_id => :userInfoSignatureKeyId,
|
704
|
-
:mtls_endpoint_aliases => :mtlsEndpointAliases,
|
705
|
-
:pushed_auth_req_endpoint => :pushedAuthReqEndpoint,
|
706
|
-
:pushed_auth_req_duration => :pushedAuthReqDuration,
|
707
|
-
:supported_authorization_data_types => :supportedAuthorizationDataTypes,
|
708
|
-
:supported_trust_frameworks => :supportedTrustFrameworks,
|
709
|
-
:supported_evidence => :supportedEvidence,
|
710
|
-
:supported_identity_documents => :supportedIdentityDocuments,
|
711
|
-
:supported_verification_methods => :supportedVerificationMethods,
|
712
|
-
:supported_verified_claims => :supportedVerifiedClaims,
|
713
|
-
:missing_client_id_allowed => :missingClientIdAllowed
|
714
|
-
}
|
715
|
-
|
716
|
-
# The constructor
|
717
|
-
def initialize(hash = nil)
|
718
|
-
# Set default values to integer attributes.
|
719
|
-
INTEGER_ATTRIBUTES.each do |attr|
|
720
|
-
send("#{attr}=", 0)
|
721
|
-
end
|
722
|
-
|
723
|
-
# Set default values to boolean attributes.
|
724
|
-
BOOLEAN_ATTRIBUTES.each do |attr|
|
725
|
-
send("#{attr}=", false)
|
726
|
-
end
|
727
|
-
|
728
|
-
# Set default values to string attributes.
|
729
|
-
STRING_ATTRIBUTES.each do |attr|
|
730
|
-
send("#{attr}=", nil)
|
731
|
-
end
|
732
|
-
|
733
|
-
# Set default values to string array attributes.
|
734
|
-
STRING_ARRAY_ATTRIBUTES.each do |attr|
|
735
|
-
send("#{attr}=", nil)
|
736
|
-
end
|
737
|
-
|
738
|
-
# Set default values to sns credentials array attributes.
|
739
|
-
SNS_CREDENTIALS_ARRAY_ATTRIBUTES.each do |attr|
|
740
|
-
send("#{attr}=", nil)
|
741
|
-
end
|
742
|
-
|
743
|
-
# Set default values to special objects.
|
744
|
-
@metadata = nil
|
745
|
-
@supportedScopes = nil
|
746
|
-
@mtlsEndpointAliases = nil
|
747
|
-
|
748
|
-
# Set attribute values using the given hash.
|
749
|
-
authlete_model_update(hash)
|
750
|
-
end
|
751
|
-
|
752
|
-
def authlete_model_convert_key(key)
|
753
|
-
key = key.to_sym
|
754
|
-
|
755
|
-
# Convert snakecase to camelcase, if necessary.
|
756
|
-
if SNAKE_TO_CAMEL.has_key?(key)
|
757
|
-
key = SNAKE_TO_CAMEL[key]
|
758
|
-
end
|
759
|
-
|
760
|
-
key
|
761
|
-
end
|
762
|
-
|
763
|
-
def authlete_model_simple_attribute?(key)
|
764
|
-
INTEGER_ATTRIBUTES.include?(key) or
|
765
|
-
BOOLEAN_ATTRIBUTES.include?(key) or
|
766
|
-
STRING_ATTRIBUTES.include?(key) or
|
767
|
-
STRING_ARRAY_ATTRIBUTES.include?(key)
|
768
|
-
end
|
769
|
-
|
770
|
-
def authlete_model_update(hash)
|
771
|
-
return if hash.nil?
|
772
|
-
|
773
|
-
hash.each do |key, value|
|
774
|
-
key = authlete_model_convert_key(key)
|
775
|
-
|
776
|
-
if authlete_model_simple_attribute?(key)
|
777
|
-
send("#{key}=", value)
|
778
|
-
elsif SNS_CREDENTIALS_ARRAY_ATTRIBUTES.include?(key)
|
779
|
-
# Get an array consisting of "SnsCredentials" objects.
|
780
|
-
parsed = get_parsed_array(value) do |element|
|
781
|
-
Authlete::Model::SnsCredentials.parse(element)
|
782
|
-
end
|
783
|
-
|
784
|
-
send("#{key}=", parsed)
|
785
|
-
elsif key == :metadata
|
786
|
-
@metadata = get_parsed_array(value) do |element|
|
787
|
-
Authlete::Model::Pair.parse(element)
|
788
|
-
end
|
789
|
-
elsif key == :supportedScopes
|
790
|
-
@supportedScopes = get_parsed_array(value) do |element|
|
791
|
-
Authlete::Model::Scope.parse(element)
|
792
|
-
end
|
793
|
-
elsif key == :mtlsEndpointAliases
|
794
|
-
@mtlsEndpointAliases = get_parsed_array(value) do |element|
|
795
|
-
Authlete::Model::NamedUri.parse(element)
|
796
|
-
end
|
797
|
-
end
|
798
|
-
end
|
799
|
-
|
800
|
-
self
|
801
|
-
end
|
802
|
-
|
803
|
-
public
|
804
|
-
|
805
|
-
# Construct an instance from the given hash.
|
806
|
-
#
|
807
|
-
# If the given argument is nil or is not a Hash, nil is returned.
|
808
|
-
# Otherwise, Service.new(hash) is returned.
|
809
|
-
def self.parse(hash)
|
810
|
-
if hash.nil? or (hash.kind_of?(Hash) == false)
|
811
|
-
return nil
|
812
|
-
end
|
813
|
-
|
814
|
-
Service.new(hash)
|
815
|
-
end
|
816
|
-
|
817
|
-
# Convert this object into a hash.
|
818
|
-
def to_hash
|
819
|
-
hash = {}
|
820
|
-
|
821
|
-
instance_variables.each do |var|
|
822
|
-
key = var.to_s.delete("@").to_sym
|
823
|
-
val = instance_variable_get(var)
|
824
|
-
|
825
|
-
if authlete_model_simple_attribute?(key) or val.nil?
|
826
|
-
hash[key] = val
|
827
|
-
elsif key == :developerSnsCredentials or key == :snsCredentials or
|
828
|
-
key == :supportedScopes or key == :metadata or key == :mtlsEndpointAliases
|
829
|
-
hash[key] = val.map { |element| element.to_hash }
|
830
|
-
end
|
831
|
-
end
|
832
|
-
|
833
|
-
hash
|
834
|
-
end
|
835
|
-
end
|
836
|
-
end
|
837
|
-
end
|
1
|
+
# :nodoc:
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014-2020 Authlete, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
|
18
|
+
module Authlete
|
19
|
+
module Model
|
20
|
+
class Service < Authlete::Model::Base
|
21
|
+
include Authlete::Model::Hashable
|
22
|
+
include Authlete::Utility
|
23
|
+
|
24
|
+
attr_accessor :number
|
25
|
+
|
26
|
+
attr_accessor :serviceOwnerNumber
|
27
|
+
alias_method :service_owner_number, :serviceOwnerNumber
|
28
|
+
alias_method :service_owner_number=, :serviceOwnerNumber=
|
29
|
+
|
30
|
+
attr_accessor :serviceName
|
31
|
+
alias_method :service_name, :serviceName
|
32
|
+
alias_method :service_name=, :serviceName=
|
33
|
+
|
34
|
+
attr_accessor :apiKey
|
35
|
+
alias_method :api_key, :apiKey
|
36
|
+
alias_method :api_key=, :apiKey=
|
37
|
+
|
38
|
+
attr_accessor :apiSecret
|
39
|
+
alias_method :api_secret, :apiSecret
|
40
|
+
alias_method :api_secret=, :apiSecret=
|
41
|
+
|
42
|
+
attr_accessor :issuer
|
43
|
+
|
44
|
+
attr_accessor :authorizationEndpoint
|
45
|
+
alias_method :authorization_endpoint, :authorizationEndpoint
|
46
|
+
alias_method :authorization_endpoint=, :authorizationEndpoint=
|
47
|
+
|
48
|
+
attr_accessor :tokenEndpoint
|
49
|
+
alias_method :token_endpoint, :tokenEndpoint
|
50
|
+
alias_method :token_endpoint=, :tokenEndpoint=
|
51
|
+
|
52
|
+
attr_accessor :revocationEndpoint
|
53
|
+
alias_method :revocation_endpoint, :revocationEndpoint
|
54
|
+
alias_method :revocation_endpoint=, :revocationEndpoint=
|
55
|
+
|
56
|
+
attr_accessor :supportedRevocationAuthMethods
|
57
|
+
alias_method :supported_revocation_auth_methods, :supportedRevocationAuthMethods
|
58
|
+
alias_method :supported_revocation_auth_methods=, :supportedRevocationAuthMethods=
|
59
|
+
|
60
|
+
attr_accessor :userInfoEndpoint
|
61
|
+
alias_method :user_info_endpoint, :userInfoEndpoint
|
62
|
+
alias_method :user_info_endpoint=, :userInfoEndpoint=
|
63
|
+
|
64
|
+
attr_accessor :jwksUri
|
65
|
+
alias_method :jwks_uri, :jwksUri
|
66
|
+
alias_method :jwks_uri=, :jwksUri=
|
67
|
+
|
68
|
+
attr_accessor :jwks
|
69
|
+
|
70
|
+
attr_accessor :registrationEndpoint
|
71
|
+
alias_method :registration_endpoint, :registrationEndpoint
|
72
|
+
alias_method :registration_endpoint=, :registrationEndpoint=
|
73
|
+
|
74
|
+
attr_accessor :registrationManagementEndpoint
|
75
|
+
alias_method :registration_management_endpoint, :registrationManagementEndpoint
|
76
|
+
alias_method :registration_management_endpoint=, :registrationManagementEndpoint=
|
77
|
+
|
78
|
+
attr_accessor :supportedScopes
|
79
|
+
alias_method :supported_scopes, :supportedScopes
|
80
|
+
alias_method :supported_scopes=, :supportedScopes=
|
81
|
+
|
82
|
+
attr_accessor :supportedResponseTypes
|
83
|
+
alias_method :supported_response_types, :supportedResponseTypes
|
84
|
+
alias_method :supported_response_types=, :supportedResponseTypes=
|
85
|
+
|
86
|
+
attr_accessor :supportedGrantTypes
|
87
|
+
alias_method :supported_grant_types, :supportedGrantTypes
|
88
|
+
alias_method :supported_grant_types=, :supportedGrantTypes=
|
89
|
+
|
90
|
+
attr_accessor :supportedAcrs
|
91
|
+
alias_method :supported_acrs, :supportedAcrs
|
92
|
+
alias_method :supported_acrs=, :supportedAcrs=
|
93
|
+
|
94
|
+
attr_accessor :supportedTokenAuthMethods
|
95
|
+
alias_method :supported_token_auth_methods, :supportedTokenAuthMethods
|
96
|
+
alias_method :supported_token_auth_methods=, :supportedTokenAuthMethods=
|
97
|
+
|
98
|
+
attr_accessor :supportedDisplays
|
99
|
+
alias_method :supported_displays, :supportedDisplays
|
100
|
+
alias_method :supported_displays=, :supportedDisplays=
|
101
|
+
|
102
|
+
attr_accessor :supportedClaimTypes
|
103
|
+
alias_method :supported_claim_types, :supportedClaimTypes
|
104
|
+
alias_method :supported_claim_types=, :supportedClaimTypes=
|
105
|
+
|
106
|
+
attr_accessor :supportedClaims
|
107
|
+
alias_method :supported_claims, :supportedClaims
|
108
|
+
alias_method :supported_claims=, :supportedClaims=
|
109
|
+
|
110
|
+
attr_accessor :serviceDocumentation
|
111
|
+
alias_method :service_documentation, :serviceDocumentation
|
112
|
+
alias_method :service_documentation=, :serviceDocumentation=
|
113
|
+
|
114
|
+
attr_accessor :supportedClaimLocales
|
115
|
+
alias_method :supported_claim_locales, :supportedClaimLocales
|
116
|
+
alias_method :supported_claim_locales=, :supportedClaimLocales=
|
117
|
+
|
118
|
+
attr_accessor :supportedUiLocales
|
119
|
+
alias_method :supported_ui_locales, :supportedUiLocales
|
120
|
+
alias_method :supported_ui_locales=, :supportedUiLocales=
|
121
|
+
|
122
|
+
attr_accessor :policyUri
|
123
|
+
alias_method :policy_uri, :policyUri
|
124
|
+
alias_method :policy_uri=, :policyUri=
|
125
|
+
|
126
|
+
attr_accessor :tosUri
|
127
|
+
alias_method :tos_uri, :tosUri
|
128
|
+
alias_method :tos_uri=, :tosUri=
|
129
|
+
|
130
|
+
attr_accessor :authenticationCallbackEndpoint
|
131
|
+
alias_method :authentication_callback_endpoint, :authenticationCallbackEndpoint
|
132
|
+
alias_method :authentication_callback_endpoint=, :authenticationCallbackEndpoint=
|
133
|
+
|
134
|
+
attr_accessor :authenticationCallbackApiKey
|
135
|
+
alias_method :authentication_callback_api_key, :authenticationCallbackApiKey
|
136
|
+
alias_method :authentication_callback_api_key=, :authenticationCallbackApiKey=
|
137
|
+
|
138
|
+
attr_accessor :authenticationCallbackApiSecret
|
139
|
+
alias_method :authentication_callback_api_secret, :authenticationCallbackApiSecret
|
140
|
+
alias_method :authentication_callback_api_secret=, :authenticationCallbackApiSecret=
|
141
|
+
|
142
|
+
attr_accessor :supportedSnses
|
143
|
+
alias_method :supported_snses, :supportedSnses
|
144
|
+
alias_method :supported_snses=, :supportedSnses=
|
145
|
+
|
146
|
+
attr_accessor :snsCredentials
|
147
|
+
alias_method :sns_credentials, :snsCredentials
|
148
|
+
alias_method :sns_credentials=, :snsCredentials=
|
149
|
+
|
150
|
+
attr_accessor :createdAt
|
151
|
+
alias_method :created_at, :createdAt
|
152
|
+
alias_method :created_at=, :createdAt=
|
153
|
+
|
154
|
+
attr_accessor :modifiedAt
|
155
|
+
alias_method :modified_at, :modifiedAt
|
156
|
+
alias_method :modified_at=, :modifiedAt=
|
157
|
+
|
158
|
+
attr_accessor :developerAuthenticationCallbackEndpoint
|
159
|
+
alias_method :developer_authentication_callback_endpoint, :developerAuthenticationCallbackEndpoint
|
160
|
+
alias_method :developer_authentication_callback_endpoint=, :developerAuthenticationCallbackEndpoint=
|
161
|
+
|
162
|
+
attr_accessor :developerAuthenticationCallbackApiKey
|
163
|
+
alias_method :developer_authentication_callback_api_key, :developerAuthenticationCallbackApiKey
|
164
|
+
alias_method :developer_authentication_callback_api_key=, :developerAuthenticationCallbackApiKey=
|
165
|
+
|
166
|
+
attr_accessor :developerAuthenticationCallbackApiSecret
|
167
|
+
alias_method :developer_authentication_callback_api_secret, :developerAuthenticationCallbackApiSecret
|
168
|
+
alias_method :developer_authentication_callback_api_secret=, :developerAuthenticationCallbackApiSecret=
|
169
|
+
|
170
|
+
attr_accessor :supportedDeveloperSnses
|
171
|
+
alias_method :supported_developer_snses, :supportedDeveloperSnses
|
172
|
+
alias_method :supported_developer_snses=, :supportedDeveloperSnses=
|
173
|
+
|
174
|
+
attr_accessor :developerSnsCredentials
|
175
|
+
alias_method :developer_sns_credentials, :developerSnsCredentials
|
176
|
+
alias_method :developer_sns_credentials=, :developerSnsCredentials=
|
177
|
+
|
178
|
+
attr_accessor :clientsPerDeveloper
|
179
|
+
alias_method :clients_per_developer, :clientsPerDeveloper
|
180
|
+
alias_method :clients_per_developer=, :clientsPerDeveloper=
|
181
|
+
|
182
|
+
attr_accessor :directAuthorizationEndpointEnabled
|
183
|
+
alias_method :direct_authorization_endpoint_enabled, :directAuthorizationEndpointEnabled
|
184
|
+
alias_method :direct_authorization_endpoint_enabled=, :directAuthorizationEndpointEnabled=
|
185
|
+
|
186
|
+
attr_accessor :directTokenEndpointEnabled
|
187
|
+
alias_method :direct_token_endpoint_enabled, :directTokenEndpointEnabled
|
188
|
+
alias_method :direct_token_endpoint_enabled=, :directTokenEndpointEnabled=
|
189
|
+
|
190
|
+
attr_accessor :directRevocationEndpointEnabled
|
191
|
+
alias_method :direct_revocation_endpoint_enabled, :directRevocationEndpointEnabled
|
192
|
+
alias_method :direct_revocation_endpoint_enabled=, :directRevocationEndpointEnabled=
|
193
|
+
|
194
|
+
attr_accessor :directUserInfoEndpointEnabled
|
195
|
+
alias_method :direct_user_info_endpoint_enabled, :directUserInfoEndpointEnabled
|
196
|
+
alias_method :direct_user_info_endpoint_enabled=, :directUserInfoEndpointEnabled=
|
197
|
+
|
198
|
+
attr_accessor :directJwksEndpointEnabled
|
199
|
+
alias_method :direct_jwks_endpoint_enabled, :directJwksEndpointEnabled
|
200
|
+
alias_method :direct_jwks_endpoint_enabled=, :directJwksEndpointEnabled=
|
201
|
+
|
202
|
+
attr_accessor :directIntrospectionEndpointEnabled
|
203
|
+
alias_method :direct_introspection_endpoint_enabled, :directIntrospectionEndpointEnabled
|
204
|
+
alias_method :direct_introspection_endpoint_enabled=, :directIntrospectionEndpointEnabled=
|
205
|
+
|
206
|
+
attr_accessor :singleAccessTokenPerSubject
|
207
|
+
alias_method :single_access_token_per_subject, :singleAccessTokenPerSubject
|
208
|
+
alias_method :single_access_token_per_subject=, :singleAccessTokenPerSubject=
|
209
|
+
|
210
|
+
attr_accessor :pkceRequired
|
211
|
+
alias_method :pkce_required, :pkceRequired
|
212
|
+
alias_method :pkce_required=, :pkceRequired=
|
213
|
+
|
214
|
+
attr_accessor :pkceS256Required
|
215
|
+
alias_method :pkce_s256_required, :pkceS256Required
|
216
|
+
alias_method :pkce_s256_required=, :pkceS256Required=
|
217
|
+
|
218
|
+
attr_accessor :refreshTokenKept
|
219
|
+
alias_method :refresh_token_kept, :refreshTokenKept
|
220
|
+
alias_method :refresh_token_kept=, :refreshTokenKept=
|
221
|
+
|
222
|
+
attr_accessor :refreshTokenDurationKept
|
223
|
+
alias_method :refresh_token_duration_kept, :refreshTokenDurationKept
|
224
|
+
alias_method :refresh_token_duration_kept=, :refreshTokenDurationKept=
|
225
|
+
|
226
|
+
attr_accessor :errorDescriptionOmitted
|
227
|
+
alias_method :error_description_omitted, :errorDescriptionOmitted
|
228
|
+
alias_method :error_description_omitted=, :errorDescriptionOmitted=
|
229
|
+
|
230
|
+
attr_accessor :errorUriOmitted
|
231
|
+
alias_method :error_uri_omitted, :errorUriOmitted
|
232
|
+
alias_method :error_uri_omitted=, :errorUriOmitted=
|
233
|
+
|
234
|
+
attr_accessor :clientIdAliasEnabled
|
235
|
+
alias_method :client_id_alias_enabled, :clientIdAliasEnabled
|
236
|
+
alias_method :client_id_alias_enabled=, :clientIdAliasEnabled=
|
237
|
+
|
238
|
+
attr_accessor :supportedServiceProfiles
|
239
|
+
alias_method :supported_service_profiles, :supportedServiceProfiles
|
240
|
+
alias_method :supported_service_profiles=, :supportedServiceProfiles=
|
241
|
+
|
242
|
+
attr_accessor :tlsClientCertificateBoundAccessTokens
|
243
|
+
alias_method :tls_client_certificate_bound_access_tokens, :tlsClientCertificateBoundAccessTokens
|
244
|
+
alias_method :tls_client_certificate_bound_access_tokens=, :tlsClientCertificateBoundAccessTokens=
|
245
|
+
|
246
|
+
attr_accessor :introspectionEndpoint
|
247
|
+
alias_method :introspection_endpoint, :introspectionEndpoint
|
248
|
+
alias_method :introspection_endpoint=, :introspectionEndpoint=
|
249
|
+
|
250
|
+
attr_accessor :supportedIntrospectionAuthMethods
|
251
|
+
alias_method :supported_introspection_auth_methods, :supportedIntrospectionAuthMethods
|
252
|
+
alias_method :supported_introspection_auth_methods=, :supportedIntrospectionAuthMethods=
|
253
|
+
|
254
|
+
attr_accessor :mutualTlsValidatePkiCertChain
|
255
|
+
alias_method :mutual_tls_validate_pki_cert_chain, :mutualTlsValidatePkiCertChain
|
256
|
+
alias_method :mutual_tls_validate_pki_cert_chain=, :mutualTlsValidatePkiCertChain=
|
257
|
+
|
258
|
+
attr_accessor :trustedRootCertificates
|
259
|
+
alias_method :trusted_root_certificates, :trustedRootCertificates
|
260
|
+
alias_method :trusted_root_certificates=, :trustedRootCertificates=
|
261
|
+
|
262
|
+
attr_accessor :dynamicRegistrationSupported
|
263
|
+
alias_method :dynamic_registration_supported, :dynamicRegistrationSupported
|
264
|
+
alias_method :dynamic_registration_supported=, :dynamicRegistrationSupported=
|
265
|
+
|
266
|
+
attr_accessor :endSessionEndpoint
|
267
|
+
alias_method :end_session_endpoint, :endSessionEndpoint
|
268
|
+
alias_method :end_session_endpoint=, :endSessionEndpoint=
|
269
|
+
|
270
|
+
attr_accessor :description
|
271
|
+
|
272
|
+
attr_accessor :accessTokenType
|
273
|
+
alias_method :access_token_type, :accessTokenType
|
274
|
+
alias_method :access_token_type=, :accessTokenType=
|
275
|
+
|
276
|
+
attr_accessor :accessTokenSignAlg
|
277
|
+
alias_method :access_token_sign_alg, :accessTokenSignAlg
|
278
|
+
alias_method :access_token_sign_alg=, :accessTokenSignAlg=
|
279
|
+
|
280
|
+
attr_accessor :accessTokenDuration
|
281
|
+
alias_method :access_token_duration, :accessTokenDuration
|
282
|
+
alias_method :access_token_duration=, :accessTokenDuration=
|
283
|
+
|
284
|
+
attr_accessor :refreshTokenDuration
|
285
|
+
alias_method :refresh_token_duration, :refreshTokenDuration
|
286
|
+
alias_method :refresh_token_duration=, :refreshTokenDuration=
|
287
|
+
|
288
|
+
attr_accessor :idTokenDuration
|
289
|
+
alias_method :id_token_duration, :idTokenDuration
|
290
|
+
alias_method :id_token_duration=, :idTokenDuration=
|
291
|
+
|
292
|
+
attr_accessor :authorizationResponseDuration
|
293
|
+
alias_method :authorization_response_duration, :authorizationResponseDuration
|
294
|
+
alias_method :authorization_response_duration=, :authorizationResponseDuration=
|
295
|
+
|
296
|
+
attr_accessor :pushedAuthReqDuration
|
297
|
+
alias_method :pushed_auth_req_duration, :pushedAuthReqDuration
|
298
|
+
alias_method :pushed_auth_req_duration=, :pushedAuthReqDuration=
|
299
|
+
|
300
|
+
attr_accessor :metadata
|
301
|
+
|
302
|
+
attr_accessor :accessTokenSignatureKeyId
|
303
|
+
alias_method :access_token_signature_key_id, :accessTokenSignatureKeyId
|
304
|
+
alias_method :access_token_signature_key_id=, :accessTokenSignatureKeyId=
|
305
|
+
|
306
|
+
attr_accessor :authorizationSignatureKeyId
|
307
|
+
alias_method :authorization_signature_key_id, :authorizationSignatureKeyId
|
308
|
+
alias_method :authorization_signature_key_id=, :authorizationSignatureKeyId=
|
309
|
+
|
310
|
+
attr_accessor :idTokenSignatureKeyId
|
311
|
+
alias_method :id_token_signature_key_id, :idTokenSignatureKeyId
|
312
|
+
alias_method :id_token_signature_key_id=, :idTokenSignatureKeyId=
|
313
|
+
|
314
|
+
attr_accessor :userInfoSignatureKeyId
|
315
|
+
alias_method :user_info_signature_key_id, :userInfoSignatureKeyId
|
316
|
+
alias_method :user_info_signature_key_id=, :userInfoSignatureKeyId=
|
317
|
+
|
318
|
+
attr_accessor :supportedBackchannelTokenDeliveryModes
|
319
|
+
alias_method :supported_backchannel_token_delivery_modes, :supportedBackchannelTokenDeliveryModes
|
320
|
+
alias_method :supported_backchannel_token_delivery_modes=, :supportedBackchannelTokenDeliveryModes=
|
321
|
+
|
322
|
+
attr_accessor :backchannelAuthenticationEndpoint
|
323
|
+
alias_method :backchannel_authentication_endpoint, :backchannelAuthenticationEndpoint
|
324
|
+
alias_method :backchannel_authentication_endpoint=, :backchannelAuthenticationEndpoint=
|
325
|
+
|
326
|
+
attr_accessor :backchannelUserCodeParameterSupported
|
327
|
+
alias_method :backchannel_user_code_parameter_supported, :backchannelUserCodeParameterSupported
|
328
|
+
alias_method :backchannel_user_code_parameter_supported=, :backchannelUserCodeParameterSupported=
|
329
|
+
|
330
|
+
attr_accessor :backchannelAuthReqIdDuration
|
331
|
+
alias_method :backchannel_auth_req_id_duration, :backchannelAuthReqIdDuration
|
332
|
+
alias_method :backchannel_auth_req_id_duration=, :backchannelAuthReqIdDuration=
|
333
|
+
|
334
|
+
attr_accessor :backchannelPollingInterval
|
335
|
+
alias_method :backchannel_polling_interval, :backchannelPollingInterval
|
336
|
+
alias_method :backchannel_polling_interval=, :backchannelPollingInterval=
|
337
|
+
|
338
|
+
attr_accessor :backchannelBindingMessageRequiredInFapi
|
339
|
+
alias_method :backchannel_binding_message_required_in_fapi, :backchannelBindingMessageRequiredInFapi
|
340
|
+
alias_method :backchannel_binding_message_required_in_fapi=, :backchannelBindingMessageRequiredInFapi=
|
341
|
+
|
342
|
+
attr_accessor :allowableClockSkew
|
343
|
+
alias_method :allowable_clock_skew, :allowableClockSkew
|
344
|
+
alias_method :allowable_clock_skew=, :allowableClockSkew=
|
345
|
+
|
346
|
+
attr_accessor :deviceAuthorizationEndpoint
|
347
|
+
alias_method :device_authorization_endpoint, :deviceAuthorizationEndpoint
|
348
|
+
alias_method :device_authorization_endpoint=, :deviceAuthorizationEndpoint=
|
349
|
+
|
350
|
+
attr_accessor :deviceVerificationUri
|
351
|
+
alias_method :device_verification_uri, :deviceVerificationUri
|
352
|
+
alias_method :device_verification_uri=, :deviceVerificationUri=
|
353
|
+
|
354
|
+
attr_accessor :deviceVerificationUriComplete
|
355
|
+
alias_method :device_verification_uri_complete, :deviceVerificationUriComplete
|
356
|
+
alias_method :device_verification_uri_complete=, :deviceVerificationUriComplete=
|
357
|
+
|
358
|
+
attr_accessor :deviceFlowCodeDuration
|
359
|
+
alias_method :device_flow_code_duration, :deviceFlowCodeDuration
|
360
|
+
alias_method :device_flow_code_duration=, :deviceFlowCodeDuration=
|
361
|
+
|
362
|
+
attr_accessor :deviceFlowPollingInterval
|
363
|
+
alias_method :device_flow_polling_interval, :deviceFlowPollingInterval
|
364
|
+
alias_method :device_flow_polling_interval=, :deviceFlowPollingInterval=
|
365
|
+
|
366
|
+
attr_accessor :userCodeCharset
|
367
|
+
alias_method :user_code_charset, :userCodeCharset
|
368
|
+
alias_method :user_code_charset=, :userCodeCharset=
|
369
|
+
|
370
|
+
attr_accessor :userCodeLength
|
371
|
+
alias_method :user_code_length, :userCodeLength
|
372
|
+
alias_method :user_code_length=, :userCodeLength=
|
373
|
+
|
374
|
+
attr_accessor :pushedAuthReqEndpoint
|
375
|
+
alias_method :pushed_auth_req_endpoint, :pushedAuthReqEndpoint
|
376
|
+
alias_method :pushed_auth_req_endpoint=, :pushedAuthReqEndpoint=
|
377
|
+
|
378
|
+
attr_accessor :mtlsEndpointAliases
|
379
|
+
alias_method :mtls_endpoint_aliases, :mtlsEndpointAliases
|
380
|
+
alias_method :mtls_endpoint_aliases=, :mtlsEndpointAliases=
|
381
|
+
|
382
|
+
attr_accessor :supportedAuthorizationDataTypes
|
383
|
+
alias_method :supported_authorization_data_types, :supportedAuthorizationDataTypes
|
384
|
+
alias_method :supported_authorization_data_types=, :supportedAuthorizationDataTypes=
|
385
|
+
|
386
|
+
attr_accessor :supportedTrustFrameworks
|
387
|
+
alias_method :supported_trust_frameworks, :supportedTrustFrameworks
|
388
|
+
alias_method :supported_trust_frameworks=, :supportedTrustFrameworks=
|
389
|
+
|
390
|
+
attr_accessor :supportedEvidence
|
391
|
+
alias_method :supported_evidence, :supportedEvidence
|
392
|
+
alias_method :supported_evidence=, :supportedEvidence=
|
393
|
+
|
394
|
+
attr_accessor :supportedIdentityDocuments
|
395
|
+
alias_method :supported_identity_documents, :supportedIdentityDocuments
|
396
|
+
alias_method :supported_identity_documents=, :supportedIdentityDocuments=
|
397
|
+
|
398
|
+
attr_accessor :supportedVerificationMethods
|
399
|
+
alias_method :supported_verification_methods, :supportedVerificationMethods
|
400
|
+
alias_method :supported_verification_methods=, :supportedVerificationMethods=
|
401
|
+
|
402
|
+
attr_accessor :supportedVerifiedClaims
|
403
|
+
alias_method :supported_verified_claims, :supportedVerifiedClaims
|
404
|
+
alias_method :supported_verified_claims=, :supportedVerifiedClaims=
|
405
|
+
|
406
|
+
attr_accessor :missingClientIdAllowed
|
407
|
+
alias_method :missing_client_id_allowed, :missingClientIdAllowed
|
408
|
+
alias_method :missing_client_id_allowed=, :missingClientIdAllowed=
|
409
|
+
|
410
|
+
attr_accessor :parRequired
|
411
|
+
alias_method :par_required, :parRequired
|
412
|
+
alias_method :par_required=, :parRequired=
|
413
|
+
|
414
|
+
attr_accessor :requestObjectRequired
|
415
|
+
alias_method :request_object_required, :requestObjectRequired
|
416
|
+
alias_method :request_object_required=, :requestObjectRequired=
|
417
|
+
|
418
|
+
attr_accessor :traditionalRequestObjectProcessingApplied
|
419
|
+
alias_method :traditional_request_object_processing_applied, :traditionalRequestObjectProcessingApplied
|
420
|
+
alias_method :traditional_request_object_processing_applied=, :traditionalRequestObjectProcessingApplied=
|
421
|
+
|
422
|
+
attr_accessor :claimShortcutRestrictive
|
423
|
+
alias_method :claim_shortcut_restrictive, :claimShortcutRestrictive
|
424
|
+
alias_method :claim_shortcut_restrictive=, :claimShortcutRestrictive=
|
425
|
+
|
426
|
+
attr_accessor :scopeRequired
|
427
|
+
alias_method :scope_required, :scopeRequired
|
428
|
+
alias_method :scope_required=, :scopeRequired=
|
429
|
+
|
430
|
+
attr_accessor :nbfOptional
|
431
|
+
alias_method :nbf_optional, :nbfOptional
|
432
|
+
alias_method :nbf_optional=, :nbfOptional=
|
433
|
+
|
434
|
+
attr_accessor :issSuppressed
|
435
|
+
alias_method :iss_suppressed, :issSuppressed
|
436
|
+
alias_method :iss_suppressed=, :issSuppressed=
|
437
|
+
|
438
|
+
private
|
439
|
+
|
440
|
+
def defaults
|
441
|
+
{
|
442
|
+
number: 0,
|
443
|
+
serviceOwnerNumber: 0,
|
444
|
+
serviceName: nil,
|
445
|
+
apiKey: 0,
|
446
|
+
apiSecret: nil,
|
447
|
+
issuer: nil,
|
448
|
+
authorizationEndpoint: nil,
|
449
|
+
tokenEndpoint: nil,
|
450
|
+
revocationEndpoint: nil,
|
451
|
+
supportedRevocationAuthMethods: nil,
|
452
|
+
userInfoEndpoint: nil,
|
453
|
+
jwksUri: nil,
|
454
|
+
jwks: nil,
|
455
|
+
registrationEndpoint: nil,
|
456
|
+
registrationManagementEndpoint: nil,
|
457
|
+
supportedScopes: nil,
|
458
|
+
supportedResponseTypes: nil,
|
459
|
+
supportedGrantTypes: nil,
|
460
|
+
supportedAcrs: nil,
|
461
|
+
supportedTokenAuthMethods: nil,
|
462
|
+
supportedDisplays: nil,
|
463
|
+
supportedClaimTypes: nil,
|
464
|
+
supportedClaims: nil,
|
465
|
+
serviceDocumentation: nil,
|
466
|
+
supportedClaimLocales: nil,
|
467
|
+
supportedUiLocales: nil,
|
468
|
+
policyUri: nil,
|
469
|
+
tosUri: nil,
|
470
|
+
authenticationCallbackEndpoint: nil,
|
471
|
+
authenticationCallbackApiKey: nil,
|
472
|
+
authenticationCallbackApiSecret: nil,
|
473
|
+
supportedSnses: nil,
|
474
|
+
snsCredentials: nil,
|
475
|
+
createdAt: 0,
|
476
|
+
modifiedAt: 0,
|
477
|
+
developerAuthenticationCallbackEndpoint: nil,
|
478
|
+
developerAuthenticationCallbackApiKey: nil,
|
479
|
+
developerAuthenticationCallbackApiSecret: nil,
|
480
|
+
supportedDeveloperSnses: nil,
|
481
|
+
developerSnsCredentials: nil,
|
482
|
+
clientsPerDeveloper: 0,
|
483
|
+
directAuthorizationEndpointEnabled: false,
|
484
|
+
directTokenEndpointEnabled: false,
|
485
|
+
directRevocationEndpointEnabled: false,
|
486
|
+
directUserInfoEndpointEnabled: false,
|
487
|
+
directJwksEndpointEnabled: false,
|
488
|
+
directIntrospectionEndpointEnabled: false,
|
489
|
+
singleAccessTokenPerSubject: false,
|
490
|
+
pkceRequired: false,
|
491
|
+
pkceS256Required: false,
|
492
|
+
refreshTokenKept: false,
|
493
|
+
refreshTokenDurationKept: false,
|
494
|
+
errorDescriptionOmitted: false,
|
495
|
+
errorUriOmitted: false,
|
496
|
+
clientIdAliasEnabled: false,
|
497
|
+
supportedServiceProfiles: nil,
|
498
|
+
tlsClientCertificateBoundAccessTokens: false,
|
499
|
+
introspectionEndpoint: nil,
|
500
|
+
supportedIntrospectionAuthMethods: nil,
|
501
|
+
mutualTlsValidatePkiCertChain: false,
|
502
|
+
trustedRootCertificates: nil,
|
503
|
+
dynamicRegistrationSupported: false,
|
504
|
+
endSessionEndpoint: nil,
|
505
|
+
description: nil,
|
506
|
+
accessTokenType: nil,
|
507
|
+
accessTokenSignAlg: nil,
|
508
|
+
accessTokenDuration: 0,
|
509
|
+
refreshTokenDuration: 0,
|
510
|
+
idTokenDuration: 0,
|
511
|
+
authorizationResponseDuration: 0,
|
512
|
+
pushedAuthReqDuration: 0,
|
513
|
+
metadata: nil,
|
514
|
+
accessTokenSignatureKeyId: nil,
|
515
|
+
authorizationSignatureKeyId: nil,
|
516
|
+
idTokenSignatureKeyId: nil,
|
517
|
+
userInfoSignatureKeyId: nil,
|
518
|
+
supportedBackchannelTokenDeliveryModes: nil,
|
519
|
+
backchannelAuthenticationEndpoint: nil,
|
520
|
+
backchannelUserCodeParameterSupported: false,
|
521
|
+
backchannelAuthReqIdDuration: 0,
|
522
|
+
backchannelPollingInterval: 0,
|
523
|
+
backchannelBindingMessageRequiredInFapi: false,
|
524
|
+
allowableClockSkew: 0,
|
525
|
+
deviceAuthorizationEndpoint: nil,
|
526
|
+
deviceVerificationUri: nil,
|
527
|
+
deviceVerificationUriComplete: nil,
|
528
|
+
deviceFlowCodeDuration: 0,
|
529
|
+
deviceFlowPollingInterval: 0,
|
530
|
+
userCodeCharset: nil,
|
531
|
+
userCodeLength: 0,
|
532
|
+
pushedAuthReqEndpoint: nil,
|
533
|
+
mtlsEndpointAliases: nil,
|
534
|
+
supportedAuthorizationDataTypes: nil,
|
535
|
+
supportedTrustFrameworks: nil,
|
536
|
+
supportedEvidence: nil,
|
537
|
+
supportedIdentityDocuments: nil,
|
538
|
+
supportedVerificationMethods: nil,
|
539
|
+
supportedVerifiedClaims: nil,
|
540
|
+
missingClientIdAllowed: false,
|
541
|
+
parRequired: false,
|
542
|
+
requestObjectRequired: false,
|
543
|
+
traditionalRequestObjectProcessingApplied: false,
|
544
|
+
claimShortcutRestrictive: false,
|
545
|
+
scopeRequired: false,
|
546
|
+
nbfOptional: false,
|
547
|
+
issSuppressed: false
|
548
|
+
}
|
549
|
+
end
|
550
|
+
|
551
|
+
def set_params(hash)
|
552
|
+
@number = hash[:number]
|
553
|
+
@serviceOwnerNumber = hash[:serviceOwnerNumber]
|
554
|
+
@serviceName = hash[:serviceName]
|
555
|
+
@apiKey = hash[:apiKey]
|
556
|
+
@apiSecret = hash[:apiSecret]
|
557
|
+
@issuer = hash[:issuer]
|
558
|
+
@authorizationEndpoint = hash[:authorizationEndpoint]
|
559
|
+
@tokenEndpoint = hash[:tokenEndpoint]
|
560
|
+
@revocationEndpoint = hash[:revocationEndpoint]
|
561
|
+
@supportedRevocationAuthMethods = hash[:supportedRevocationAuthMethods]
|
562
|
+
@userInfoEndpoint = hash[:userInfoEndpoint]
|
563
|
+
@jwksUri = hash[:jwksUri]
|
564
|
+
@jwks = hash[:jwks]
|
565
|
+
@registrationEndpoint = hash[:registrationEndpoint]
|
566
|
+
@registrationManagementEndpoint = hash[:registrationManagementEndpoint]
|
567
|
+
@supportedScopes = get_parsed_array(hash[:supportedScopes]) { |e| Authlete::Model::Scope.parse(e) }
|
568
|
+
@supportedResponseTypes = hash[:supportedResponseTypes]
|
569
|
+
@supportedGrantTypes = hash[:supportedGrantTypes]
|
570
|
+
@supportedAcrs = hash[:supportedAcrs]
|
571
|
+
@supportedTokenAuthMethods = hash[:supportedTokenAuthMethods]
|
572
|
+
@supportedDisplays = hash[:supportedDisplays]
|
573
|
+
@supportedClaimTypes = hash[:supportedClaimTypes]
|
574
|
+
@supportedClaims = hash[:supportedClaims]
|
575
|
+
@serviceDocumentation = hash[:serviceDocumentation]
|
576
|
+
@supportedClaimLocales = hash[:supportedClaimLocales]
|
577
|
+
@supportedUiLocales = hash[:supportedUiLocales]
|
578
|
+
@policyUri = hash[:policyUri]
|
579
|
+
@tosUri = hash[:tosUri]
|
580
|
+
@authenticationCallbackEndpoint = hash[:authenticationCallbackEndpoint]
|
581
|
+
@authenticationCallbackApiKey = hash[:authenticationCallbackApiKey]
|
582
|
+
@authenticationCallbackApiSecret = hash[:authenticationCallbackApiSecret]
|
583
|
+
@supportedSnses = hash[:supportedSnses]
|
584
|
+
@snsCredentials = get_parsed_array(hash[:snsCredentials]) { |e| Authlete::Model::SnsCredentials.parse(e) }
|
585
|
+
@createdAt = hash[:createdAt]
|
586
|
+
@modifiedAt = hash[:modifiedAt]
|
587
|
+
@developerAuthenticationCallbackEndpoint = hash[:developerAuthenticationCallbackEndpoint]
|
588
|
+
@developerAuthenticationCallbackApiKey = hash[:developerAuthenticationCallbackApiKey]
|
589
|
+
@developerAuthenticationCallbackApiSecret = hash[:developerAuthenticationCallbackApiSecret]
|
590
|
+
@supportedDeveloperSnses = hash[:supportedDeveloperSnses]
|
591
|
+
@developerSnsCredentials = get_parsed_array(hash[:developerSnsCredentials]) { |e| Authlete::Model::SnsCredentials.parse(e) }
|
592
|
+
@clientsPerDeveloper = hash[:clientsPerDeveloper]
|
593
|
+
@directAuthorizationEndpointEnabled = hash[:directAuthorizationEndpointEnabled]
|
594
|
+
@directTokenEndpointEnabled = hash[:directTokenEndpointEnabled]
|
595
|
+
@directRevocationEndpointEnabled = hash[:directRevocationEndpointEnabled]
|
596
|
+
@directUserInfoEndpointEnabled = hash[:directUserInfoEndpointEnabled]
|
597
|
+
@directJwksEndpointEnabled = hash[:directJwksEndpointEnabled]
|
598
|
+
@directIntrospectionEndpointEnabled = hash[:directIntrospectionEndpointEnabled]
|
599
|
+
@singleAccessTokenPerSubject = hash[:singleAccessTokenPerSubject]
|
600
|
+
@pkceRequired = hash[:pkceRequired]
|
601
|
+
@pkceS256Required = hash[:pkceS256Required]
|
602
|
+
@refreshTokenKept = hash[:refreshTokenKept]
|
603
|
+
@refreshTokenDurationKept = hash[:refreshTokenDurationKept]
|
604
|
+
@errorDescriptionOmitted = hash[:errorDescriptionOmitted]
|
605
|
+
@errorUriOmitted = hash[:errorUriOmitted]
|
606
|
+
@clientIdAliasEnabled = hash[:clientIdAliasEnabled]
|
607
|
+
@supportedServiceProfiles = hash[:supportedServiceProfiles]
|
608
|
+
@tlsClientCertificateBoundAccessTokens = hash[:tlsClientCertificateBoundAccessTokens]
|
609
|
+
@introspectionEndpoint = hash[:introspectionEndpoint]
|
610
|
+
@supportedIntrospectionAuthMethods = hash[:supportedIntrospectionAuthMethods]
|
611
|
+
@mutualTlsValidatePkiCertChain = hash[:mutualTlsValidatePkiCertChain]
|
612
|
+
@trustedRootCertificates = hash[:trustedRootCertificates]
|
613
|
+
@dynamicRegistrationSupported = hash[:dynamicRegistrationSupported]
|
614
|
+
@endSessionEndpoint = hash[:endSessionEndpoint]
|
615
|
+
@description = hash[:description]
|
616
|
+
@accessTokenType = hash[:accessTokenType]
|
617
|
+
@accessTokenSignAlg = hash[:accessTokenSignAlg]
|
618
|
+
@accessTokenDuration = hash[:accessTokenDuration]
|
619
|
+
@refreshTokenDuration = hash[:refreshTokenDuration]
|
620
|
+
@idTokenDuration = hash[:idTokenDuration]
|
621
|
+
@authorizationResponseDuration = hash[:authorizationResponseDuration]
|
622
|
+
@pushedAuthReqDuration = hash[:pushedAuthReqDuration]
|
623
|
+
@metadata = get_parsed_array(hash[:metadata]) { |e| Authlete::Model::Pair.parse(e) }
|
624
|
+
@accessTokenSignatureKeyId = hash[:accessTokenSignatureKeyId]
|
625
|
+
@authorizationSignatureKeyId = hash[:authorizationSignatureKeyId]
|
626
|
+
@idTokenSignatureKeyId = hash[:idTokenSignatureKeyId]
|
627
|
+
@userInfoSignatureKeyId = hash[:userInfoSignatureKeyId]
|
628
|
+
@supportedBackchannelTokenDeliveryModes = hash[:supportedBackchannelTokenDeliveryModes]
|
629
|
+
@backchannelAuthenticationEndpoint = hash[:backchannelAuthenticationEndpoint]
|
630
|
+
@backchannelUserCodeParameterSupported = hash[:backchannelUserCodeParameterSupported]
|
631
|
+
@backchannelAuthReqIdDuration = hash[:backchannelAuthReqIdDuration]
|
632
|
+
@backchannelPollingInterval = hash[:backchannelPollingInterval]
|
633
|
+
@backchannelBindingMessageRequiredInFapi = hash[:backchannelBindingMessageRequiredInFapi]
|
634
|
+
@allowableClockSkew = hash[:allowableClockSkew]
|
635
|
+
@deviceAuthorizationEndpoint = hash[:deviceAuthorizationEndpoint]
|
636
|
+
@deviceVerificationUri = hash[:deviceVerificationUri]
|
637
|
+
@deviceVerificationUriComplete = hash[:deviceVerificationUriComplete]
|
638
|
+
@deviceFlowCodeDuration = hash[:deviceFlowCodeDuration]
|
639
|
+
@deviceFlowPollingInterval = hash[:deviceFlowPollingInterval]
|
640
|
+
@userCodeCharset = hash[:userCodeCharset]
|
641
|
+
@userCodeLength = hash[:userCodeLength]
|
642
|
+
@pushedAuthReqEndpoint = hash[:pushedAuthReqEndpoint]
|
643
|
+
@mtlsEndpointAliases = get_parsed_array(hash[:mtlsEndpointAliases]) { |e| Authlete::Model::NamedUri.parse(e) }
|
644
|
+
@supportedAuthorizationDataTypes = hash[:supportedAuthorizationDataTypes]
|
645
|
+
@supportedTrustFrameworks = hash[:supportedTrustFrameworks]
|
646
|
+
@supportedEvidence = hash[:supportedEvidence]
|
647
|
+
@supportedIdentityDocuments = hash[:supportedIdentityDocuments]
|
648
|
+
@supportedVerificationMethods = hash[:supportedVerificationMethods]
|
649
|
+
@supportedVerifiedClaims = hash[:supportedVerifiedClaims]
|
650
|
+
@missingClientIdAllowed = hash[:missingClientIdAllowed]
|
651
|
+
@parRequired = hash[:parRequired]
|
652
|
+
@requestObjectRequired = hash[:requestObjectRequired]
|
653
|
+
@traditionalRequestObjectProcessingApplied = hash[:traditionalRequestObjectProcessingApplied]
|
654
|
+
@claimShortcutRestrictive = hash[:claimShortcutRestrictive]
|
655
|
+
@scopeRequired = hash[:scopeRequired]
|
656
|
+
@nbfOptional = hash[:nbfOptional]
|
657
|
+
@issSuppressed = hash[:issSuppressed]
|
658
|
+
end
|
659
|
+
|
660
|
+
def to_hash_value(key, var)
|
661
|
+
raw_val = instance_variable_get(var)
|
662
|
+
|
663
|
+
case key
|
664
|
+
when :snsCredentials, :developerSnsCredentials, :supportedScopes, :metadata, :mtlsEndpointAliases
|
665
|
+
raw_val&.map { |e| e.to_hash }
|
666
|
+
else
|
667
|
+
raw_val
|
668
|
+
end
|
669
|
+
end
|
670
|
+
end
|
671
|
+
end
|
672
|
+
end
|