globus / cookiecutter-django-globus-app

This cookiecutter project serves as a starting point for using the Django Globus Portal Framework.
1 stars 3 forks source link

Social Auth Redirect URI error when Social Auth does not detect HTTPS #13

Open NickolausDS opened 4 months ago

NickolausDS commented 4 months ago

It seems like some deployments, for whatever reason, don't automatically detect HTTPS and use that for the redirect URI, which results in Globus rejecting the login with an MISMATCHED_REDIRECT_URI error. I'm not quite sure what configurations cause this, but it has come up a couple times.

The solution to all of these has been setting this:

SOCIAL_AUTH_REDIRECT_IS_HTTPS = True

And that's actually already done in the production settings file. It could be people just aren't configuring their app to use this? It could be a documentation issue.

NickolausDS commented 4 months ago

Related to #11 , but a different cause.