def create_app(self): app = flask.Flask(__name__) LDAP = dict(BIND_DN='x=%(username)s') app.config.update(LDAP=LDAP) app.config['SECRET_KEY'] = 'abc123' mgr = LDAPLoginManager(app) mgr.save_user(self.save_user) return app
def create_app(self): app = flask.Flask(__name__) app.config['DEBUG'] = True app.config['TESTING'] = True app.config['WTF_CSRF_ENABLED'] = False ldap_dict = dict(BIND_DN='x=%(username)s') app.config.update(LDAP=ldap_dict) app.config['SECRET_KEY'] = 'abc123' mgr = LDAPLoginManager(app) mgr.save_user(self.save_user) return app