wbml / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

Ill-formed additional OAuth headers. #230

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 lukas...@gmail.com on 27 Aug 2012 at 3:26