I am using the Jersey oauth libraries for an implementation of 2-legged
oauth. However, I am having problems with signatures on messages that
I are POSTed. I have not had any errors with GET methods but I cannot
seem to find a way for a POST to generate a correct signature.
I have written two tools, one in PHP and one Python to check the
signature and both of the tools generate a signature that matches what
the server (PHP) generates on the server side to compare. I have not
been able to figure what is happening in the Jersey oauth code to
generate the signature but the signature does not match any other tool
I have used. I did see a bug report:
http://java.net/jira/browse/JERSEY-433
which looks suspiciously like my problem so I created a POST that does
not have any characters that need extra encoding but still have the
same problem so I don't believe that ticket address my problem but it
does sound related. Being new to Jersey I am not sure how to log what
is happening in detail when the signature is being built, I would
really like to see what the base string that it generates. Is there a
way to log that?