You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in the auth server routes (Open Payments & some of the front channel routes), we are throwing GNAPServerRouteErrors, and properly catching them in gnapServerErrorMiddleware in order to return a well formatted GNAP error object that is defined in the GNAP spec. However, we are not doing the same for /grant/:id/:nonce/:choice/grant/:id/:nonce, the two routes exposed in the "Interaction Server".
Add gnapServerErrorMiddleware handler in the "Interaction Server" routes, add tests accordingly
Update the IDP spec to display the different possible error objects for each route. A good idea might be to define all the possible GNAP errors we throw as components/schemas, and use them in each of the routes (see OpenAPI docs above)
The text was updated successfully, but these errors were encountered:
Context
Currently, in the auth server routes (Open Payments & some of the front channel routes), we are throwing
GNAPServerRouteError
s, and properly catching them ingnapServerErrorMiddleware
in order to return a well formatted GNAP error object that is defined in the GNAP spec. However, we are not doing the same for/grant/:id/:nonce/:choice
/grant/:id/:nonce
, the two routes exposed in the "Interaction Server".Relevant OpenAPI docs
Todos
gnapServerErrorMiddleware
handler in the "Interaction Server" routes, add tests accordinglyThe text was updated successfully, but these errors were encountered: