Skip to content

How to disable all auth_required decorators? #534

Answered by jwag956
Wasabi-Bobby asked this question in Q&A
Discussion options

You must be logged in to vote

Simple answer is no - there is no simple config that will disable the authn decorators.
Note that without any authentication there won't be a 'user' defined so none of the flask-security endpoints will work - so you should probably make sure FS doesn't register its blueprints.

Not having any identifiable caller seems risky - one quick though I had was to define your own LoginManager (subclass the one in Flask-Login) and provide a user_loader that just sets a pre-configured user. Then everything should just work as long as you are just using sessions for authn (not Basic or tokens).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Wasabi-Bobby
Comment options

Answer selected by Wasabi-Bobby
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants