Replies: 3 comments 1 reply
-
In theory could I extend Datastore and UserDatastore to make LDAPUserDatastore using ldap3? |
Beta Was this translation helpful? Give feedback.
-
lets think about this. Flask-Security really is based around having its own ORM and having a record of registered users. So for example the existing oauth/social integration enables authenticating EXISTING app users with oauth. Doing auto-registration should also be doable with the above concept. Ok - authorization - I can think of 2 ideas - first of course - take the result of the LDAP lookup and populate the appropriate roles/permissions in Flask-Security ORM. |
Beta Was this translation helpful? Give feedback.
-
After trying a few different approaches, this is what I came up with for authn (I still need to test authz). It seems to work so far but still needs to be fully tested. It's basically what you recommended, I used flask-ldap3-login's login form and in the The only thing I'm unsure of is the password in Flask-Security's ORM. When I call |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to use flask-LDAP3-login or something similar with flask-security? Ideally the LDAP server would be used for authentication and authorization.
Beta Was this translation helpful? Give feedback.
All reactions