Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix token introspection invalid request reason #1715

Merged

Conversation

ransombriggs
Copy link
Contributor

Summary

I was validating the client authentication in the token introspection endpoint and got a "The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed." error which was kind of confusing and so I took a look at the code and this appears to be not intentional. The invalid_request_reason is a private method so when the try(:invalid_request_reason) runs it returns nil and so it falls back to the default. I went with a quick fix but making the attr_reader public so that the error_description is set properly.

Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks! LGTM

Can you please also add a changelog entry and squash the commits? 🙏 Thanks!

@ransombriggs ransombriggs force-pushed the fix-error-message-on-introspection branch from 376d5ac to d86fc47 Compare July 12, 2024 17:09
@ransombriggs
Copy link
Contributor Author

I rebased from main, added to the changelog and force-pushed d86fc47

@nbulaj nbulaj merged commit 2f40094 into doorkeeper-gem:main Jul 15, 2024
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants