Adam Jablonski created CXF-5554:
-----------------------------------
Summary: OAuth1 params not read from POST on Content-Type:
application/x-www-form-urlencoded; charset=UTF-8
Key: CXF-5554
URL: https://issues.apache.org/jira/browse/CXF-5554
Project: CXF
Issue Type: Bug
Components: JAX-RS Security
Affects Versions: 2.7.6
Reporter: Adam Jablonski
I've tracked the problem down to method: OAuthUtils.addParametersIfNeeded()
{code:java}
if (params.isEmpty()
&&
MediaType.APPLICATION_FORM_URLENCODED.equals(oAuthMessage.getBodyType())) {
{code}
oAuthMessage.getBodyType() returns full header value including additional
parameters, so "Content-Type: application/x-www-form-urlencoded; charset=UTF-8"
does not match MediaType.APPLICATION_FORM_URLENCODED
This form of Content-type header is valid as stated in:
https://tools.ietf.org/html/rfc2616#section-3.7
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)