php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62429 checkOAuthRequest does not pass exceptions from oauth_generate_sig_base
Submitted: 2012-06-27 06:42 UTC Modified: -
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dlundgren at syberisle dot net Assigned:
Status: Open Package: oauth (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dlundgren at syberisle dot net
New email:
PHP Version: OS:

 

 [2012-06-27 06:42 UTC] dlundgren at syberisle dot net
Description:
------------
checkOAuthRequest does not pass exceptions when oauth_generate_sig_base raises an exception

Test script:
---------------
$oauthProvider = new OauthProvider();
$oauthProvider->consumerHandler('lookupConsumer');
$oauthProvider->timestampNonceHandler('lookupTimestampNonce');
$oauthProvider->checkOAuthRequest("/api/users", "GET");

Expected result:
----------------
An Exception with "Invalid url when trying to build base signature string" message

Actual result:
--------------
An Exception with "Signatures do not match" message

Patches

provider-c.patch (last revision 2012-06-27 06:43 UTC by dlundgren at syberisle dot net)

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 04:01:27 2019 UTC