snok / django-auth-adfs

A Django authentication backend for Microsoft ADFS and AzureAD
http://django-auth-adfs.readthedocs.io/
BSD 2-Clause "Simplified" License
272 stars 99 forks source link

Working with Azure Front Door and custom domain #283

Open bencebenke opened 1 year ago

bencebenke commented 1 year ago

We can not properly set up this module with Front Door and custom domain. REDIRECT_URI parameter seems to be deprecated. We have got a "classic" xxx.azurewebsites.com domain to our App Service. On the Front Door we have got a custom domain. But the authentication request uses the original xxx.azurewebsites.com domain and after authentication it is redirecting back to that domain.

Any idea or suggestion how to handle this? How can we use this module with Front Door? Could we get back REDIRECT_URI option?

Fund with Polar

JonasKs commented 1 year ago

Huh, you put authentication behind a CDN? I'm not sure if I understand the setup here.

bencebenke commented 1 year ago

We have the following setup:

Front Door is security policy, so we can't get rid of it.

JonasKs commented 1 year ago

Please fork and create a PR with the needed changes to the code, so you can prove it works and we can see that we don't break anything.

I have never used Front Door, and have no way of testing this.