Flask-Security is a Flask extension which adds basic security and authentication features to your Flask apps quickly and easily. It additionally bootstraps your application with various views for handling its configured features to get you up and running as quick as possible.
Questions tagged [flask-security]
319 questions
4
votes
0 answers
Flask-Dash integration with user authentication
I want to create a dashboard using Plotly's dash framework on flask framework integration. Where I want to add token-based user authentication in the flask. after successful authentication, dash app attached to flask and display on browser…

Amar Kumar
- 43
- 5
4
votes
0 answers
Flask security doesn't throw any errors
I'm trying to display the errors flask-security should generate when there's a failed login, or improper registration or whatever, but it really appears the errors are not even generated in my project.
I'm using a custom form helper display template…

S.Comeau
- 61
- 9
4
votes
0 answers
How do I configure a custom data store for Flask-Security?
I would like to use Flask-Security with RethinkDB, but I cannot get my custom RethinkDBUserDatastore to work properly. Below is the code I've created for the custom data store, plus the adapted example app from the Flask-Security…

Nicholas Tulach
- 1,023
- 3
- 12
- 35
4
votes
1 answer
Flask-security: where does "current_user" comes form?
This is most probably a stupid question, but still I can't find an answer.
Documentation for Flask-Security says:
If there are only certain times you need to require that your user is logged in, you can do so with:
if not…

AlexVB
- 217
- 4
- 11
4
votes
0 answers
Edit response object of login in flask-security
I am making a small app which requires login functionality. I am using flask for making api's and flask-security to have login feature.
Login feature is working fine, but I need response object in some customised form.
Right now I am getting…

yugantar kumar
- 1,982
- 1
- 23
- 33
4
votes
1 answer
Flask Security unauthorized callback
I am working with the Flask-Security extension and can't for the life of me figure out where in the extension I can pass in an unauthorized handler at the time the extension is initialized. This is important to me because I don't want to redirect a…

user2521226
- 41
- 1
- 4
4
votes
1 answer
Restricting ajax call only to logged in user in Flask
I am trying to restrict a ajax call only to logged in users. Typical use case is posting blogs, only logged in user can submit posts, else user should be redirected to /login endpoint. I am using flask security. I can do the same by not using…

ankur singh
- 103
- 1
- 7
4
votes
1 answer
Flask-Admin Role based resource permissions
I am creating a Flask-Admin app that requires checking permissions to View, Edit & Delete certain rows in a table.
i.e, I would like to:
List only rows where the User ID matches the Owner ID of the row
Let the user Create a row if they have a…

Rafael
- 1,018
- 1
- 10
- 18
4
votes
4 answers
Admin(only) registration of users, Flask-Security
I'm currently building a login for a webapp using Flask-Security (which includes Flask-WTForms, Flask-SQLalchemy and Flask-Login). I've been able to fairly painlessly set up the majority of my login flow, including forgotten password; however I want…

RamiMac
- 211
- 2
- 16
4
votes
2 answers
Assigning group permissions in Flask
I have a Flask app that uses Flask-Security and MySQL. Unfortunately, Flask-Security does not provide group/multi-tenant management (https://github.com/mattupstate/flask-security/issues/285).
I would like to implement the following:
At login the…

spitz
- 658
- 1
- 8
- 19
4
votes
2 answers
Flask SQLAlchemy Database with AWS Elastic Beanstalk - waste of time?
I have successfully deployed a Flask application to AWS Elastic Beanstalk. The application uses an SQLAlchemy database, and I am using Flask-Security to handle login/registration, etc. I am using Flask-Migrate to handle database migrations.
The…

b_g
- 299
- 1
- 4
- 14
4
votes
1 answer
Flask Flask-Security with GAE ndb?
I am building and hosting my application on the Google App Engine with Python on Flask.
And now I want to use the flask-security extension and realized there isn't much resources to start with under my configuration, which is a bit surprise to me as…

Ted Xu
- 1,095
- 1
- 11
- 20
4
votes
1 answer
Why does Flask-Security Cause a new KVSession Record for Each Request?
I'm trying out using Flask-KVSession as an alternative session implementation for a Flask web site. I've created a test website (see Code 1 below). When I run this, I can use the browser to store values into the session by navigating between the…

Mark Hildreth
- 42,023
- 11
- 120
- 109
4
votes
2 answers
How to confirm user created by create_user in flask security mongoengine app?
I have a python flask app using mongoengine and flask-security built up from the examples to expose all of the confirmation, registration, tracking, and recovery functionality.
Everything works except that a user created imperatively in the code…

David Watson
- 3,394
- 2
- 36
- 51
3
votes
1 answer
flask-security - admin create user, force user to choose password
Using flask-security, I want my flow to be similar to as follows:
admin creates user
admin sends user notification email they've been created
user uses link in notification email to set password
I tried using the forgot_password view from the…

Lou K
- 1,128
- 2
- 12
- 31