marig345 / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

OAuth verifier problem #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When the consumer try to request an access token. I try to pass the
verifier string in the options array:
$oauth_verifier = $_GET["oauth_verifier"];
$tokens = OAuthRequester::requestAccessToken($consumer_key, $oauth_token,
$usr_id, 'GET',array("oauth_verifier"=>$oauth_verifier));
2. The requestAccessToken function is not send this parameter.
3. Then the server is not able to exchange the request token.

What is the expected output? What do you see instead?
The Consumer must send the oauth_verifier to the server

What version of the product are you using? On what operating system?
At revision: 34167
Consumer : Windows XP (WampServer)
Server : LAMP 
Please provide any additional information below.
A posible solution :
In the requestAccessToken function add this code:
if (isset($options['oauth_verifier']))
        {
            $oauth->setParam('oauth_verifier', $options['oauth_verifier']);
        }

Original issue reported on code.google.com by psotoul...@gmail.com on 26 May 2010 at 3:47

GoogleCodeExporter commented 9 years ago
Fixed on r128. Thanks a lot!

Original comment by brunobg%...@gtempaccount.com on 26 May 2010 at 7:10