-
Notifications
You must be signed in to change notification settings - Fork 6k
OAuth2 invalid registrationId request to modify BAD_REQUEST status to respond #5564
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
Comments
@mhyeon-lee As per spec, if the Authorization Request contains invalid parameters or missing parameters than the status should be 400. However, if an incorrect |
Related #4641 |
I understood what it means. And I think #4641 is a good feature. |
Thanks @mhyeon-lee. I'm going to close this issue since we're on the same page :) |
I feel this should be re-visited, I now have to implement a filter in the chain to customize this outcome to my specific requirements. This is a bad code smell: .addFilterBefore(validator, OAuth2AuthorizationRequestRedirectFilter::class.java) |
Summary
When an OAuth2 Authorization request encounters a ClientRegistration request that does not exist, it is responding with an InternalServerError.
TestCase
Since the client has made an undefined request, it would be better to modify it in the BAD_REQUEST response.
Does this make sense?
The text was updated successfully, but these errors were encountered: