pallets-eco / flask-security

Quick and simple security for Flask applications
MIT License
1.63k stars 513 forks source link

Help debugging login process #817

Closed beldaz closed 5 years ago

beldaz commented 5 years ago

I have an application using Flask security that decorates a route with login_required, but the login process keeps redirecting back to the login page. I suspect the problem lies in the reverse proxy architecture (internally HTTP, but externally HTTPS), but I could it do with some advice on how to debug things. Is there a way to pin down where the redirection occurs internally? Another route that uses basic authentication appears to work fine...

beldaz commented 5 years ago

Ended up trawling through the source code instead, but afterwards also found https://flask-debugtoolbar.readthedocs.io/en/latest/ to be very handy. Closing.