I get an Exception on my production server when i try to instanciate the class “OAuthProvider” from pecl package oauth.
try {
$oauth = new OAuthProvider();
} catch(Exception $e) {
// Get the error here
}
The error message is : “Unknown signature method”
Have anyone got this error ?
OAuthProvider looks for the oauth_signature_method in either the Authorization header or REQUEST params (respectively) if you run a non-CLI SAPI.
Under the CLI SAPI you can set the parameters in the ctor: