Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

POST using oauthv1 not working in prepareOAuthv1RequestUsingConsumerKey #8

Open
kkaliher opened this issue Aug 7, 2014 · 3 comments

Comments

@kkaliher
Copy link

kkaliher commented Aug 7, 2014

I saw in the implementation that POST params were extracted from the URLRequest, then parsed into a NSDictionary, then that was passed to the signature creation method. But the resulting signature was incorrect.

I wrote a new method for NSMutableURLRequest+YOAuth.h that also accepts params as a NSDictionary so this step can be skipped, and that solved things. These params are then sent straightaway to YOAuthv1GetAuthorizationHeader.

@sprhawk
Copy link
Owner

sprhawk commented Aug 8, 2014

Do you mean the calculation of signature is wrong or the way to compose the signature string is wrong ?

@kkaliher
Copy link
Author

it looks like the way the param body is converted back into an NSDictionary didn't work correctly.

@sprhawk
Copy link
Owner

sprhawk commented Aug 15, 2014

@kkaliher could you give me the whole body parameters and URL (including query uri) as a reference?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants