我正在尝试使用oAuth通过SSL访问WooCommerce REST API的V3版本。 p>
正在运行WooCommerce的Wordpress实例使用AWS Elastic Beanstalk托管。 p>
尝试使用oAuth时,我收到了401响应。 n请求的URL是
作为回复的一部分 我得 p>
我知道我使用的消费者密钥和秘密很好,因为我已经能够在对同一网站的基本认证请求中成功使用它们。 p>
I 已经在我的开发环境中测试了与非ssl地址相同的oAuth代码(这不是在AWS上),它工作得很好。 p>
我知道WooCommerce说你必须在http上使用oAuth来处理请求 地址 - 但与你不能在https上使用oAuth请求的情况相反? 或者我需要配置服务器端,这可能在我的开发环境和AWS上的生产环境之间有所不同吗? p>
div> https://www.example.com/wc-api/v3/products?oauth_consumer_key= [my_key]& oauth_nonce = [nonce]& oauth_signature = [signature ]%3D& oauth_signature_method = HMAC-SHA1& oauth_timestamp = 1453572852& oauth_token =& oauth_version = 1.0& filter%5Blimit%5D = 500 code> p>
[WWW-Authenticate] => Array
(
[0] => Basic realm =“WooCommerce API。在用户名字段中使用消费者密钥,在密码字段中使用消费者密钥”
)
code> pre> \ n