@@ -37,8 +37,24 @@ paths:
37
37
schema :
38
38
type : string
39
39
description : Interaction id
40
- ' 401 ' :
40
+ ' 400 ' :
41
41
description : Unauthorized
42
+ content :
43
+ application/json :
44
+ schema :
45
+ $ref : ' #/components/schemas/error-unknown-interaction'
46
+ ' 403 ' :
47
+ description : Invalid Request
48
+ content :
49
+ application/json :
50
+ schema :
51
+ $ref : ' #/components/schemas/error-invalid-interaction'
52
+ ' 500 ' :
53
+ description : Internal Server Error
54
+ content :
55
+ application/json :
56
+ schema :
57
+ $ref : ' ./auth-server.yaml#/components/schemas/error-request-denied'
42
58
operationId : get-interact
43
59
parameters :
44
60
- schema :
@@ -89,9 +105,19 @@ paths:
89
105
description : Client finish endpoint
90
106
' 401 ' :
91
107
description : Unauthorized
108
+ content :
109
+ application/json :
110
+ schema :
111
+ oneOf :
112
+ - $ref : ' ./auth-server.yaml#/components/schemas/error-invalid-request'
113
+ - $ref : ' #/components/schemas/error-invalid-interaction'
92
114
' 404 ' :
93
115
description : Not Found
94
- description : " This endpoint is called by the identity provider to end the user interaction and redirect the user to the client's finish URL."
116
+ content :
117
+ application/json :
118
+ schema :
119
+ $ref : ' #/components/schemas/error-unknown-interaction'
120
+ description : " To finish the user interaction for grant approval, this endpoint redirects the user to the client's finish url."
95
121
parameters :
96
122
- schema :
97
123
type : string
@@ -136,8 +162,16 @@ paths:
136
162
type : string
137
163
' 401 ' :
138
164
description : Unauthorized
165
+ content :
166
+ application/json :
167
+ schema :
168
+ $ref : ' ./auth-server.yaml#/components/schemas/error-invalid-request'
139
169
' 404 ' :
140
170
description : Not Found
171
+ content :
172
+ application/json :
173
+ schema :
174
+ $ref : ' #/components/schemas/error-unknown-interaction'
141
175
operationId : get-grant
142
176
description : |
143
177
This endpoint is called by the identity provider to get the grant details associated with the `interactId` on the front-channel. The identity provider will display the details to the user to either accept or deny.
@@ -164,12 +198,28 @@ paths:
164
198
' 202 ' :
165
199
description : Accepted
166
200
' 400 ' :
167
- description : Not Found
201
+ description : Bad Request
202
+ content :
203
+ application/json :
204
+ schema :
205
+ oneOf :
206
+ - $ref : ' #/components/schemas/error-invalid-interaction'
207
+ - $ref : ' ./auth-server.yaml#/components/schemas/error-invalid-request'
168
208
' 401 ' :
169
209
description : Unauthorized
210
+ content :
211
+ application/json :
212
+ schema :
213
+ oneOf :
214
+ - $ref : ' #/components/schemas/error-invalid-interaction'
215
+ - $ref : ' #/components/schemas/error-user-denied'
170
216
' 404 ' :
171
217
description : Not Found
172
- description : This endpoint is called by the identity provider to communicate the user's choice (acceptance or rejection) to the authorization server.
218
+ content :
219
+ application/json :
220
+ schema :
221
+ $ref : ' #/components/schemas/error-unknown-interaction'
222
+ description : The Identity Provider uses this endpoint to submit the user's choice regarding accepting or rejecting a grant to Authorization Server.
173
223
parameters :
174
224
- schema :
175
225
type : string
@@ -195,7 +245,43 @@ paths:
195
245
tags :
196
246
- back-channel
197
247
components :
198
- schemas : {}
248
+ schemas :
249
+ error-unknown-interaction :
250
+ type : object
251
+ properties :
252
+ error :
253
+ type : object
254
+ properties :
255
+ description :
256
+ type : string
257
+ code :
258
+ type : string
259
+ enum :
260
+ - unknown_interaction
261
+ error-invalid-interaction :
262
+ type : object
263
+ properties :
264
+ error :
265
+ type : object
266
+ properties :
267
+ description :
268
+ type : string
269
+ code :
270
+ type : string
271
+ enum :
272
+ - invalid_interaction
273
+ error-user-denied :
274
+ type : object
275
+ properties :
276
+ error :
277
+ type : object
278
+ properties :
279
+ description :
280
+ type : string
281
+ code :
282
+ type : string
283
+ enum :
284
+ - user_denied
199
285
securitySchemes :
200
286
GNAP :
201
287
name : Authorization
0 commit comments