- [Instructor] This course zooms in on authentication methods when working with a WordPress REST API. To get the most out of the course you need a firm understanding on how the WordPress REST API works, how to interact with it, and how to build solutions using the REST API, both within the context of WordPress and in external applications. All this is covered in the first course in the series, WordPress REST API. I'll be expanding on tools, techniques, and code examples from that course. So if you haven't already watched it, you should stop this course, go watch WordPress REST API, and then come back here to learn more about authentication.
In MAMP PRO you can assign a custom domain during setup. I've populated my WordPress site with some random content for the purposes of this course. You'll only need a couple of post with some text content, so you can just set your site up pretty much however you like. You can follow along using any code editor and browser. If you you want to match my environment exactly you need to install Atom, which you can get for free at atom.io and add the Atom Live Server extension. My browser of choice is Chrome and I'll make extensive use of the Chrome developer tools.
- What is authentication and when do you need it?
- Cookie authentication
- Creating a plugin for front-end editing
- Adding the front-end editing functionality using jQuery
- Limiting front-end editing to authorized users
- What is JWT authentication?
- Adding editing capability using Ajax
- OAuth 2 authentication
- Configuring JSO
- Making login and log out states meaningful