I am using the below in my wordpress for developing a oauth based application.
WP-API (api generating plugin)
WP API OAuth1 (oauth server)and
WP API client-cli (oauth client library)
at the below url is for the wp client-cli
https://man-sudarshann-1.c9.io/api/
I am getting this error OAuth signature does not match when I click the AUTH button for autherizing the request. I have tried all the fixed for this over the internet. but none helped
signature generated and sent from api client is 3ko8DUsUUEB4Hqaks68vGYnTjQM=
signature generated in server side is 5rPsul6zplhfNvb4o+Mz11O/OyI=
so the below code is failing
if ( ! hash_equals( $signature, $consumer_signature ) ) {
return new WP_Error( 'json_oauth1_signature_mismatch', __( 'OAuth signature does not match' ), array( 'status' => 401 ) );
}
I guess the API console is generating wrong signature. Please help me in solving this issue.