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
0
votes
2 answers
How to verify password hash on Flask-Admin
When we register a new user with Flask-Admin it will automatically generate a password hash.
How to verify the hash..?
any similar method like check_password_hash on bycript, or like check_password_hash from werkzeug.security..?
I try this…

Tri
- 2,722
- 5
- 36
- 65
0
votes
1 answer
Adding a Flask user login requirement
I am using Flask-Security, which in turn uses Flask-Login. I have a site which requires that a user both confirm their email address AND subsequently be approved by an admin. Without both of these things, I don't want the user to be able to use the…

Nick K9
- 3,885
- 1
- 29
- 62
0
votes
3 answers
Email not sending on create_user
I am trying to use flask-security and have become helplessly stuck trying to send an email when create_user is called.
The user is being created. The roles are working, however, I can not find any documentation explaining how to send an email to…

jesseCampeez
- 97
- 10
0
votes
1 answer
Migrating inactive users to aws cognito
Currently, I'm using flask security to manage the Auth in my web app. I want to migrate the entire Auth to AWS Cognito. I saw the migration documentation here. But nowhere it says how to migrate users who are set as inactive.
What I need to do is…

Hanzal Salim
- 33
- 1
- 5
0
votes
1 answer
DB not changing when testing Flask-Security with peewe and PyTest
I just got into testing my flask application with pytest, and it mostly works as expected. Unfortunately the test uses the live DB instead a mock one. I'm quite sure this has to do with the fact, that flask-security is using peewee's…

leosok
- 302
- 1
- 5
- 15
0
votes
0 answers
Flask Security - how to change default registration email message
Working with Flask-Security & able to send email when user registers but not sure how to change the default message. I thought it would be in core.py where I see
'SEND_REGISTER_EMAIL': True,
'EMAIL_SUBJECT_REGISTER': 'Welcome'
but nothing in the…

JC23
- 1,248
- 4
- 18
- 28
0
votes
5 answers
Flask-Security force SECURITY_POST_LOGIN_VIEW to use HTTPS
I've run into an issue where the post-login redirect in Flask-Security is not keeping to HTTPS and is instead making an HTTP request. In some instances this is causing an error.
Ideally my nginx config would redirect all requests on :80 to :443…

Chase
- 3,009
- 3
- 17
- 23
0
votes
1 answer
Flask appbuilder how to replace registration form?
I want to be able to have users self-register but I want to be able to customize the registration form without having to change the default form inside the flask-app builder files.

Rafael Cenzano
- 58
- 10
0
votes
1 answer
Flask-Security, implement SECURITY_TRACKABLE feature in Blueprint
I'm using the SECURITY_TRACKABLE feature for Flask-Security, and in my custom API login request handler I am trying to make sure to commit the datastore changes, as required by the flask-security documentation on login_user().
My login code is…

andrea56
- 397
- 3
- 21
0
votes
0 answers
Flask-security defaults to MongoDB
I have an app with Flask security. It uses SQLAlchemy and MongoDB (pymongo)
I have this configured but when a DB interfering appears (from another app that also uses flask) I have the flask-security defaulting to MongoDB gear instead of SQLAlchemy.…

garmoncheg
- 867
- 11
- 26
0
votes
1 answer
flask security separating access data on flask admin
i have an aplication homestay reservation built with flask..
every homestay have an user login, this login built with flask-security and every owner of the homestay have role User.
and every user can input their homestay data with flask-admin.
but…

Tri
- 2,722
- 5
- 36
- 65
0
votes
0 answers
Is it possible to use same authentication token for two instances of flask-security?
I'm running two instances of flask app. For security, I'm using flask-security and flask-mongoengine. Both api instances has to work as a node to a load balancer. Now when I login using the first api, I get an access token, now I'm trying to hit the…

Rahul
- 3,208
- 8
- 38
- 68
0
votes
1 answer
flask profile page for users
I have a portal with different customers (landlord, tenant)
There is a registration page for them. When they register, I tag them appropriately using roles.
When they log in, the first thing they have to do is fill in their profile. For this, I…

vkk07
- 69
- 1
- 10
0
votes
0 answers
Not able to use Google Cloud Authentication instead of mail settings
So I am trying to configure flask security to send a confirmation email when I register but it doesn't seem to work. I want to use the credentials I generated from Google Cloud instead of setting up mail settings (MAIL_SERVER, MAIL_PASSWORD,…

Overflowed
- 134
- 2
- 9
0
votes
1 answer
Can I use GOOGLE_APPLICATION_CREDENTIALS instead of specific mail settings
I'm trying to set up email confirmation through Flask-security and I was wondering if I could use the GOOGLE_APPLICATION_CREDENTIALS that I got from https://console.cloud.google.com/apis/credentials/serviceaccountkey
instead of setting up mail…

Overflowed
- 134
- 2
- 9