WP-API / OAuth1

OAuth server implementation for WP API
http://oauth1.wp-api.org/
331 stars 109 forks source link

0.4.2 change summary? #236

Open scottfennell-toptal opened 10 months ago

scottfennell-toptal commented 10 months ago

Hello,

I'm still debugging the issue, but my integration with this plugin seems to break when I update it to 0.4.2. I'm having trouble finding a summary of the changes. Is there one available?

I'm updating from version 0.3.0. I'm on the latest version of wp core.

Debug info from my use case, for what it's worth:

Request: {"headers":{"Authorization":"OAuth oauth_consumer_key="[redacted for github issue]", oauth_nonce="[redacted for github issue]", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1701705977", oauth_token="[redacted for github issue]", oauth_version="1.0", oauth_signature="[redacted for github issue]"},"timeout":10,"redirection":10,"user-agent":"LexBlog/NSFW; network/lxbp1stg; blog/1"}

Response: {"headers":{},"body":"{"code":"json_oauth1_signature_mismatch","message":"OAuth signature does not match","data":{"status":401}}","response":{"code":401,"message":"Unauthorized"},"cookies":[{"name":"__cf_bm","value":"[redacted for github issue]","expires":1701707778,"path":"/","domain":"wpenginepowered.com","port":null,"host_only":false}],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}

I confirmed that the redacted values are the same both before and after I update your plugin to 0.4.2 (other than the nonce / time based parameters)

I've isolated that the change occurs when I update this file, specifically: class-wp-rest-oauth1.php

stones commented 10 months ago

I am also receiving a 401 after upgrading to 0.4.3 from 0.3.0.

szaqal83 commented 10 months ago

I've reported an issue here #237.