Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow login_required for entire app #35

Open
stefanv opened this issue Apr 15, 2015 · 2 comments
Open

Allow login_required for entire app #35

stefanv opened this issue Apr 15, 2015 · 2 comments

Comments

@stefanv
Copy link

stefanv commented Apr 15, 2015

It would be great if one could specify global authentication requirements, and then only apply exceptions. E.g., in the web app I'm working on all pages other than the landing page should be authenticated, and I'd prefer not having to decorate each new route added.

@rdegges
Copy link
Contributor

rdegges commented Apr 19, 2015

This is a great suggestion, thank you!

@jcass77
Copy link
Contributor

jcass77 commented Sep 18, 2016

This might best be done using Flask's before_request decorator as discussed at http://stackoverflow.com/questions/13428708/best-way-to-make-flask-logins-login-required-the-default.

Not sure this is something that needs to go into the flask-stormpath core though as there are generic ways for dealing with this in your application already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants