From the course: WordPress: REST API

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Authentication and authorization

Authentication and authorization - WordPress Tutorial

From the course: WordPress: REST API

Start my 1-month free trial

Authentication and authorization

- [Instructor] Anytime you want to do something beyond accessing the public data in a WordPress site through the REST API, say access private data or create or update content or delete something, you need to submit an authenticated request and have the correct authorization to perform that action. The operative words here are authentication and authorization. Think of an office environment. Some rooms are open to the public, and some rooms are locked. You can use an access badge to authenticate yourself and gain entry into some of these locked rooms. That badge holds information about who you are, and that information is tied to a system that knows what rooms you're authorized to enter. So every time you want to enter a room, you have to authenticate yourself using the badge and your credentials describe what rooms you have authorization to access. that authorization can be changed at any time to give you access to more…

Contents