singingwolfboy / flask-dance

Doing the OAuth dance with style using Flask, requests, and oauthlib.
https://pypi.python.org/pypi/Flask-Dance/
MIT License
1.01k stars 158 forks source link

Login loop when working behind proxy #377

Open AlexShemeshWix opened 2 years ago

AlexShemeshWix commented 2 years ago

Hi Ive implemented small service that uses Flask-Dance for google auth. It works locally. But when i deploy it to my company datacenter, and try to login it redirects me to the google profile selection infinitely. The only custom thing that differs from your tutorial is addition of Proxy fix because datacenter is behind proxy.

app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_host=1)

How can i debug this situation? Thanks

janpeterka commented 1 year ago

Having the same issue here.