Comments (4)
Ah looks like the form is making some assumptions about the return type, which could potentially have user_groups
omitted:
flask-ldap3-login/flask_ldap3_login/__init__.py
Lines 398 to 400 in 3cf0faf
Should be a relatively simply fix to the forms code, will try raise a fix later today.
from flask-ldap3-login.
The problem above also occurs for me. I have isolated the problem to the _save_user decorator not registering. This means the _save_user function stays None and this causes the NoneType error.
Any suggestion on how to make sure the _save_user decorator gets loaded?
EDIT:
@ciobancai
In order to fix this problem I had to import my User model into my _init_ file. This automagically sets the _save_user callback.
from flask-ldap3-login.
I have isolated the problem to the _save_user decorator not registering.
Looks like this is the exact problem - the stack trace above looks like a red-herring to me on second glance.
@ciobancai does the above solution solve your problem? I will assume so and close this issue, but if not please re-open.
from flask-ldap3-login.
Also, just a side note: after a long internal debate, I have made the difficult decision that I will no longer be actively maintaining this repo. I am now in the process of finding a new maintainer - if this is something that may interest you, you can find more details in the README
from flask-ldap3-login.
Related Issues (20)
- Add license information to setup.py HOT 1
- A message for a misconfiguration
- CSRF must be initialized HOT 4
- Logging: flask-ldap3-login adds the console handler to the root level logger HOT 3
- How to automatically add domain name to the username
- DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.4 HOT 14
- Drop support for Python 3.4
- Only cn attribute is working HOT 2
- Drop support for Python 2.7 HOT 1
- result.user_groups TypeError: 'NoneType' object is not callable HOT 3
- DeprecationWarning: Required is going away in WTForms 3.0, use DataRequired HOT 7
- AttributeError when login form does not validate. HOT 1
- TLS connection as default
- Authenticate flask app against multiple AD's HOT 2
- user data attributes are lists sometimes
- get_object() throws a KeyError exception when user not found HOT 2
- Unable to differentiate between broken connection and user not found HOT 2
- Inappropriate setup of Tls context within init_app() for default server. HOT 1
- get_user_groups() malforms CN causing false query results and empty user_groups HOT 1
- AttributeError: module 'wtforms.validators' has no attribute 'Required HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-ldap3-login.