@digipair/skill-oauth2 0.96.0 → 0.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schema.fr.json +414 -23
- package/schema.json +414 -23
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/authorizationCodeUrl": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
14
16
|
"summary": "Récupère l'URL OAuth2 Authorization Code",
|
|
15
17
|
"parameters": [
|
|
16
18
|
{
|
|
@@ -23,12 +25,27 @@
|
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
],
|
|
26
|
-
"x-events": []
|
|
28
|
+
"x-events": [],
|
|
29
|
+
"responses": {
|
|
30
|
+
"200": {
|
|
31
|
+
"description": "URL d'autorisation générée avec succès",
|
|
32
|
+
"content": {
|
|
33
|
+
"application/json": {
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "URL d'autorisation OAuth2"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
27
42
|
}
|
|
28
43
|
},
|
|
29
44
|
"/authorizationCodeAccessToken": {
|
|
30
45
|
"post": {
|
|
31
|
-
"tags": [
|
|
46
|
+
"tags": [
|
|
47
|
+
"service"
|
|
48
|
+
],
|
|
32
49
|
"summary": "Récupère le token OAuth2 Authorization Code",
|
|
33
50
|
"parameters": [
|
|
34
51
|
{
|
|
@@ -50,12 +67,52 @@
|
|
|
50
67
|
}
|
|
51
68
|
}
|
|
52
69
|
],
|
|
53
|
-
"x-events": []
|
|
70
|
+
"x-events": [],
|
|
71
|
+
"responses": {
|
|
72
|
+
"200": {
|
|
73
|
+
"description": "Token d'accès récupéré avec succès",
|
|
74
|
+
"content": {
|
|
75
|
+
"application/json": {
|
|
76
|
+
"schema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"access_token": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Token d'accès OAuth2"
|
|
82
|
+
},
|
|
83
|
+
"token_type": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Type de token"
|
|
86
|
+
},
|
|
87
|
+
"expires_in": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"description": "Temps d'expiration du token en secondes"
|
|
90
|
+
},
|
|
91
|
+
"refresh_token": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Token de rafraîchissement pour obtenir de nouveaux tokens d'accès"
|
|
94
|
+
},
|
|
95
|
+
"scope": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "Portée du token"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"access_token",
|
|
102
|
+
"token_type"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
54
109
|
}
|
|
55
110
|
},
|
|
56
111
|
"/authorizationCodeCreateToken": {
|
|
57
112
|
"post": {
|
|
58
|
-
"tags": [
|
|
113
|
+
"tags": [
|
|
114
|
+
"service"
|
|
115
|
+
],
|
|
59
116
|
"summary": "Crée un token OAuth2 Authorization Code",
|
|
60
117
|
"parameters": [
|
|
61
118
|
{
|
|
@@ -77,12 +134,62 @@
|
|
|
77
134
|
}
|
|
78
135
|
}
|
|
79
136
|
],
|
|
80
|
-
"x-events": []
|
|
137
|
+
"x-events": [],
|
|
138
|
+
"responses": {
|
|
139
|
+
"200": {
|
|
140
|
+
"description": "Objet token OAuth2 créé avec succès",
|
|
141
|
+
"content": {
|
|
142
|
+
"application/json": {
|
|
143
|
+
"schema": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"description": "Objet token OAuth2 avec des méthodes supplémentaires",
|
|
146
|
+
"properties": {
|
|
147
|
+
"token": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"access_token": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "Token d'accès OAuth2"
|
|
153
|
+
},
|
|
154
|
+
"token_type": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "Type de token"
|
|
157
|
+
},
|
|
158
|
+
"expires_in": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"description": "Temps d'expiration du token en secondes"
|
|
161
|
+
},
|
|
162
|
+
"refresh_token": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"description": "Token de rafraîchissement"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"expired": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "Méthode pour vérifier si le token est expiré"
|
|
171
|
+
},
|
|
172
|
+
"refresh": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Méthode pour rafraîchir le token"
|
|
175
|
+
},
|
|
176
|
+
"revoke": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "Méthode pour révoquer le token"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
81
186
|
}
|
|
82
187
|
},
|
|
83
188
|
"/resourceOwnerPasswordAccessToken": {
|
|
84
189
|
"post": {
|
|
85
|
-
"tags": [
|
|
190
|
+
"tags": [
|
|
191
|
+
"service"
|
|
192
|
+
],
|
|
86
193
|
"summary": "Récupère le token OAuth2 Resource Owner Password",
|
|
87
194
|
"parameters": [
|
|
88
195
|
{
|
|
@@ -104,12 +211,52 @@
|
|
|
104
211
|
}
|
|
105
212
|
}
|
|
106
213
|
],
|
|
107
|
-
"x-events": []
|
|
214
|
+
"x-events": [],
|
|
215
|
+
"responses": {
|
|
216
|
+
"200": {
|
|
217
|
+
"description": "Token d'accès Resource Owner Password récupéré avec succès",
|
|
218
|
+
"content": {
|
|
219
|
+
"application/json": {
|
|
220
|
+
"schema": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"access_token": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "Token d'accès OAuth2"
|
|
226
|
+
},
|
|
227
|
+
"token_type": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"description": "Type de token"
|
|
230
|
+
},
|
|
231
|
+
"expires_in": {
|
|
232
|
+
"type": "number",
|
|
233
|
+
"description": "Temps d'expiration du token en secondes"
|
|
234
|
+
},
|
|
235
|
+
"refresh_token": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Token de rafraîchissement pour obtenir de nouveaux tokens d'accès"
|
|
238
|
+
},
|
|
239
|
+
"scope": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Portée du token"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"access_token",
|
|
246
|
+
"token_type"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
108
253
|
}
|
|
109
254
|
},
|
|
110
255
|
"/resourceOwnerPasswordCreateToken": {
|
|
111
256
|
"post": {
|
|
112
|
-
"tags": [
|
|
257
|
+
"tags": [
|
|
258
|
+
"service"
|
|
259
|
+
],
|
|
113
260
|
"summary": "Crée un token OAuth2 Resource Owner Password",
|
|
114
261
|
"parameters": [
|
|
115
262
|
{
|
|
@@ -131,12 +278,62 @@
|
|
|
131
278
|
}
|
|
132
279
|
}
|
|
133
280
|
],
|
|
134
|
-
"x-events": []
|
|
281
|
+
"x-events": [],
|
|
282
|
+
"responses": {
|
|
283
|
+
"200": {
|
|
284
|
+
"description": "Objet token Resource Owner Password créé avec succès",
|
|
285
|
+
"content": {
|
|
286
|
+
"application/json": {
|
|
287
|
+
"schema": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"description": "Objet token OAuth2 avec des méthodes supplémentaires",
|
|
290
|
+
"properties": {
|
|
291
|
+
"token": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"properties": {
|
|
294
|
+
"access_token": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "Token d'accès OAuth2"
|
|
297
|
+
},
|
|
298
|
+
"token_type": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"description": "Type de token"
|
|
301
|
+
},
|
|
302
|
+
"expires_in": {
|
|
303
|
+
"type": "number",
|
|
304
|
+
"description": "Temps d'expiration du token en secondes"
|
|
305
|
+
},
|
|
306
|
+
"refresh_token": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"description": "Token de rafraîchissement"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"expired": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"description": "Méthode pour vérifier si le token est expiré"
|
|
315
|
+
},
|
|
316
|
+
"refresh": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "Méthode pour rafraîchir le token"
|
|
319
|
+
},
|
|
320
|
+
"revoke": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"description": "Méthode pour révoquer le token"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
135
330
|
}
|
|
136
331
|
},
|
|
137
332
|
"/clientCredentialsAccessToken": {
|
|
138
333
|
"post": {
|
|
139
|
-
"tags": [
|
|
334
|
+
"tags": [
|
|
335
|
+
"service"
|
|
336
|
+
],
|
|
140
337
|
"summary": "Récupère le token OAuth2 Client Credentials",
|
|
141
338
|
"parameters": [
|
|
142
339
|
{
|
|
@@ -158,12 +355,48 @@
|
|
|
158
355
|
}
|
|
159
356
|
}
|
|
160
357
|
],
|
|
161
|
-
"x-events": []
|
|
358
|
+
"x-events": [],
|
|
359
|
+
"responses": {
|
|
360
|
+
"200": {
|
|
361
|
+
"description": "Token d'accès Client Credentials récupéré avec succès",
|
|
362
|
+
"content": {
|
|
363
|
+
"application/json": {
|
|
364
|
+
"schema": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"access_token": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"description": "Token d'accès OAuth2"
|
|
370
|
+
},
|
|
371
|
+
"token_type": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "Type de token"
|
|
374
|
+
},
|
|
375
|
+
"expires_in": {
|
|
376
|
+
"type": "number",
|
|
377
|
+
"description": "Temps d'expiration du token en secondes"
|
|
378
|
+
},
|
|
379
|
+
"scope": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"description": "Portée du token"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"access_token",
|
|
386
|
+
"token_type"
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
162
393
|
}
|
|
163
394
|
},
|
|
164
395
|
"/clientCredentialsCreateToken": {
|
|
165
396
|
"post": {
|
|
166
|
-
"tags": [
|
|
397
|
+
"tags": [
|
|
398
|
+
"service"
|
|
399
|
+
],
|
|
167
400
|
"summary": "Crée un token OAuth2 Client Credentials",
|
|
168
401
|
"parameters": [
|
|
169
402
|
{
|
|
@@ -185,12 +418,54 @@
|
|
|
185
418
|
}
|
|
186
419
|
}
|
|
187
420
|
],
|
|
188
|
-
"x-events": []
|
|
421
|
+
"x-events": [],
|
|
422
|
+
"responses": {
|
|
423
|
+
"200": {
|
|
424
|
+
"description": "Objet token Client Credentials créé avec succès",
|
|
425
|
+
"content": {
|
|
426
|
+
"application/json": {
|
|
427
|
+
"schema": {
|
|
428
|
+
"type": "object",
|
|
429
|
+
"description": "Objet token OAuth2 avec des méthodes supplémentaires",
|
|
430
|
+
"properties": {
|
|
431
|
+
"token": {
|
|
432
|
+
"type": "object",
|
|
433
|
+
"properties": {
|
|
434
|
+
"access_token": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"description": "Token d'accès OAuth2"
|
|
437
|
+
},
|
|
438
|
+
"token_type": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "Type de token"
|
|
441
|
+
},
|
|
442
|
+
"expires_in": {
|
|
443
|
+
"type": "number",
|
|
444
|
+
"description": "Temps d'expiration du token en secondes"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"expired": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"description": "Méthode pour vérifier si le token est expiré"
|
|
451
|
+
},
|
|
452
|
+
"revoke": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Méthode pour révoquer le token"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
189
462
|
}
|
|
190
463
|
},
|
|
191
464
|
"/tokenExpired": {
|
|
192
465
|
"post": {
|
|
193
|
-
"tags": [
|
|
466
|
+
"tags": [
|
|
467
|
+
"service"
|
|
468
|
+
],
|
|
194
469
|
"summary": "Vérifie si le token est expiré",
|
|
195
470
|
"parameters": [
|
|
196
471
|
{
|
|
@@ -203,12 +478,27 @@
|
|
|
203
478
|
}
|
|
204
479
|
}
|
|
205
480
|
],
|
|
206
|
-
"x-events": []
|
|
481
|
+
"x-events": [],
|
|
482
|
+
"responses": {
|
|
483
|
+
"200": {
|
|
484
|
+
"description": "Statut d'expiration du token vérifié avec succès",
|
|
485
|
+
"content": {
|
|
486
|
+
"application/json": {
|
|
487
|
+
"schema": {
|
|
488
|
+
"type": "boolean",
|
|
489
|
+
"description": "Indique si le token est expiré"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
207
495
|
}
|
|
208
496
|
},
|
|
209
497
|
"/tokenRefresh": {
|
|
210
498
|
"post": {
|
|
211
|
-
"tags": [
|
|
499
|
+
"tags": [
|
|
500
|
+
"service"
|
|
501
|
+
],
|
|
212
502
|
"summary": "Rafraîchit le token",
|
|
213
503
|
"parameters": [
|
|
214
504
|
{
|
|
@@ -221,12 +511,62 @@
|
|
|
221
511
|
}
|
|
222
512
|
}
|
|
223
513
|
],
|
|
224
|
-
"x-events": []
|
|
514
|
+
"x-events": [],
|
|
515
|
+
"responses": {
|
|
516
|
+
"200": {
|
|
517
|
+
"description": "Token rafraîchi avec succès",
|
|
518
|
+
"content": {
|
|
519
|
+
"application/json": {
|
|
520
|
+
"schema": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"description": "Objet token OAuth2 rafraîchi",
|
|
523
|
+
"properties": {
|
|
524
|
+
"token": {
|
|
525
|
+
"type": "object",
|
|
526
|
+
"properties": {
|
|
527
|
+
"access_token": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"description": "Nouveau token d'accès OAuth2"
|
|
530
|
+
},
|
|
531
|
+
"token_type": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"description": "Type de token"
|
|
534
|
+
},
|
|
535
|
+
"expires_in": {
|
|
536
|
+
"type": "number",
|
|
537
|
+
"description": "Temps d'expiration du token en secondes"
|
|
538
|
+
},
|
|
539
|
+
"refresh_token": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"description": "Nouveau token de rafraîchissement"
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"expired": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "Méthode pour vérifier si le token est expiré"
|
|
548
|
+
},
|
|
549
|
+
"refresh": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"description": "Méthode pour rafraîchir le token"
|
|
552
|
+
},
|
|
553
|
+
"revoke": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"description": "Méthode pour révoquer le token"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
225
563
|
}
|
|
226
564
|
},
|
|
227
565
|
"/tokenRevoke": {
|
|
228
566
|
"post": {
|
|
229
|
-
"tags": [
|
|
567
|
+
"tags": [
|
|
568
|
+
"service"
|
|
569
|
+
],
|
|
230
570
|
"summary": "Révoque le token",
|
|
231
571
|
"parameters": [
|
|
232
572
|
{
|
|
@@ -248,12 +588,37 @@
|
|
|
248
588
|
}
|
|
249
589
|
}
|
|
250
590
|
],
|
|
251
|
-
"x-events": []
|
|
591
|
+
"x-events": [],
|
|
592
|
+
"responses": {
|
|
593
|
+
"200": {
|
|
594
|
+
"description": "Token révoqué avec succès",
|
|
595
|
+
"content": {
|
|
596
|
+
"application/json": {
|
|
597
|
+
"schema": {
|
|
598
|
+
"type": "object",
|
|
599
|
+
"description": "Résultat de la révocation du token",
|
|
600
|
+
"properties": {
|
|
601
|
+
"success": {
|
|
602
|
+
"type": "boolean",
|
|
603
|
+
"description": "Indique si la révocation a réussi"
|
|
604
|
+
},
|
|
605
|
+
"token_type": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"description": "Type de token qui a été révoqué"
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
252
615
|
}
|
|
253
616
|
},
|
|
254
617
|
"/tokenRevokeAll": {
|
|
255
618
|
"post": {
|
|
256
|
-
"tags": [
|
|
619
|
+
"tags": [
|
|
620
|
+
"service"
|
|
621
|
+
],
|
|
257
622
|
"summary": "Révoque tous les tokens",
|
|
258
623
|
"parameters": [
|
|
259
624
|
{
|
|
@@ -266,7 +631,33 @@
|
|
|
266
631
|
}
|
|
267
632
|
}
|
|
268
633
|
],
|
|
269
|
-
"x-events": []
|
|
634
|
+
"x-events": [],
|
|
635
|
+
"responses": {
|
|
636
|
+
"200": {
|
|
637
|
+
"description": "Tous les tokens révoqués avec succès",
|
|
638
|
+
"content": {
|
|
639
|
+
"application/json": {
|
|
640
|
+
"schema": {
|
|
641
|
+
"type": "object",
|
|
642
|
+
"description": "Résultat de la révocation de tous les tokens",
|
|
643
|
+
"properties": {
|
|
644
|
+
"success": {
|
|
645
|
+
"type": "boolean",
|
|
646
|
+
"description": "Indique si la révocation a réussi"
|
|
647
|
+
},
|
|
648
|
+
"revoked_tokens": {
|
|
649
|
+
"type": "array",
|
|
650
|
+
"description": "Liste des types de tokens révoqués",
|
|
651
|
+
"items": {
|
|
652
|
+
"type": "string"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
270
661
|
}
|
|
271
662
|
}
|
|
272
663
|
},
|
|
@@ -274,4 +665,4 @@
|
|
|
274
665
|
"schemas": {}
|
|
275
666
|
},
|
|
276
667
|
"x-scene-blocks": {}
|
|
277
|
-
}
|
|
668
|
+
}
|
package/schema.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"/authorizationCodeUrl": {
|
|
12
12
|
"post": {
|
|
13
|
-
"tags": [
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
14
16
|
"summary": "Retrieve OAuth2 Authorization Code URL",
|
|
15
17
|
"parameters": [
|
|
16
18
|
{
|
|
@@ -23,12 +25,27 @@
|
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
],
|
|
26
|
-
"x-events": []
|
|
28
|
+
"x-events": [],
|
|
29
|
+
"responses": {
|
|
30
|
+
"200": {
|
|
31
|
+
"description": "Authorization URL generated successfully",
|
|
32
|
+
"content": {
|
|
33
|
+
"application/json": {
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "OAuth2 authorization URL"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
27
42
|
}
|
|
28
43
|
},
|
|
29
44
|
"/authorizationCodeAccessToken": {
|
|
30
45
|
"post": {
|
|
31
|
-
"tags": [
|
|
46
|
+
"tags": [
|
|
47
|
+
"service"
|
|
48
|
+
],
|
|
32
49
|
"summary": "Retrieve OAuth2 Authorization Code Token",
|
|
33
50
|
"parameters": [
|
|
34
51
|
{
|
|
@@ -50,12 +67,52 @@
|
|
|
50
67
|
}
|
|
51
68
|
}
|
|
52
69
|
],
|
|
53
|
-
"x-events": []
|
|
70
|
+
"x-events": [],
|
|
71
|
+
"responses": {
|
|
72
|
+
"200": {
|
|
73
|
+
"description": "Access token retrieved successfully",
|
|
74
|
+
"content": {
|
|
75
|
+
"application/json": {
|
|
76
|
+
"schema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"access_token": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "OAuth2 access token"
|
|
82
|
+
},
|
|
83
|
+
"token_type": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Type of token"
|
|
86
|
+
},
|
|
87
|
+
"expires_in": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"description": "Token expiration time in seconds"
|
|
90
|
+
},
|
|
91
|
+
"refresh_token": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Refresh token for obtaining new access tokens"
|
|
94
|
+
},
|
|
95
|
+
"scope": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "Token scope"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"access_token",
|
|
102
|
+
"token_type"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
54
109
|
}
|
|
55
110
|
},
|
|
56
111
|
"/authorizationCodeCreateToken": {
|
|
57
112
|
"post": {
|
|
58
|
-
"tags": [
|
|
113
|
+
"tags": [
|
|
114
|
+
"service"
|
|
115
|
+
],
|
|
59
116
|
"summary": "Create OAuth2 Authorization Code Token",
|
|
60
117
|
"parameters": [
|
|
61
118
|
{
|
|
@@ -77,12 +134,62 @@
|
|
|
77
134
|
}
|
|
78
135
|
}
|
|
79
136
|
],
|
|
80
|
-
"x-events": []
|
|
137
|
+
"x-events": [],
|
|
138
|
+
"responses": {
|
|
139
|
+
"200": {
|
|
140
|
+
"description": "OAuth2 token object created successfully",
|
|
141
|
+
"content": {
|
|
142
|
+
"application/json": {
|
|
143
|
+
"schema": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"description": "OAuth2 token object with additional methods",
|
|
146
|
+
"properties": {
|
|
147
|
+
"token": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"access_token": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "OAuth2 access token"
|
|
153
|
+
},
|
|
154
|
+
"token_type": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "Type of token"
|
|
157
|
+
},
|
|
158
|
+
"expires_in": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"description": "Token expiration time in seconds"
|
|
161
|
+
},
|
|
162
|
+
"refresh_token": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"description": "Refresh token"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"expired": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "Method to check if token is expired"
|
|
171
|
+
},
|
|
172
|
+
"refresh": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Method to refresh the token"
|
|
175
|
+
},
|
|
176
|
+
"revoke": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "Method to revoke the token"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
81
186
|
}
|
|
82
187
|
},
|
|
83
188
|
"/resourceOwnerPasswordAccessToken": {
|
|
84
189
|
"post": {
|
|
85
|
-
"tags": [
|
|
190
|
+
"tags": [
|
|
191
|
+
"service"
|
|
192
|
+
],
|
|
86
193
|
"summary": "Retrieve OAuth2 Resource Owner Password Token",
|
|
87
194
|
"parameters": [
|
|
88
195
|
{
|
|
@@ -104,12 +211,52 @@
|
|
|
104
211
|
}
|
|
105
212
|
}
|
|
106
213
|
],
|
|
107
|
-
"x-events": []
|
|
214
|
+
"x-events": [],
|
|
215
|
+
"responses": {
|
|
216
|
+
"200": {
|
|
217
|
+
"description": "Resource owner password access token retrieved successfully",
|
|
218
|
+
"content": {
|
|
219
|
+
"application/json": {
|
|
220
|
+
"schema": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"access_token": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "OAuth2 access token"
|
|
226
|
+
},
|
|
227
|
+
"token_type": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"description": "Type of token"
|
|
230
|
+
},
|
|
231
|
+
"expires_in": {
|
|
232
|
+
"type": "number",
|
|
233
|
+
"description": "Token expiration time in seconds"
|
|
234
|
+
},
|
|
235
|
+
"refresh_token": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Refresh token for obtaining new access tokens"
|
|
238
|
+
},
|
|
239
|
+
"scope": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Token scope"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"access_token",
|
|
246
|
+
"token_type"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
108
253
|
}
|
|
109
254
|
},
|
|
110
255
|
"/resourceOwnerPasswordCreateToken": {
|
|
111
256
|
"post": {
|
|
112
|
-
"tags": [
|
|
257
|
+
"tags": [
|
|
258
|
+
"service"
|
|
259
|
+
],
|
|
113
260
|
"summary": "Create OAuth2 Resource Owner Password Token",
|
|
114
261
|
"parameters": [
|
|
115
262
|
{
|
|
@@ -131,12 +278,62 @@
|
|
|
131
278
|
}
|
|
132
279
|
}
|
|
133
280
|
],
|
|
134
|
-
"x-events": []
|
|
281
|
+
"x-events": [],
|
|
282
|
+
"responses": {
|
|
283
|
+
"200": {
|
|
284
|
+
"description": "Resource owner password token object created successfully",
|
|
285
|
+
"content": {
|
|
286
|
+
"application/json": {
|
|
287
|
+
"schema": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"description": "OAuth2 token object with additional methods",
|
|
290
|
+
"properties": {
|
|
291
|
+
"token": {
|
|
292
|
+
"type": "object",
|
|
293
|
+
"properties": {
|
|
294
|
+
"access_token": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "OAuth2 access token"
|
|
297
|
+
},
|
|
298
|
+
"token_type": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"description": "Type of token"
|
|
301
|
+
},
|
|
302
|
+
"expires_in": {
|
|
303
|
+
"type": "number",
|
|
304
|
+
"description": "Token expiration time in seconds"
|
|
305
|
+
},
|
|
306
|
+
"refresh_token": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"description": "Refresh token"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"expired": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"description": "Method to check if token is expired"
|
|
315
|
+
},
|
|
316
|
+
"refresh": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "Method to refresh the token"
|
|
319
|
+
},
|
|
320
|
+
"revoke": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"description": "Method to revoke the token"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
135
330
|
}
|
|
136
331
|
},
|
|
137
332
|
"/clientCredentialsAccessToken": {
|
|
138
333
|
"post": {
|
|
139
|
-
"tags": [
|
|
334
|
+
"tags": [
|
|
335
|
+
"service"
|
|
336
|
+
],
|
|
140
337
|
"summary": "Retrieve OAuth2 Client Credentials Token",
|
|
141
338
|
"parameters": [
|
|
142
339
|
{
|
|
@@ -158,12 +355,48 @@
|
|
|
158
355
|
}
|
|
159
356
|
}
|
|
160
357
|
],
|
|
161
|
-
"x-events": []
|
|
358
|
+
"x-events": [],
|
|
359
|
+
"responses": {
|
|
360
|
+
"200": {
|
|
361
|
+
"description": "Client credentials access token retrieved successfully",
|
|
362
|
+
"content": {
|
|
363
|
+
"application/json": {
|
|
364
|
+
"schema": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"access_token": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"description": "OAuth2 access token"
|
|
370
|
+
},
|
|
371
|
+
"token_type": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "Type of token"
|
|
374
|
+
},
|
|
375
|
+
"expires_in": {
|
|
376
|
+
"type": "number",
|
|
377
|
+
"description": "Token expiration time in seconds"
|
|
378
|
+
},
|
|
379
|
+
"scope": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"description": "Token scope"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"access_token",
|
|
386
|
+
"token_type"
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
162
393
|
}
|
|
163
394
|
},
|
|
164
395
|
"/clientCredentialsCreateToken": {
|
|
165
396
|
"post": {
|
|
166
|
-
"tags": [
|
|
397
|
+
"tags": [
|
|
398
|
+
"service"
|
|
399
|
+
],
|
|
167
400
|
"summary": "Create OAuth2 Client Credentials Token",
|
|
168
401
|
"parameters": [
|
|
169
402
|
{
|
|
@@ -185,12 +418,54 @@
|
|
|
185
418
|
}
|
|
186
419
|
}
|
|
187
420
|
],
|
|
188
|
-
"x-events": []
|
|
421
|
+
"x-events": [],
|
|
422
|
+
"responses": {
|
|
423
|
+
"200": {
|
|
424
|
+
"description": "Client credentials token object created successfully",
|
|
425
|
+
"content": {
|
|
426
|
+
"application/json": {
|
|
427
|
+
"schema": {
|
|
428
|
+
"type": "object",
|
|
429
|
+
"description": "OAuth2 token object with additional methods",
|
|
430
|
+
"properties": {
|
|
431
|
+
"token": {
|
|
432
|
+
"type": "object",
|
|
433
|
+
"properties": {
|
|
434
|
+
"access_token": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"description": "OAuth2 access token"
|
|
437
|
+
},
|
|
438
|
+
"token_type": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "Type of token"
|
|
441
|
+
},
|
|
442
|
+
"expires_in": {
|
|
443
|
+
"type": "number",
|
|
444
|
+
"description": "Token expiration time in seconds"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"expired": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"description": "Method to check if token is expired"
|
|
451
|
+
},
|
|
452
|
+
"revoke": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Method to revoke the token"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
189
462
|
}
|
|
190
463
|
},
|
|
191
464
|
"/tokenExpired": {
|
|
192
465
|
"post": {
|
|
193
|
-
"tags": [
|
|
466
|
+
"tags": [
|
|
467
|
+
"service"
|
|
468
|
+
],
|
|
194
469
|
"summary": "Check if the token is expired",
|
|
195
470
|
"parameters": [
|
|
196
471
|
{
|
|
@@ -203,12 +478,27 @@
|
|
|
203
478
|
}
|
|
204
479
|
}
|
|
205
480
|
],
|
|
206
|
-
"x-events": []
|
|
481
|
+
"x-events": [],
|
|
482
|
+
"responses": {
|
|
483
|
+
"200": {
|
|
484
|
+
"description": "Token expiration status checked successfully",
|
|
485
|
+
"content": {
|
|
486
|
+
"application/json": {
|
|
487
|
+
"schema": {
|
|
488
|
+
"type": "boolean",
|
|
489
|
+
"description": "Whether the token is expired"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
207
495
|
}
|
|
208
496
|
},
|
|
209
497
|
"/tokenRefresh": {
|
|
210
498
|
"post": {
|
|
211
|
-
"tags": [
|
|
499
|
+
"tags": [
|
|
500
|
+
"service"
|
|
501
|
+
],
|
|
212
502
|
"summary": "Refresh the token",
|
|
213
503
|
"parameters": [
|
|
214
504
|
{
|
|
@@ -221,12 +511,62 @@
|
|
|
221
511
|
}
|
|
222
512
|
}
|
|
223
513
|
],
|
|
224
|
-
"x-events": []
|
|
514
|
+
"x-events": [],
|
|
515
|
+
"responses": {
|
|
516
|
+
"200": {
|
|
517
|
+
"description": "Token refreshed successfully",
|
|
518
|
+
"content": {
|
|
519
|
+
"application/json": {
|
|
520
|
+
"schema": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"description": "Refreshed OAuth2 token object",
|
|
523
|
+
"properties": {
|
|
524
|
+
"token": {
|
|
525
|
+
"type": "object",
|
|
526
|
+
"properties": {
|
|
527
|
+
"access_token": {
|
|
528
|
+
"type": "string",
|
|
529
|
+
"description": "New OAuth2 access token"
|
|
530
|
+
},
|
|
531
|
+
"token_type": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"description": "Type of token"
|
|
534
|
+
},
|
|
535
|
+
"expires_in": {
|
|
536
|
+
"type": "number",
|
|
537
|
+
"description": "Token expiration time in seconds"
|
|
538
|
+
},
|
|
539
|
+
"refresh_token": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"description": "New refresh token"
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"expired": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"description": "Method to check if token is expired"
|
|
548
|
+
},
|
|
549
|
+
"refresh": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"description": "Method to refresh the token"
|
|
552
|
+
},
|
|
553
|
+
"revoke": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"description": "Method to revoke the token"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
225
563
|
}
|
|
226
564
|
},
|
|
227
565
|
"/tokenRevoke": {
|
|
228
566
|
"post": {
|
|
229
|
-
"tags": [
|
|
567
|
+
"tags": [
|
|
568
|
+
"service"
|
|
569
|
+
],
|
|
230
570
|
"summary": "Revoke the token",
|
|
231
571
|
"parameters": [
|
|
232
572
|
{
|
|
@@ -248,12 +588,37 @@
|
|
|
248
588
|
}
|
|
249
589
|
}
|
|
250
590
|
],
|
|
251
|
-
"x-events": []
|
|
591
|
+
"x-events": [],
|
|
592
|
+
"responses": {
|
|
593
|
+
"200": {
|
|
594
|
+
"description": "Token revoked successfully",
|
|
595
|
+
"content": {
|
|
596
|
+
"application/json": {
|
|
597
|
+
"schema": {
|
|
598
|
+
"type": "object",
|
|
599
|
+
"description": "Token revocation result",
|
|
600
|
+
"properties": {
|
|
601
|
+
"success": {
|
|
602
|
+
"type": "boolean",
|
|
603
|
+
"description": "Whether the revocation was successful"
|
|
604
|
+
},
|
|
605
|
+
"token_type": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"description": "Type of token that was revoked"
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
252
615
|
}
|
|
253
616
|
},
|
|
254
617
|
"/tokenRevokeAll": {
|
|
255
618
|
"post": {
|
|
256
|
-
"tags": [
|
|
619
|
+
"tags": [
|
|
620
|
+
"service"
|
|
621
|
+
],
|
|
257
622
|
"summary": "Revoke all tokens",
|
|
258
623
|
"parameters": [
|
|
259
624
|
{
|
|
@@ -266,7 +631,33 @@
|
|
|
266
631
|
}
|
|
267
632
|
}
|
|
268
633
|
],
|
|
269
|
-
"x-events": []
|
|
634
|
+
"x-events": [],
|
|
635
|
+
"responses": {
|
|
636
|
+
"200": {
|
|
637
|
+
"description": "All tokens revoked successfully",
|
|
638
|
+
"content": {
|
|
639
|
+
"application/json": {
|
|
640
|
+
"schema": {
|
|
641
|
+
"type": "object",
|
|
642
|
+
"description": "Token revocation result for all tokens",
|
|
643
|
+
"properties": {
|
|
644
|
+
"success": {
|
|
645
|
+
"type": "boolean",
|
|
646
|
+
"description": "Whether the revocation was successful"
|
|
647
|
+
},
|
|
648
|
+
"revoked_tokens": {
|
|
649
|
+
"type": "array",
|
|
650
|
+
"description": "List of revoked token types",
|
|
651
|
+
"items": {
|
|
652
|
+
"type": "string"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
270
661
|
}
|
|
271
662
|
}
|
|
272
663
|
},
|
|
@@ -274,4 +665,4 @@
|
|
|
274
665
|
"schemas": {}
|
|
275
666
|
},
|
|
276
667
|
"x-scene-blocks": {}
|
|
277
|
-
}
|
|
668
|
+
}
|