Hello
I have a local instance of WP and am trying to generate the access token to use in a REST API app, which uses wpcom. wpcom requires oauth. I’ve got the app working on a site on wordpress.com. But I can’t get it to work on the local instance. I’m getting the same error as above from Postman.
When I generated the access token from wordpress.com, I used the wpcom_oauth example app. However, it won’t work at all on the local instance. I have checked the Authorization Code checkbox for the client. I have tried with and without enabling the Implicit option.
For Postman setup, I’m following the instructions on wp oauth docs. The error is:
{
"error": "unauthorized_client",
"error_description": "The grant type is unauthorized for this client_id"
}
when I set the grant type to “password” as instructed by the above link.
The message returned to Postman for the grant type of “Authorization Code” is:
{
"error": "unsupported_grant_type",
"error_description": "Grant type \"Authorization Code\" not supported"
}
and for authorization_code
{
"error": "invalid_request",
"error_description": "Missing parameter: \"code\" is required"
}
Please can you explain how we are supposed to create an access token with the community version of WP Oauth Server?
Thanks
Praful