Skip to content

Resolve "API call to retrieve information of wrong token returns error "400" instead of "401""

What does this MR do and why?

Fixes #347319 (closed)

Since we were overriding Doorkeeper::Oauth::TokenInfoController, we lost the changes that were pushed upstream in the doorkeeper via https://github.com/doorkeeper-gem/doorkeeper/pull/1202, which is the reason why this bug came into existence.

To make sure we are in sync with the upstream changes, we make changes in our overridden controller as per the upstream change, which fixes the problem.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Manoj M J

Merge request reports