HackerShackOfficial / Smart-Security-Camera

IoT security camera running open-cv for object detection 📹
561 stars 276 forks source link

Request adding basic auth to the flask server #1

Open Nocturnhabeo opened 7 years ago

Nocturnhabeo commented 7 years ago

This is untested but is an example of how to add basic auth to your flask server. Please consider it as otherwise this exposes someone to spying if they are on an unsecured network.

bocklucas commented 7 years ago

Hey Nocturnhabeo, tried adding the 5 lines to the main.py and on running got an error from the new import statement. To fix it i added flask_basicauth to the requirements.txt and reran the requirements.txt install. It now runs but im not sure if im doing something wrong cause theres no login for me it just takes me straight to the feed. Loving the idea of making the connection secure keep it up!