From the course: WordPress: REST API

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JWT: JSON Web Token authentication

JWT: JSON Web Token authentication - WordPress Tutorial

From the course: WordPress: REST API

Start my 1-month free trial

JWT: JSON Web Token authentication

- [Narrator] When you build an application that uses the REST API from outside the context of WordPress, you need to deploy more advanced forms of authentication, and one such authentication method is JWT, or JSON Web Tokens. JWT is a tool designed to securely communicate JSON data between a source and a client, which in our case would be WordPress and a third-party app. As I explained earlier, when you build a standalone application commonly referred to as a client that lives outside the context of WordPress, you need to add some additional steps to the authentication process to ensure actions performed on the REST API are secure and that only accounts with the correct level of authorization can actually perform these acts. In WordPress, JWT solves this through a multi-step process, and to get it all to work you first have to add JWT support using a plugin, then add a secret key to wp-config.php, and finally configure…

Contents