REST API token-based authentication

Moving forward with developing REST APIs that require authentication, we will state that because the authentication itself will occur by some external service over HTPP dispense tokens will be used to avoid a repeated calling in the authentication service. In case you are debating using this method for basic HTTP Auth requests it is important to say that the advantage of a basic Auth solution is that you don't have to make a full-round request to the server and back before the requests for content can begin. These tokens can potentially be a lot more flexible and it will seem more appropriate to use the OAuth authentication in some contexts. Going further with authentication, it is important to say that base ...

Get Learning WordPress REST API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.