From the course: WordPress: REST API

Unlock the full course today

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

Basic authentication (development only)

Basic authentication (development only) - WordPress Tutorial

From the course: WordPress: REST API

Start my 1-month free trial

Basic authentication (development only)

- [Instructor] Logging in on authenticating a user with WordPress itself is done through passing a username and password, and this can also be done in the REST API, but it's not recommended because it bypasses all reasonable security standards and is very insecure. For this reason, basic authentication should only be used in development environments when you're doing testing. Recording this course, I went back and forth on whether I should cover this at all, but in the end I chose to add in basic authentication because it provides a good starting point for discussing authentication on security. So just to re-iterate, what I'm about to show you is only for development environments. Do not use basic authentication on any live site or a site with public access, because it just opens the door for people to steal your username and password and gain access to your site. All that said, basic authentication can be enabled through…

Contents