flask-principal Questions
1
I am building a Flask-based REST API and using Flask-JWT to handle JWT auth. I also want to use the built in roles management with Flask-Security. However, Flask-Security's @roles_required() decora...
Corset asked 8/11, 2015 at 17:58
2
Solved
I'm using Flask Login and Principal for identity and role management. My needs are described straight out of the docs. My code is here:
@identity_loaded.connect_via(app)
def on_identity_loaded(sen...
Bussey asked 12/8, 2013 at 14:47
4
I've been looking at this post:
http://pythonhosted.org/Flask-Principal/#granular-resource-protection
Now while there is nothing wrong with how it is currently working I can't see that it is very ...
Lariat asked 19/8, 2013 at 17:20
1
Solved
I'm trying to create a permission that requires that the user has role A or role B.
According to Python Flask Principal documentation, the following line creates a permission that requires the use...
Fistulous asked 7/4, 2015 at 20:6
3
Solved
All, I'm writing a flask application that depends on flask-principal for managing user roles. I'd like to write some simple unit tests to check which views can be accessed by which user. An example...
Elisa asked 23/5, 2013 at 11:7
1
Solved
I work on a Flask app with Flask-Login and Flask-Principal and everything works fine so far except the remember me function of Flask-Login.
Actually the remember me function works on the Flask-Log...
Hotien asked 30/6, 2014 at 9:56
1
Solved
I am new in writing flask and currently use flask-principal as my authorization mechanism.
When a user tries to access a url without the required permission, flask-principal raises a PermissionDeni...
Pedestrian asked 19/11, 2013 at 10:36
2
Can anyone tell if there's a fundamental difference between these 3 extensions or do they all do similar things? I've been reading the docs and there seems to be quite a lot of crossover. I'm...
Ariosto asked 26/6, 2013 at 13:33
1
© 2022 - 2024 — McMap. All rights reserved.