AngellusMortis / django_microsoft_auth

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentcation backend.
MIT License
137 stars 84 forks source link

x-forwarded-proto has no effect: redirect url still http #501

Closed Wissperwind closed 1 year ago

Wissperwind commented 1 year ago

Hi,

My server is running behind a IIS from Microsoft. Local the server is ussing http. The IIS is responsible for https.

In the Docu is written:

Running behind a reverse-proxy Make sure to pass your protocol with X-Forwarded-Proto so your callback url will be constructed properly

So I set X-Forwarded-Proto to https in the IIS. But the redirect URL is still wrong. It begins still with http://

Wissperwind commented 1 year ago

Well, you actually have to set "HTTP_X_FORWARDED_PROTO" as parameter. Not "X-Forwarded-Proto"