I want to add authentication to the web server for video (module4, unit2 in your book), but I don’t know in what part of the code this should be done.
I noticed that in the first 3 modules the liberary <ESPAsyncWebServer.h> is used and in module 4 <esp_http_server.h>. Can you explain what is the difference between these libraries.
At the moment, we don’t have any example to add authentication to the ESP32-CAM web server.
The ESPAsyncWebServer is an asynchronous web server library. It provides an easy way to handle HTTP requests with the ESP32 and easily send HTML text, CSS, and images. Like the image web servers we build.
Learn more about that library: https://github.com/me-no-dev/ESPAsyncWebServer
However, we were not able to “create” a video streaming code using that library. So, we’ve started from the esp_http_server library that is the library used on the video streaming example, to build different projects with video.
That’s why the video examples use that library.
Thanks for your reply.
I think for security reasons the possibility to add a login option for accessing the ESP32-Cam over internet is nescessary. Would you consider to add this to the ESP32-CAM project?
Yes, you’re right.
We’ll try to come up with a solution for that in the next eBook update.
Thanks for your interest.