@@ -37,8 +37,24 @@ paths:
3737 schema :
3838 type : string
3939 description : Interaction id
40- ' 401 ' :
40+ ' 400 ' :
4141 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'
4258 operationId : get-interact
4359 parameters :
4460 - schema :
@@ -89,9 +105,19 @@ paths:
89105 description : Client finish endpoint
90106 ' 401 ' :
91107 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'
92114 ' 404 ' :
93115 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."
95121 parameters :
96122 - schema :
97123 type : string
@@ -136,8 +162,16 @@ paths:
136162 type : string
137163 ' 401 ' :
138164 description : Unauthorized
165+ content :
166+ application/json :
167+ schema :
168+ $ref : ' ./auth-server.yaml#/components/schemas/error-invalid-request'
139169 ' 404 ' :
140170 description : Not Found
171+ content :
172+ application/json :
173+ schema :
174+ $ref : ' #/components/schemas/error-unknown-interaction'
141175 operationId : get-grant
142176 description : |
143177 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:
164198 ' 202 ' :
165199 description : Accepted
166200 ' 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'
168208 ' 401 ' :
169209 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'
170216 ' 404 ' :
171217 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.
173223 parameters :
174224 - schema :
175225 type : string
@@ -195,7 +245,43 @@ paths:
195245 tags :
196246 - back-channel
197247components :
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
199285 securitySchemes :
200286 GNAP :
201287 name : Authorization
0 commit comments