example-client icon indicating copy to clipboard operation
example-client copied to clipboard

Received HTTP status code [400] with message "No OAuth parameters supplied" when getting temporary credentials.

Open benbasha opened this issue 8 years ago • 8 comments

WP-API and OAuth are installed on my site (empty wp site for testing rest api)

in the second step i got this error and cannot make it work.

all OAuth endpoints discovered are showing "No OAuth parameters supplied"

thanks

benbasha avatar May 04 '16 21:05 benbasha

Did you ever get this sorted?

Critter avatar Aug 31 '16 03:08 Critter

screenshot from 2016-09-14 17-37-16 I am also getting the same error... Any update how to resolved it ?

ghost avatar Sep 14 '16 12:09 ghost

I was able to fix the issue by swapping out a line in my .htaccess file to this:

RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

Critter avatar Sep 14 '16 15:09 Critter

This fixed my problem as well, but now I get an error that says...

OAuth signature does not match

miken01 avatar Oct 22 '16 16:10 miken01

i tried the htaccess , still same error

AymanEG avatar Nov 11 '16 01:11 AymanEG

@AymanEG try on postman, "add params to header" not selected, you should have url like this : https://www.wordpress.fr/oauth1/request?oauth_consumer_key=CLIENT_KEY&oauth_signature_method=HMAC-SHA1&oauth_timestamp=TIMESTAMP&oauth_nonce=A_NONCE_GENERATED_BY_POSTMAN&oauth_version=1.0&oauth_signature=SIGNATURE

nem95 avatar Jan 05 '17 21:01 nem95

The htaccess rule (above everything else) fixed it.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

Jany-M avatar Feb 08 '17 04:02 Jany-M

I'm encountering this, albeit on an Nginx server

tomjn avatar Aug 29 '17 02:08 tomjn