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
Using url_for_security inside a macro in Flask-Security
I'm trying to re-use my flask-security login form in a couple of different places, so I defined it as a macro like this:
{% macro loginForm(inForm) %}
1
vote
0 answers
using flask unittest to test custom Flask-security registration
I've been developing flask apps but never got around using unittest. I am trying to write a test like below:
import os
import unittest
from nextg_project_source import app, db, mail
TEST_DB = 'test.db'
app.config['BASEDIR'] =…

vkk07
- 69
- 1
- 10
1
vote
1 answer
Flask-Security: Customizing Registration
I'm trying to use Flask-Security to login and register users. However, I'm trying to do two things. The first being change the default /registration to /signup which I believe I've done correctly.
The second is I want to customize the registration…

Scragglez
- 123
- 1
- 11
1
vote
2 answers
Disable any API exposed by flask-security
I was trying to implement login functionality in my app. I started with using flask-security for basic api exposed by flask-security like register, login, logout etc.
While doing this, I realised that some of the API's provided by flask-security is…

yugantar kumar
- 1,982
- 1
- 23
- 33
1
vote
1 answer
How are Flask-Security tokens created?
I'm trying to understand how flask-security token creation works. I have a secret key in my flask app configuration, but our code is open source and in python, so it's not very secret, really.
I have the ability in the code to access the serializer…

mcouthon
- 140
- 7
1
vote
0 answers
Flask Restless Preprocessors: GET_MANY doesn't works (auth REST API with Flask-Security)
Documentation is ambiguous, sometimes GET_MANY and other GET_COLLECTION are used. I need to make a preprocessor to authorize. GET_SINGLE does work (return 401: forbiden), but GET_MANY or GET_COLLECTION does not (return 200:…

Juan Noriega
- 11
- 1
1
vote
0 answers
How to override custom_mail send method in flask-seurity
I want to implement flask-security in my project.When user register on app, he will receive mail for confirmation.Then he follow link but it will redirect to base view not override custom view.
Code
@app.route('/confirm_demo/')
…

Piyush
- 511
- 4
- 13
1
vote
0 answers
Override and validate existing field in Flask Security form
I'm trying to restrict registration in my Flask application built with Flask-Security to email addresses from specific domains.
My additional inclination was to override the register_user view from Flask Security, but their docs made it seem like…

user3501855
- 131
- 1
- 1
- 7
1
vote
1 answer
No confirmation link in flask security
I am using flask_security to do registration in a flask app. When registering an email address an confirmation mail is sent, but it does not include a confirmation link.
I did not find an option to activate this and there is not much documentation…

thafritz
- 449
- 1
- 6
- 8
1
vote
0 answers
How to create macro to clean up WTForm error checking?
Is there a better way to set a 'has-error' class within my form fields? I am using Flask and WTForms. The below code works but is very repetitive. I tried to set a dynamic variable such as {% set field + 'error' = 'has-error' %} but found out you…

Casey
- 2,611
- 6
- 34
- 60
1
vote
1 answer
flask-security make user always signed in
Im trying to make it so a specific user is always logged in using the flask security extension.
I cant find any docs on this.
Can someone point me in the right direction to start.

David Gonzalez
- 37
- 7
1
vote
1 answer
How to render Flask-Security forgot password form?
I have application with ready UI and I want to add login/logout/register/restore features with Flask-Security. Before I worked with that default behavior - when user clicked "forgot password" he was redirected to specific endpoint.
Now I want to…

Alex G.P.
- 9,609
- 6
- 46
- 81
1
vote
2 answers
Flask Security giving routing error on security.register
While trying to link to Flask-Securities register view in my template with:
Register
I get a routing error
werkzeug.routing.BuildError
werkzeug.routing.BuildError: Could not build url for…

Atrus
- 788
- 4
- 13
- 34
1
vote
1 answer
How to use mandrill module with flask security?
Can I use mandrill modules for Flask-security mails?
I know flask-security is using Flask-mail module but I want to use mandrill instead.

Bhargav Patel
- 151
- 2
- 10
1
vote
1 answer
Flask-Security - Application Context Issue - Peewee
I am working on expanding my flask skills and have worked on the treehouse flask social network project and got it to work. I am now playing with changing settings and allowing social login I have moved over to flask-security from plain bcrypt as it…

bobthemac
- 1,172
- 6
- 26
- 59