From the course: WordPress: REST API
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
JWT: JSON Web Token authentication - WordPress Tutorial
From the course: WordPress: REST API
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.