From 389331fb46cb973a6f3b5f57158214c8f29ea9ef Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 21 Apr 2021 23:13:27 +0300 Subject: [PATCH] fixup! Replace flask-simpleldap with flask-ldap-auth. --- README.md | 4 ++-- app.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2af193b..ceb224c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/app.py b/app.py index 9518698..8a4dc2e 100644 --- a/app.py +++ b/app.py @@ -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)) -- GitLab