I'm writing a small Flask app and I'd like to use Authomatic to handle OAuth and OpenID authentication. Is there a way to decorate a function to check if a user is logged in or not, as it would be done with Flask-Login? Or should I use both?
Asked
Active
Viewed 172 times
1 Answers
2
You should use both. Authomatic provides a method for authenticate users, while Flask-Login takes care of user sessions. Have a look at Flask-Security as well, it's a complete package for user management (Flask-Login itself does not give you database models for registering users).

Dauros
- 9,294
- 2
- 20
- 28