How to authorize a post request using oauth2 without user credentials when WP REST API is disabled to anonymous users?

I’m running a wordpress blog 4.7.4 and i’m using this plugin for protected API access again unregistered users and i’m using this plugin OAUTH 2.0

i can use API to login an user :

when user already exist with grant_type = password

i can’t use the API to register an user :

using grant_type=password doesn’t work because user not already exist. I tried to use grant_type=client_credentials but i could not because of the DISABLE JSON API plugin.

How can i authorize a request with grant_type=client_credentials with DISABLE JSON API enable?

Or is there another way to disable API for unregistrered users but with grant_type=client_credentials working?

Read more here: How to authorize a post request using oauth2 without user credentials when WP REST API is disabled to anonymous users?

Leave a Reply

Your email address will not be published. Required fields are marked *