-
Notifications
You must be signed in to change notification settings - Fork 747
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
Sending access token through request body to oauth2/userinfo #10387
Comments
This is a duplicate of #4403 |
I will work on this |
curl --location --request POST 'https://localhost:9443/oauth2/userinfo' |
I check with yasas and above curl is slightly different from the http request used by the OIDC conformance suite test case. For that curl, issue can be recreated. curl --location --request POST 'https://localhost:9443/oauth2/userinfo' The difference is in this curl, server /userinfo endpoint receive content type as 'application/x-www-form-urlencoded;charset=UTF-8' |
I have debug the code and issue is with the FormUtils class in apache library. There is an open bug for for this issue. https://issues.apache.org/jira/browse/CXF-8347 Also there is an open pull request for the fix |
@Migara-Pramod Great finding! |
It is used in directly. It is called by the constructor in the HttpServletRequestFilter |
Describe the issue:
Authorization fails when sending access token in request body to /oauth2/userinfo
Steps to reproduce:
{
"error_description": "Bearer token missing",
"error": "invalid_request"
}
Expected behavior:
Authorization should succeed
Environment information:
The text was updated successfully, but these errors were encountered: