Skip to content
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

Ill-formed additional OAuth headers. #230

Open
GoogleCodeExporter opened this issue Apr 6, 2016 · 0 comments
Open

Ill-formed additional OAuth headers. #230

GoogleCodeExporter opened this issue Apr 6, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Sending the setOAuthParameterName:withValue: message to an instance of 
OAMutableURLRequest causes the OAuth headers to be ill-formed.

What steps will reproduce the problem?
1. Follow the steps in this tutorial: 
http://code.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer until you set 
the HTTP method.
2. Add the line [request setOAuthParameterName:@"oauth_extra" 
withValue:@"value"];
3. Continue onward with the tutorial to the point where you can make a request.
4. Using Wireshark, examine the headers on the request when you run the program.

What is the expected output? What do you see instead?

The headers should have the form: Authorization: OAuth realm="stuff", 
oauth_consumer_key="stuff", oauth_signature_method="stuff", 
oauth_signature="stuff", oauth_timestamp="stuff", oauth_nonce="stuff", 
oauth_version="1.0", oauth_extra="value"

Instead, they read like that up until the end, which goes: ..., 
oauth_nonce="stuff", oauth_version="1.0"oauth_extra="value"

This causes the headers to be ill-formed, which is problematic when interacting 
with some OAuth providers e.g. the Twitter API.

What version of the product are you using? On what operating system?

I'm using the OAuth Objective-C library checked out from the Subversion 
repository at r1269 on OS X 10.8 Mountain Lion with XCode 4.4.1.

Please provide any additional information below.

N/A

Original issue reported on code.google.com by [email protected] on 27 Aug 2012 at 3:26

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

No branches or pull requests

1 participant