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
1
vote
1 answer
Adding facebook login to Flask-security
I am having a trouble adding a "login with Facebook" feature to my Flask application which already using Flask-Security for the User authentication. What I really want is a Facebook button besides the login form, so that one can use Facebook instead…

rablentain
- 6,641
- 13
- 50
- 91
1
vote
3 answers
Flask Security's Flask Mail registration receives smtplib.SMTPAuthenticationError from smtp.gmail.com
I have a flask app using Flask-Security's registration to send Flask Mail upon registration. I've pointed the flask mail config at smtp.gmail.com port 464 using SSL. However, when the app tries to send mail it gets an…

David Watson
- 3,394
- 2
- 36
- 51
1
vote
3 answers
Customize flask-security's @auth_token_required unauthorized response
I'm trying flask for the first time and I'm trying to create a rest api with token-based authentication.
Everything's going fine except that I cannot customize the unauthorized response returned by @auth_token_required which is this default…

DigitalDouble
- 1,747
- 14
- 26
1
vote
1 answer
Need advice on password hashing algorithm for Flask security module
In one of my flask project I'm using Flask-security module for security mechanism. In module configuration I have 3 choices for password hashing algorithm bcrypt, sha512_crypt, pbkdf2_sha512.
Can any one suggest me which to use and why?
Any help…

Harshal Dhumal
- 1,259
- 1
- 10
- 18
1
vote
1 answer
User authentication for Flask API on mobile
I am making an API in Flask for a simple jQuery mobile + PhoneGap app to be packaged and downloaded. As I understand, all the calls to the database should be made with JavaScript, AJAX, and JSON. Since the app is about the user, and all of the views…

freethrow
- 1,068
- 3
- 20
- 34
1
vote
2 answers
Error when confirming registration using flask-security
I'm using flask-security to handle user registration, login, etc. I'm facing a problem when registering a new user using the default flask-security views.
EDIT
I managed to advance a little on solving the problem. The initial problem was that I…

Lucas Infante
- 798
- 6
- 21
1
vote
1 answer
How to login to Flask-Security from native mobile app
I setup Flask-Security for my single-page app - and ran into the CSRFToken issue that a lot of people have had (Flask-Security CSRF token). From my web app, I put the CSRFToken in HTML, scrape the page to find it, and use it to send in my login…

SJoshi
- 1,866
- 24
- 47
1
vote
1 answer
Structuring RESTful API in Flask when some methods require authentication and some don't
I'm making a new RESTful API in Flask that should accept both GET (for requesting the resource) and PATCH (for performing various incremental, non-idempotent updates) for a given object. The thing is that some of the data that's patched in must be…

Eli
- 36,793
- 40
- 144
- 207
1
vote
1 answer
Flask: token-based authorization
I am building a basic app with Flask: it has a unique route that requests just a token authentication, i.e. if the token provided in the headers is correct, then the request is satisfied. To do so, I installed both Flask and Flask-Security. This is…

Marco
- 3,053
- 5
- 27
- 29
1
vote
1 answer
using Flask-Migrate together with Flask-Security
I'm trying to get a basic Flask-Security app working with Flask-Migrate. I have two main py files: app.py and db_migrate.py
app.py:
from flask import Flask, render_template, request, session
from flask.ext.babel import Babel
from flask.ext.mail…

b_g
- 299
- 1
- 4
- 14
1
vote
1 answer
Flask-Social on a CSRF enabled website
I'm trying to implement login/registration views in Flask that support both regular login (through Flask-Security) and OAuth login (through Flask-Social).
My website uses CSRF protection, but when I implement a link to the OAuth login page (as per…

Plasma
- 2,369
- 1
- 29
- 35
1
vote
2 answers
Extra fields on registration page in flask-security
I am trying to make a registration page in my Flask application. I am using Flask-Security for user management. I have set it up properly; the standard registration page did render correctly. However, my model consists of quite a few extra, required…

Ben
- 1,561
- 4
- 21
- 33
1
vote
0 answers
adding the anonymous_user_required to register view in flask-security
I'm trying to find out if there is a reason that the @anonymous_user_required decorator is not put onto the /register route by default in flask-security. If there is no good reason, what is the best way add this decorator to the route from my own…

jagooding
- 11
- 2
1
vote
0 answers
flask-security - duplicate current_user.uuid values
I'm using FlaskBootStrapSecurity project which uses Flask Security. I have a situation where the flask.ext.security current_user has the same uuid for 2 users.
For example,
I log in with one user
print current_user.uuid
log out
log in with a…

Bob B
- 4,484
- 3
- 24
- 32
1
vote
1 answer
Make peewee admin work with flask security
I like both peewee and Flask security, and they both work well together, but I can't get the admin functionality of peewee to work. I am really not sure about how to do this, but I really want to use both together. I have tried a lot of things, but…

Ben
- 1,561
- 4
- 21
- 33