Top "Flask-login" questions

Flask-Login provides user session management for the python web framework Flask.

Check if user is logged in with Flask-Login in template

When I log a user in, I set logged_in in the session, then check this value in the template. …

python flask flask-login
Flask-login current_user returns only ID

I've managed to get flask-login working but when I try use, for example current_user.username in my templates the …

python flask flask-login
Flask-login not redirecting to previous page

I have seen quite a few questions with this in mind, but haven't been able to address my issue. I …

python redirect login flask flask-login
flask-login:Exception: No user_loader has been installed for this LoginManager. Add one with the 'LoginManager.user_loader' decorator

I want to use flask_login to manager user login but some error like this: Exception: No user_loader has …

python flask flask-login
py.test to test flask register, AssertionError: Popped wrong request context

I'm using flask to do register and login: from flask.ext.security.views import register, login class Register(Resource): def …

python pytest flask-login
Why isn't my current_user authenticated in flask-login?

My goal is to make my home view (/) a login page. Once the user logs in, a different page is …

python-3.x authentication flask flask-login
Flask-HttpAuth and Flask-Login

I am creating a small REST service. I am looking for different authentication methods. For sites I used the module …

authentication flask flask-login
Using Flask-Security to authenticate REST API

I am using Flask-Security to build a web app that has a public REST API. I am trying to figure …

python rest flask flask-login flask-security
What's the point of the "is_authenticated" method used in Flask-Login?

I'm working through the Flask Mega-Tutorial right now and I've come across this bit of code: class User(db.Model): …

python web flask flask-login flask-extensions
Flask view raises TypeError: 'bool' object is not callable

I am trying to debug a view in my Flask app that is return a 500 status with the error TypeError: …

python flask flask-login