luisfernandocs
Forum Replies Created
-
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointThanks Justin.
Using the following posting worked properly.
curl -u ClientID:ClientSecret -L http://localhost/wordpress/?oauth=token -d 'grant_type=authorization_code&code=xxx&redirect_uri=http://localhost/testThank you very much.
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointYeah, thanks.
Now the return in Postman is:{ "error": "unsupported_grant_type", "error_description": "Grant type \"password\" not supported" }I using like the tutorial in: https://wp-oauth.com/knowledge-base/using-postman-and-wp-rest-api/
grant_type = password
But I believe in my linux o.s will work using cURL.
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointI tried in Postman on a Windows O.S, like the tutorial, with the Basic Auth, and I receive the same error.
When I check the access log:
::1 - - [25/Mar/2016:18:46:55 -0300] "POST /wordpress?oauth=token HTTP/1.1" 301 347 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36" ::1 - HReing370cAxrDoe12AsBnKTv7ZNBe [25/Mar/2016:18:46:55 -0300] "GET /wordpress/?oauth=token HTTP/1.1" 405 178 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36"After POST, a new request, but GET.
Sorry, I’m new in Oauth2.
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointUsing:
I receive:
http://localhost/test/test.php?code=2csyqfnlerait4gvtdwok3m56hk6jqncbmlrdkox
Then using:
curl -L -u client_id:client_secret http://localhost/wordpress?oauth=token -d ‘grant_type=authorization_code&code=2csyqfnlerait4gvtdwok3m56hk6jqncbmlrdkox’
I receive:
{“error”:”invalid_request”,”error_description”:”The request method must be POST when requesting an access token”,”error_uri”:”http:\/\/tools.ietf.org\/html\/rfc6749#section-3.2″}
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointUsing -L flag:
{“error”:”invalid_request”,”error_description”:”The request method must be POST when requesting an access token”,”error_uri”:”http:\/\/tools.ietf.org\/html\/rfc6749#section-3.2″}
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointNow for the access token , I have the following error:
301 error (Moved Permanentyly)using this:
curl -u client_id:client_secret http://localhost/wordpress?oauth=token -d ‘grant_type=authorization_code&code=xxx’is correct to use:
http://localhost/wordpress?oauth=tokenForum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointThank you Justin.
I tried with
http://localhost/wordpress?oauth=authorizeand the url changed tohttp://localhost/wordpress?oauth=authorize?response_type...Then I changed the url to
http://localhost/wordpress?oauth=authorize&response_type...The problem was the ” ? ” before response_type . The URL is automatically generated by php plugin I’m using.
Now I get the Authorization Code.
Later I will try to get the access token!
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] localhost endpointHi Justin,
Thank you.
Settings-> Permalinks and check and option other than default.
Same errorSettings-> Permalinks and check and option default.
Error 404, too.In terminal:
php test.phpAppears “Redirect”.