WP-API / example-client

MIT License
79 stars 20 forks source link

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

Open benbasha opened 8 years ago

benbasha commented 8 years ago

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

Critter commented 8 years ago

Did you ever get this sorted?

ghost commented 7 years ago

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

Critter commented 7 years ago

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]

miken01 commented 7 years ago

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

OAuth signature does not match

AymanEG commented 7 years ago

i tried the htaccess , still same error

nem95 commented 7 years ago

@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

Jany-M commented 7 years ago

The htaccess rule (above everything else) fixed it.

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

I'm encountering this, albeit on an Nginx server