Headless WordPress REST API Authentication
4.4 (26 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
324 students enrolled

Headless WordPress REST API Authentication

Learn how to connect decoupled websites and applications with WordPress using JWT Auth and JavaScript
4.4 (26 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
324 students enrolled
Created by Zac Gordon
Last updated 11/2018
English
English [Auto-generated]
Current price: $69.99 Original price: $99.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3 hours on-demand video
  • 1 article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to setup WordPress to handle decoupled authentication
  • How to make authenticated WordPress REST API call
  • How to use JSON Web Tokens (JWT) and JavaScript for decoupled authentication
  • How to store authentication data in secure cookies
  • How to handle login and logout forms and processes
  • How to add, edit and delete content via the WordPress REST API
Course content
Expand all 16 lectures 02:44:46
+ Setting Up the Project
5 lectures 43:36
Setting Up WordPress for Authentication
04:33
The Project Starter Files
09:23
Updating Header via API
10:30
Listing Posts via API
09:46
Showing Single Post from State
09:24
+ Authenticating
4 lectures 42:55
Reminder to Setup WordPress
00:15
Authentication Setup
24:43
Logout Form
06:43
+ Adding, Editing and Deleting
4 lectures 01:04:40
Notices
09:50
Editing Content
21:58
Deleting Content
09:05
+ Review
1 lecture 02:33
Course Review and Next Steps
02:33
Requirements
  • Basic JavaScript Skills
  • Basic WP REST API Skills
Description

Many developers and top agencies have learned how to use WordPress as a headless CMS, where WordPress stores the content, but Modern JavaScript driven websites and applications display the content and provide customized interactivity.

One of the key components to using WordPress as a Headless CMS involves authenticating to allow full read, write and delete access to everything the WordPress REST API provides.

In this course you will learn the following:

  • The different types of authentication available

  • How to work with the JWT Authentication Standard

  • How to setup WordPress to offer authentication

  • How to write secure JavaScript to authenticate

  • How to build login and logout forms

  • How to add, edit and delete content using authenticated WordPress REST API calls

Throughout the course we will build a custom decoupled project using simple JavaScript, but all of the code can be easily converted over to work with React, Vue, Angular and other JavaScript frameworks.

Who this course is for:
  • Theme Developers who want to build decoupled sites powered by WordPress and JavaScript
  • Plugin Developers who want to build functionality that works outside of the WordPress admin
  • App Developers who want to build JavaScript apps powered by WordPress
  • Any Developer looking to use WordPress as a data store