forked from GluuFederation/oxAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oxAuthSwagger.yaml
4492 lines (4485 loc) · 192 KB
/
oxAuthSwagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
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
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# raw swagger spec link:
# https://raw.githubusercontent.com/GluuFederation/oxAuth/master/docs/oxAuthSwagger.yaml
# https://gluu.org/swagger-ui/?url=https://raw.githubusercontent.com/GluuFederation/oxAuth/master/docs/oxAuthSwagger.yaml
openapi: 3.0.1
info:
title: oxAuth
description: oxAuth - OAuth 2.0 server; OpenID Connect Provider (OP) & UMA Authorization Server (AS)
contact:
email: [email protected]
license:
name: License
url: https://github.com/GluuFederation/oxAuth/blob/master/LICENSE
version: "4.2"
servers:
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/yuriyz1/oxauth/4.2
- url: https://gluu.org/
tags:
- name: developers
description: oxAuth is an open source OpenID Connect Provider (OP) and UMA Authorization Server (AS). The project also includes OpenID Connect Client code which can be used by websites to validate tokens.oxAuth currently implements all required aspects of the OpenID Connect stack, including an OAuth 2.0 authorization server, Simple Web Discovery, Dynamic Client Registration, JSON Web Tokens, JSON Web Keys, and User Info Endpoint.oxAuth is tightly coupled with oxTrust.
paths:
/authorize:
get:
tags:
- Authorization
summary: The Authorization Endpoint performs Authentication of the End-User.
description: End-User Authentication and Authorization done by sending the User Agent to the Authorization Endpoint using request parameters defined by OAuth 2.0 and OpenID Connect.
operationId: get_authorize
parameters:
- name: scope
in: query
required: true
description: OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified. Other scope values MAY be present.
schema:
type: string
- name: response_type
in: query
required: true
description: OAuth 2.0 Response Type value that determines the authorization processing flow to be used, including what parameters are returned from the endpoints used.
schema:
type: string
- name: client_id
in: query
required: true
description: OAuth 2.0 Client Identifier valid at the Authorization Server.
schema:
type: string
- name: redirect_uri
in: query
required: true
description: Redirection URI to which the response will be sent. This URI MUST exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider.
schema:
type: string
- name: state
in: query
required: false
description: Opaque value used to maintain state between the request and the callback.
schema:
type: string
- name: response_mode
in: query
required: false
description: Informs the Authorization Server of the mechanism to be used for returning parameters from the Authorization Endpoint.
schema:
type: string
- name: nonce
in: query
required: false
description: String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
schema:
type: string
- name: display
in: query
required: false
description: ASCII string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.
schema:
type: string
- name: prompt
in: query
required: false
description: Space delimited, case sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent. The defined values are - none, login, consent, select_account.
schema:
type: string
- name: max_age
in: query
required: false
description: Maximum Authentication Age. Specifies the allowable elapsed time in seconds since the last time the End-User was actively authenticated by the OP.
schema:
type: integer
- name: ui_locales
in: query
required: false
description: End-User's preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference.
#example: \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation).
schema:
type: string
- name: id_token_hint
in: query
required: false
description: ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client. If the End-User identified by the ID Token is logged in or is logged in by the request, then the Authorization Server returns a positive response.
schema:
type: string
- name: login_hint
in: query
required: false
description: Hint to the Authorization Server about the login identifier the End-User might use to log in (if necessary).
schema:
type: string
- name: acr_values
in: query
required: false
description: Requested Authentication Context Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference.
schema:
type: string
- name: amr_values
in: query
required: false
description: AMR Values.
schema:
type: string
- name: request
in: query
required: false
description: This parameter enables OpenID Connect requests to be passed in a single, self-contained parameter and to be optionally signed and/or encrypted. The parameter value is a Request Object value. It represents the request as a JWT whose Claims are the request parameters.
schema:
type: string
- name: request_uri
in: query
required: false
description: This parameter enables OpenID Connect requests to be passed by reference, rather than by value. The request_uri value is a URL using the https scheme referencing a resource containing a Request Object value, which is a JWT containing the request parameters.
schema:
type: string
- name: request_session_id
in: query
required: false
description: Request session id.
schema:
type: string
- name: session_id
in: query
required: false
description: Session id of this call.
schema:
type: string
- name: origin_headers
in: query
required: false
description: Origin headers. Used in custom workflows.
schema:
type: string
- name: code_challenge
in: query
required: false
description: PKCE code challenge.
schema:
type: string
- name: code_challenge_method
in: query
required: false
description: PKCE code challenge method.
schema:
type: string
- name: custom_response_headers
in: query
required: false
description: Custom Response Headers.
schema:
type: string
- name: claims
in: query
required: false
description: Requested Claims.
schema:
type: string
- name: auth_req_id
in: query
required: false
description: CIBA authentication request Id.
schema:
type: string
responses:
200:
description: OK
content: {}
302:
description: Error codes for authorization endpoint.
content:
application/json:
schema:
title: AuthorizeError
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- unauthorized_client
- disabled_client
- access_denied
- retry
- unsupported_response_type
- invalid_scope
- server_error
- temporarily_unavailable
- invalid_request_redirect_uri
- login_required
- session_selection_required
- consent_required
- user_mismatched
- invalid_request_uri
- invalid_request_object
- authentication_session_invalid
- invalid_authentication_method
error_description:
type: string
details:
type: string
400:
$ref: '#/components/responses/InvalidRequest'
401:
$ref: '#/components/responses/Unauthorized'
500:
$ref: '#/components/responses/InternalServerError'
post:
tags:
- Authorization
summary: The Authorization Endpoint performs Authentication of the End-User.
description: End-User Authentication and Authorization done by sending the User Agent to the Authorization Endpoint using request parameters defined by OAuth 2.0 and OpenID Connect.
operationId: post_authorize
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- scope
- response_type
- client_id
- redirect_uri
properties:
scope:
type: string
description: OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified. Other scope values MAY be present.
response_type:
type: string
description: OAuth 2.0 Response Type value that determines the authorization processing flow to be used, including what parameters are returned from the endpoints used.
client_id:
type: string
description: OAuth 2.0 Client Identifier valid at the Authorization Server.
redirect_uri:
type: string
description: Redirection URI to which the response will be sent. This URI MUST exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider.
state:
type: string
description: Opaque value used to maintain state between the request and the callback.
response_mode:
type: string
description: Informs the Authorization Server of the mechanism to be used for returning parameters from the Authorization Endpoint.
nonce:
type: string
description: String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
display:
type: string
description: ASCII string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.
prompt:
type: string
description: Space delimited, case sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent.
max_age:
type: integer
description: Maximum Authentication Age. Specifies the allowable elapsed time in seconds since the last time the End-User was actively authenticated by the OP.
ui_locales:
type: string
description: End-User's preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference.
example: \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation).
id_token_hint:
type: string
description: ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client. If the End-User identified by the ID Token is logged in or is logged in by the request, then the Authorization Server returns a positive response.
login_hint:
type: string
description: Hint to the Authorization Server about the login identifier the End-User might use to log in (if necessary).
acr_values:
type: string
description: Requested Authentication Context Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference.
amr_values:
type: string
description: AMR Values.
request:
type: string
description: This parameter enables OpenID Connect requests to be passed in a single, self-contained parameter and to be optionally signed and/or encrypted. The parameter value is a Request Object value. It represents the request as a JWT whose Claims are the request parameters.
request_uri:
type: string
description: This parameter enables OpenID Connect requests to be passed by reference, rather than by value. The request_uri value is a URL using the https scheme referencing a resource containing a Request Object value, which is a JWT containing the request parameters.
request_session_id:
type: string
description: Request session id.
session_id:
type: string
description: Session id of this call.
origin_headers:
type: string
description: Origin headers. Used in custom workflows.
code_challenge:
type: string
description: PKCE code challenge.
code_challenge_method:
type: string
description: PKCE code challenge method.
custom_response_headers:
type: string
description: Custom Response Headers.
claims:
type: string
description: Requested Claims.
responses:
200:
description: OK
content: {}
302:
description: Error codes for authorization endpoint.
content:
application/json:
schema:
title: AuthorizeError
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- unauthorized_client
- disabled_client
- access_denied
- retry
- unsupported_response_type
- invalid_scope
- server_error
- temporarily_unavailable
- invalid_request_redirect_uri
- login_required
- session_selection_required
- consent_required
- user_mismatched
- invalid_request_uri
- invalid_request_object
- authentication_session_invalid
- invalid_authentication_method
error_description:
type: string
details:
type: string
400:
$ref: '#/components/responses/InvalidRequest'
401:
$ref: '#/components/responses/Unauthorized'
500:
$ref: '#/components/responses/InternalServerError'
/bc-authorize:
post:
tags:
- Authorization
summary: Performs backchannel authorization of the end-user.
description: The Backchannel Authentication Endpoint is used to initiate an out-of-band authentication of the end-user.
operationId: bc-authorize
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- client_id
- scope
- client_notification_token
properties:
client_id:
type: string
description: OAuth 2.0 Client Identifier valid at the Authorization Server.
scope:
type: string
description: CIBA authentication requests must contain the openid scope value.
client_notification_token:
type: string
description: It is a bearer token provided by the Client that will be used by the OpenID Provider to authenticate the callback request to the Client. It is required if the Client is registered to use Ping or Push modes.
acr_values:
type: string
description: Requested Authentication Context Class Reference values.
login_hint_token:
type: string
description: A token containing information identifying the end-user for whom authentication is being requested.
id_token_hint:
type: string
description: An ID Token previously issued to the Client by the OpenID Provider being passed back as a hint to identify the end-user for whom authentication is being requested.
login_hint:
type: string
description: A hint to the OpenID Provider regarding the end-user for whom authentication is being requested.
binding_message:
type: string
description: A human readable identifier or message intended to be displayed on both the consumption device and the authentication device to interlock them together for the transaction by way of a visual cue for the end-user.
user_code:
type: string
description: A secret code, such as password or pin, known only to the user but verifiable by the OP.
requested_expiry:
type: integer
description: A positive integer allowing the client to request the expires_in value for the auth_req_id the server will return.
responses:
200:
description: OK
content:
application/json:
schema:
title: Backchannel Authorization
required:
- AUTH_REQ_ID
- EXPIRES_IN
- INTERVAL
type: object
properties:
AUTH_REQ_ID:
type: string
EXPIRES_IN:
type: integer
INTERVAL:
type: integer
400:
$ref: '#/components/responses/InvalidRequest'
401:
description: Unauthorized CIBA (Client Initiated Backchannel Authentication) access.
content:
application/json:
schema:
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- invalid_scope
- expired_login_hint_token
- unknown_user_id
- unauthorized_client
- missing_user_code
- invalid_user_code
- invalid_binding_message
- invalid_client
- unauthorized_end_user_device
- access_denied
error_description:
type: string
details:
type: string
403:
$ref: '#/components/responses/AccessDenied'
/bc-deviceRegistration:
post:
tags:
- Registration
summary: Performs backchannel device registration.
description: Performs backchannel device registration.
operationId: bc-deviceRegistration
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- id_token_hint
- device_registration_token
properties:
id_token_hint:
type: string
description: An ID Token previously issued to the Client by the OpenID Provider being passed back as a hint to identify the end-user for whom the device registration is being requested.
device_registration_token:
type: string
description: OAuth 2.0 Client Identifier valid at the Authorization Serve
responses:
200:
description: OK
content: {}
400:
description: Invalid parameters are provided to endpoint.
content:
application/json:
schema:
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- invalid_scope
- expired_login_hint_token
- unknown_user_id
- unauthorized_client
- missing_user_code
- invalid_user_code
- invalid_binding_message
- invalid_client
- unauthorized_end_user_device
- access_denied
error_description:
type: string
details:
type: string
403:
$ref: '#/components/responses/AccessDenied'
/clientinfo:
get:
tags:
- Client Info
summary: To get Claims details about the registered client.
description: The ClientInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the registered client.
operationId: get_clientinfo
parameters:
- name: access_token
in: query
schema:
type: string
description: Client-specific access token.
- name: Authorization
in: header
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
title: ClientInfoResponse
description: Client details in response.
type: object
properties:
displayName:
type: string
inum:
type: string
description: XRI i-number
oxAuthAppType:
type: string
description: oxAuth Appication type
oxAuthIdTokenSignedResponseAlg:
type: string
description: oxAuth ID Token Signed Response Algorithm
oxAuthRedirectURI:
type: array
description: Array of redirect URIs values used in the Authorization
items:
type: string
oxId:
type: string
example:
description: oxAuth Attribute Scope Id
custom_attributes:
type: array
items:
type: string
400:
description: Invalid Request are provided to endpoint.
content:
application/json:
schema:
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- invalid_token
error_description:
type: string
details:
type: string
post:
tags:
- Client Info
summary: To get Claims details about the registered client.
description: The ClientInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the registered client.
operationId: post_clientinfo
parameters:
- name: Authorization
in: header
schema:
type: string
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- access_token
properties:
access_token:
type: string
description: Client-specific access token.
responses:
200:
description: OK
content:
application/json:
schema:
title: ClientInfoResponse
description: Client details in response.
type: object
properties:
displayName:
type: string
inum:
type: string
description: XRI i-number
oxAuthAppType:
type: string
description: oxAuth Appication type
oxAuthIdTokenSignedResponseAlg:
type: string
description: oxAuth ID Token Signed Response Algorithm
oxAuthRedirectURI:
type: array
description: Array of redirect URIs values used in the Authorization
items:
type: string
oxId:
type: string
example:
description: oxAuth Attribute Scope Id
custom_attributes:
type: array
items:
type: string
400:
description: Invalid Request are provided to endpoint.
content:
application/json:
schema:
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- invalid_token
error_description:
type: string
details:
type: string
/.well-known/gluu-configuration:
post:
tags:
- Server Configuration
summary: Gets GluuServer configuration data that contains non-standard OpenID Connect discovery metadata.
description: Gets GluuServer configuration data that contains non-standard OpenID Connect discovery metadata.
operationId: well-known-gluu-configuration
responses:
200:
description: OK
content:
application/json:
schema:
title: GluuConfigurationResponse
description: Client GluuAttribute by Dn(Distinguished Name) based on Authorization Scope.
required:
- id_generation_endpoint
- introspection_endpoint
type: object
properties:
id_generation_endpoint:
type: string
introspection_endpoint:
type: string
auth_level_mapping:
type: object
additionalProperties:
type: string
description: Additional Custom Acr's map object
scope_to_claims_mapping:
type: object
additionalProperties:
type: string
description: Scope map object
500:
$ref: '#/components/responses/InternalServerError'
/introspection:
get:
tags:
- Token
summary: The Introspection OAuth 2 Endpoint.
description: The Introspection OAuth 2 Endpoint.
operationId: get-introspection
parameters:
- name: Authorization
in: header
required: true
description: Client Authorization details that contains the access token along with other details.
schema:
type: string
example: Bearer 23410913-abewfq.123483
- name: token
in: query
required: true
schema:
type: string
example: token=2YotnFZFEjr1zCsicMWpAA
- name: token_type_hint
in: query
description: ID Token previously issued by the Authorization Server being passed as a hint about the End-User.
schema:
type: string
- name: response_as_jwt
in: query
description: OPTIONAL. Boolean value with default value false. If true, returns introspection response as JWT (signed based on client configuration used for authentication to Introspection Endpoint).
schema:
type: boolean
example: response_as_jwt=false
responses:
200:
description: OK
content:
application/json:
schema:
title: IntrospectionResponse
description: meta-information about token
required:
- active
type: object
properties:
active:
type: boolean
description: Boolean indicator of whether or not the presented token is currently active.
example: true
scope:
type: array
description: Provide list of scopes to which access was granted for this resource.
example:
- read write dolphin
items:
type: string
client_id:
type: string
description: Client identifier for the OAuth 2.0 client that requested this token.
example: 1238j323ds-23ij4
username:
type: string
description: Human-readable identifier for the resource owner who authorized this token.
example: jdoe
token_type:
type: string
description: Type of the token as defined in Section 5.1 of OAuth 2.0 [RFC6749].
example: bearer, mac
exp:
type: integer
description: Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this permission will expire.
iat:
type: integer
example: Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this permission was originally issued.
sub:
type: string
description: Subject of the token, as defined in JWT [RFC7519].
example: Z5O3upPC88QrAjx00dis
aud:
type: string
description: Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT [RFC7519].
example: https://protected.example.net/resource
iss:
type: string
description: String representing the issuer of this token, as defined in JWT [RFC7519].
example: https://server.example.com/
acr_values:
type: string
description: Authentication Context Class Reference values.
jti:
type: string
description: String identifier for the token, as defined in JWT.
400:
description: Error codes for introspection endpoint.
content:
application/json:
schema:
title: AuthorizeError
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- unauthorized_client
- disabled_client
- access_denied
- retry
- unsupported_response_type
- invalid_scope
- server_error
- temporarily_unavailable
- invalid_request_redirect_uri
- login_required
- session_selection_required
- consent_required
- user_mismatched
- invalid_request_uri
- invalid_request_object
- authentication_session_invalid
- invalid_authentication_method
error_description:
type: string
details:
type: string
401:
$ref: '#/components/responses/Unauthorized'
500:
$ref: '#/components/responses/InternalServerError'
post:
tags:
- Token
summary: The Introspection OAuth 2 Endpoint.
description: The Introspection OAuth 2 Endpoint.
operationId: post-introspection
parameters:
- name: Authorization
in: header
required: true
description: Client Authorization details that contains the access token along with other details.
schema:
type: string
example: Bearer 23410913-abewfq.123483
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- token
properties:
token:
type: string
description: Client access token.
example: token=2YotnFZFEjr1zCsicMWpAA
responses:
200:
description: OK
content:
application/json:
schema:
title: IntrospectionResponse
description: meta-information about token
required:
- active
type: object
properties:
active:
type: boolean
description: Boolean indicator of whether or not the presented token is currently active.
example: true
scope:
type: array
description: Provide list of scopes to which access was granted for this resource.
example:
- read write dolphin
items:
type: string
client_id:
type: string
description: Client identifier for the OAuth 2.0 client that requested this token.
example: 1238j323ds-23ij4
username:
type: string
description: Human-readable identifier for the resource owner who authorized this token.
example: jdoe
token_type:
type: string
description: Type of the token as defined in Section 5.1 of OAuth 2.0 [RFC6749].
example: bearer, mac
exp:
type: integer
description: Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this permission will expire.
iat:
type: integer
example: Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this permission was originally issued.
sub:
type: string
description: Subject of the token, as defined in JWT [RFC7519].
example: Z5O3upPC88QrAjx00dis
aud:
type: string
description: Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT [RFC7519].
example: https://protected.example.net/resource
iss:
type: string
description: String representing the issuer of this token, as defined in JWT [RFC7519].
example: https://server.example.com/
acr_values:
type: string
description: Authentication Context Class Reference values.
jti:
type: string
description: String identifier for the token, as defined in JWT.
400:
description: Error codes for introspection endpoint.
content:
application/json:
schema:
title: AuthorizeError
type: object
required:
- error
- error_description
properties:
error:
type: string
format: enum
example:
- invalid_request
- unauthorized_client
- disabled_client
- access_denied
- retry
- unsupported_response_type
- invalid_scope
- server_error
- temporarily_unavailable
- invalid_request_redirect_uri
- login_required
- session_selection_required
- consent_required
- user_mismatched
- invalid_request_uri
- invalid_request_object
- authentication_session_invalid
- invalid_authentication_method
error_description:
type: string
details:
type: string
401:
$ref: '#/components/responses/Unauthorized'
500:
$ref: '#/components/responses/InternalServerError'
/jwks:
get:
tags:
- JWK - JSON Web Key Set (JWKs)
summary: A JSON Web Key (JWK) used by server. JWK is a JSON data structure that represents a set of public keys as a JSON object [RFC4627].
description: Provides list of JWK used by server.
operationId: jwks
responses:
200:
description: OK
content:
application/json:
schema:
title: WebKeysConfiguration
required:
- keys
type: object
description: JSON Web Key Set (JWKS) - A JSON object that represents a set of JWKs. The JSON object MUST have a keys member, which is an array of JWKs.
properties:
keys:
type: array
description: List of JSON Web Key (JWK) - A JSON object that represents a cryptographic key. The members of the object represent properties of the key, including its value.
items:
$ref: '#/components/schemas/JsonWebKey'
500:
$ref: '#/components/responses/InternalServerError'
/register:
post:
tags:
- Registration
summary: Registers new client dynamically.