dcai / airnotifier

Push Notifications Server for Human Beings.
Other
593 stars 187 forks source link

Adding optional MongoDB authentication step #200

Closed DrCuriosity closed 5 years ago

DrCuriosity commented 5 years ago

Added to airnotifier.py, install.py, upgrade.py.

To support better application security, this code will allow Airnotifier to authenticate as a user on a secured MongoDB database setup.

It's designed with fallbacks so that it will only attempt authentication when airnotifier.conf contains authentication details. Otherwise, it will continue without attempting authentication.

Sample/docs for config settings have been added to airnotifier.conf-sample.

Please let me know if there's anything you'd like me to amend.