Enable Basic Authentication For RESTful Web-service
Learn how to enable Basic Authentication for your RESTful web-service
In the last post, I had posted about how to create a RESTful web service using PHP & MySQL.
In this post, I will show you how you can secure the same API using Basic Authentication. With Basic Authentication, you'll be able to add or retrieve your To-Do's only after entering valid credentials.
Please not that these steps are based on Apache/2.4.34running on macOS Mojave 10.14.5. Depending on your OS, your steps might vary slightly.
[Read More]