Making an Authenticated Request to the WP REST API
Authorizing against the WordPress REST API can be done through header authentication. This request is very similar to basic authentication. The WP OAuth Server plugin adds Bearer Token support to the WP REST API allowing access tokens to securely make requests on a users behalf without exposing any sensitive information. Simply pass a valid access token in the header as a Bearer Token during any request to the WP REST API.
The authorization works by using the current_user_can check for capabilities. When an authorization header is sent, the system applies the correct user and their capabilities to the request as if they are logged in.
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.