Questions tagged [flask-security]

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.

319 questions
0
votes
1 answer

flask-security expected des_crypt hash, got des_crypt config string instead

I'm using Flask-Security to implement an authentication system. Here is the code I use coming from the document, I've only added SECURITY_PASSWORD_HASH and SECURITY_PASSWORD_SALT configs: from flask import Flask, render_template from…
doingmybest
  • 314
  • 4
  • 16
0
votes
1 answer

Flask-Security error: "ValueError: too many values to unpack"

I have setup a flask-security app, but I'm getting an error creating users and resetting passwords. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1997, in __call__ return…
Kresten
  • 810
  • 13
  • 36
0
votes
1 answer

Is flask-security concerned with User table only?

Am asking a very simple, rather a silly, question about flask-security. I have read docs, researched stackoverflow questions, but I really didn't get anything except that - Flask-security handles login/logout of the Users, along with certain other…
Norris
  • 1
  • 2
0
votes
1 answer

"Inconsistent digest name" errors with passlib and Flask Security

I've got a GAE app built with Flask Security (which is awesome BTW). Everything works great, but I'm getting errors like this in my GAE logs: /.../lib/passlib/crypto/digest.py:414: PasslibRuntimeWarning: inconsistent digest name: 'md5' resolved…
new name
  • 15,861
  • 19
  • 68
  • 114
0
votes
2 answers

flask-security ImportError: cannot import name 'db'

I know this is probably a circular import error but I cannot figure out a solution. The application, so far, is very vanilla. It is the flask-security tutorial with a models.py added. This is in preparation to add blueprints to the project. from…
Jeff Bluemel
  • 476
  • 9
  • 22
0
votes
1 answer

Flask-Admin with Flask Security log in to admin backend

I updated my user model from: class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) first_name = db.Column(db.String(255)) last_name = db.Column(db.String(255)) email = db.Column(db.String(255), unique=True) …
spitfiredd
  • 2,897
  • 5
  • 32
  • 75
0
votes
1 answer

Flask Security - Send confirmation email?

I am trying to create a flask boilerplate app and I am running into an error when I try to run a flask-script. I am getting an error that I don't fully understand, the code is broken up into several modules so it may be best to post the link to the…
spitfiredd
  • 2,897
  • 5
  • 32
  • 75
0
votes
0 answers

Inconsistent RDS query results using EBS+flask-security+sqlalchemy

I have a Flask app running using Elastic Beanstalk, using flask-security and plain sqlalchemy. The app's data is stored on a RDS instance, living outside of EB. I am following the flask-security Quick Start with a session, which doesn't use…
0
votes
1 answer

Flask-bootstrap customizing Flask-security

I am using Flask-security and I have not been able to integrate Flask-bootstrap in order to customize the user interface of the login, register, and other pages. The project is hosted here: https://github.com/fbenavides69/control-escolar I have…
Francisco
  • 519
  • 1
  • 5
  • 15
0
votes
0 answers

Currently there is no way to handle exception occurred during changing or resetting password in flask-security

Also one can also say there is no way to pass custom view function to change or reset password so that any exceptions occurred can be handled. I my case I have set SECURITY_SEND_PASSWORD_CHANGE_EMAIL and SECURITY_SEND_PASSWORD_RESET_EMAIL to True.…
Harshal Dhumal
  • 1,259
  • 1
  • 10
  • 18
0
votes
0 answers

Flask Security Login Url

I am using Flask Security in my flask project to handle authentication. Currently, navigating to example.com/login works perfectly. However, example.com/login.html results in a template not found error. I am assuming this is because flask-security…
Tyler Bell
  • 837
  • 10
  • 30
0
votes
0 answers

SQLAlchemy not committing changes -- Flask

So what I basically want to do is have a user fill out a form and have a boolean value set to True which tells me their a user. I set it to True when I send the POST request to the database, but when I go look at the column it says "[null]". I don't…
humbleCoder
  • 463
  • 1
  • 5
  • 18
0
votes
2 answers

How do I structure this medium sized flask application?

Using the FLASK framework in Python, my application needs to: register and log in users (with either a sqlite or postgres database) access a specific google spreadsheet that the logged in user owns and output that data in a json format. I am…
smundlay
  • 155
  • 7
0
votes
0 answers

Unable to test authentication in flask

I am trying to test a view which uses info from the current_user to create a model, store an instance of it and return a page with the model properties. Unfortunately, I have problem in this view while working with the current_user. It seems that I…
ddomingo
  • 913
  • 1
  • 11
  • 14
0
votes
1 answer

pythonanywhere import error "No module named flask.ext.security"

I installed flask-security like so: pip3.5 install --user flask-security==1.7.5 And I can see it: 17:14 ~/mysite $ pip3.5 freeze | grep -i…
Joe Gillon
  • 107
  • 10