-
Notifications
You must be signed in to change notification settings - Fork 9.4k
OAuth token request returns HTTP/1.1 401 Unauthorized #3185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here are some more info on the request:
These values were extracted from Still unauthorized... :/
|
Please read the message:
Please provide the according entries form your web-server logfiles (access and error logs normally) that are related to your request. They contain more information. |
Here are the logs related to the request : access log:
error log:
|
Try to increase timeout to 120 and try to use CurlClient instead of StreamClient. |
Ok so I tried it with CurlClient which got me past the 401 response but then I got the same issue as this post: [API] OAuth1.0 request token request failing / Consumer key has expired (even though the timezone is the same on the client and server :/) After setting the oauth config expire to crazy high values it worked with both CurlClient and StreamClient... Here are the values I set which I DO NOT recommend (way too high)
|
Ok so I can confirm, it seems to come from the config values: Scenario 1: StreamClient + Default values:
Result 1: Scenario 2: CurlClient + Default values
Result 2:
Scenario 3: StreamClient + Custom values
Result 3: Scenario 4: CurlClient + Custom values
Result 4: |
@LTC-fperrin |
[Plankton] Magento 2.2.6 Publication
Hello,
I was trying to setup a OAuth integration but I can't seem to get past this problem :/
I was following a book's tutorial with sources for the mini-OAuth client from this repository:
I then tried using the OAuth client from this repository instead:
Whatever I do I get the following error:
From what I gather from googling it, it might have something to do with the fact that I'm not using HTTPS for the tests ?
Any help would be appreciated
Thanks
The text was updated successfully, but these errors were encountered: