DipenPanchasara / oauthconsumer

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

Request token not added to the request URL #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ask a request token from the OAuth provider as described in the wiki
2. Call the openURL method as described in the wiki
3. The provider (yammer.com in this case) said: "no request token found"

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

I expected to see the token in the URL. Not sure if it's passed as a POST 
request? The URL didn't 
show the the token in the URL so it's missing if it should be a GET request.

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

Head version from SVN on Mac off course.

Please provide any additional information below.

I fixed it by adding the request token to the URL (the GET way that is). Not 
sure if that's correct 
but it seems to work. This could be a Yammer problem as well, don't know. Here 
is the code

    NSString *urlString = [NSString stringWithFormat:kConsumerAuthorizeURL, 
requestToken.key];
    NSURL *url = [NSURL URLWithString:urlString];
    [[NSWorkspace sharedWorkspace] openURL:url];

Original issue reported on code.google.com by hamfil...@gmail.com on 15 Nov 2009 at 4:06

GoogleCodeExporter commented 9 years ago
hi i was having the same problem. but after looking your comment i tried and 
succeeded. i modified your code a little bit. its--
NSString *urlString = 
[NSString 
stringWithFormat:@"%@?oauth_token=%@"'kConsumerAuthorizeURL,requestToken.key];
    NSURL *url = [NSURL URLWithString:urlString];
        [[NSWorkspace sharedWorkspace] openURL:url];

it is working fine.
thanks

Original comment by ballia.1...@gmail.com on 18 Jun 2012 at 12:44