Skip to content
Snippets Groups Projects
Commit 389331fb authored by nimrod's avatar nimrod
Browse files

fixup! Replace flask-simpleldap with flask-ldap-auth.

parent 8084aa31
No related branches found
No related tags found
No related merge requests found
Pipeline #1128 passed
......@@ -7,9 +7,9 @@ LDAP authentication webserver to use with Nginx' auth\_request.
## Configuration
All of the configuration should be done with environment variables. For the
complete list see <https://flask-simpleldap.readthedocs.io/en/latest/#configuration>
complete list see <https://github.com/drowolath/flask-ldap-auth#usage>
and
<https://flask.palletsprojects.com/en/1.1.x/config/#configuring-from-environment-variables>.
<https://flask.palletsprojects.com/en/1.1.x/config/#builtin-configuration-values>.
## License
......
......@@ -2,8 +2,8 @@
# pylint: disable=import-error
import os
from flask import Flask, token
from flask_ldap_auth import login_required
from flask import Flask
from flask_ldap_auth import login_required, token
app = Flask(__name__)
app.config["SECRET_KEY"] = os.getenv("SECRET_KEY", os.urandom(16))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment