roguesupport / oauth-php

The original OAUTH standard implemented in PHP (Historic Record)
MIT License
0 stars 0 forks source link

RSA-SHA1 becomes RSA_SHA1 when sent to server #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make some stub implementations of the missing functions in
OAuthSignatureMethod_RSA_SHA1.php
2. Attempt an OAuth token request

What is the expected output? What do you see instead?
OAuth server should accept signature method.  However, the signature method
is rejected because the code has changed it to RSA_SHA1; the hyphen has
become an underscore.

What version of the product are you using? On what operating system?
This is revision 75 on debian linux.

Please provide any additional information below.
The code which converts the signature method into a class filename changes
all non-alphanumeric characters into underscores.  This remains the case
when the variable is passed to the server.  A patch is attached which
rectifies the problem by introducing a temporary variable.

Original issue reported on code.google.com by gmk...@gmail.com on 25 Jan 2010 at 12:00

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed on SVN. Thanks.

Original comment by brunobg%...@gtempaccount.com on 27 Jan 2010 at 7:53