hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Add list of possible errors to REST API documentation

Open cgrimal opened this issue 5 years ago • 4 comments

Is your feature request related to a problem? Please describe.

In our application, we want to properly handle the response error when calling the REST API. For instance, in some scenarios, the call to the authorize endpoint /oauth2/auth redirects to our callback URL, with error and error_description parameters. Our problem is that we don't know the list of possible values for these parameters.

Describe the solution you'd like

An exhaustive list of possible error responses for all REST API endpoints.

Describe alternatives you've considered

I've tried reading RFC-6749 (linked in the description of the authorized endpoint) but wasn't able to find such a list.

cgrimal avatar Nov 05 '20 10:11 cgrimal

Yes, good idea. It's a bit tricky to document this in Swagger but should nontheless be documented. You can however find a list of all error codes here.

aeneasr avatar Nov 09 '20 10:11 aeneasr

Thank you @aeneasr for the link, it is very useful and is quite literally what I as looking for (I tried to dig in the code myself but wasn't able to find it).

cgrimal avatar Nov 16 '20 09:11 cgrimal

Nice! If you're down to add this stuff to swagger let me know and I can point you in the right direction!

aeneasr avatar Nov 16 '20 10:11 aeneasr

@aeneasr sir If I am going correct then can I continue on this issue? I tried formatting one of my repository files

screencapture-github-idivyanshbansal-html-404-blob-main-README-md-2021-10-07-17_01_16

idivyanshbansal avatar Oct 07 '21 11:10 idivyanshbansal

Hello contributors!

I am marking this issue as stale as it has not received any engagement from the community or maintainers for a year. That does not imply that the issue has no merit! If you feel strongly about this issue

  • open a PR referencing and resolving the issue;
  • leave a comment on it and discuss ideas on how you could contribute towards resolving it;
  • leave a comment and describe in detail why this issue is critical for your use case;
  • open a new issue with updated details and a plan for resolving the issue.

Throughout its lifetime, Ory has received over 10.000 issues and PRs. To sustain that growth, we need to prioritize and focus on issues that are important to the community. A good indication of importance, and thus priority, is activity on a topic.

Unfortunately, burnout has become a topic of concern amongst open-source projects.

It can lead to severe personal and health issues as well as opening catastrophic attack vectors.

The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone.

If this issue was marked as stale erroneously you can exempt it by adding the backlog label, assigning someone, or setting a milestone for it.

Thank you for your understanding and to anyone who participated in the conversation! And as written above, please do participate in the conversation if this topic is important to you!

Thank you 🙏✌️

github-actions[bot] avatar Mar 05 '23 00:03 github-actions[bot]

I think this is done now!

aeneasr avatar Mar 05 '23 06:03 aeneasr