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.

Add JWT support with a plugin

Add JWT support with a plugin - WordPress Tutorial

From the course: WordPress: REST API

Start my 1-month free trial

Add JWT support with a plugin

- [Instructor] JWT authentication for the Word Press Rest API is added through a plugin. And you can install that plugin directly from the Word Press plugin directory by going to the backend of Word Press, going to plugin and add new, then searching for JWT. And here you see you'll get a bunch of options so I'll just install the first one, the one that's called authentication for WP Rest API by Enrique Chavez. Click install. And activate. And now we need to make a couple of changes to the settings in Word Press and also on our server to get everything to work. All that information is on the plugin page on wordpress.org. If you scroll down you'll see first we need to allow HTTP authorization headers and that's done in .htaccess if you have an .htaccess file. If you're on WP engine you have to do it using this line down here, but I have a .htaccess file so I'm going to copy these two lines here. Go into my…

Contents