Skip to content
22decembre edited this page Sep 20, 2014 · 1 revision

Simple

The basic auth system is a simple login/password combinaison. You set it up in the config.py :

# use of flask-basicauth : AUTH='basic'
BASIC_AUTH_USERNAME = 'john'
BASIC_AUTH_PASSWORD = 'matrix'

LDAP

It's planned to make an ldap auth. For this to work, python-ldap (the python package) must be ok. It depends on the openldap and sasl dev system package. Under debian and derivatives, it's libsasl2-dev libldap2-dev. Install them (system command) :

apt-get install python-ldap libldap2-dev libsasl2-dev

Then the flask package. This time, you need to do it in the virtualenv (python command).

cd virtualenv
source bin/activate
pip install flask-simpleldap

to be continued...

Clone this wiki locally