Book Image

WordPress Web Application Development

By : Rakhitha Nimesh Ratnayake
Book Image

WordPress Web Application Development

By: Rakhitha Nimesh Ratnayake

Overview of this book

Table of Contents (19 chapters)
WordPress Web Application Development Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Integrating API user authentication


Building a stable API is not one of the simplest tasks in web development. However, once you have an API, hundreds of third-party applications will be requesting to connect to the API, including potential hackers. So, it's important to protect your API from malicious requests and avoid an unnecessary overload of traffic. Therefore, we can request an API authentication before providing access to the user. Also, providing the API through SSL is almost a must to secure your API.

The existing API functions come built-in with user authentication; hence, we had to use user credentials in the section where we retrieved a list of projects and services. Here, we need to manually implement the authentication process for custom API methods. Let's create another API method for subscribing to the developers of the portfolio application. This feature is already implemented in the admin dashboard using admin list tables. Now, we will provide the same functionality for...