Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Headless WordPress REST API Authentication
Rating: 4.4 out of 5(64 ratings)
800 students

Headless WordPress REST API Authentication

Learn how to connect decoupled websites and applications with WordPress using JWT Auth and JavaScript
Created byZac Gordon
Last updated 11/2018
English

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

5 sections16 lectures2h 44m total length
  • An Introduction to Authentication with the WordPress REST API8:52

    Learn how to authenticate decoupled apps with the WordPress REST API using JWT tokens, compare basic auth and OAuth, and access protected routes tied to user roles and permissions.

  • What We Will Build2:10

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