Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with Azure Front Door and custom domain #283

Open
bencebenke opened this issue Apr 25, 2023 · 3 comments
Open

Working with Azure Front Door and custom domain #283

bencebenke opened this issue Apr 25, 2023 · 3 comments

Comments

@bencebenke
Copy link

bencebenke commented Apr 25, 2023

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
Copy link
Member

JonasKs commented Apr 25, 2023

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

@bencebenke
Copy link
Author

We have the following setup:

  • App Service (Django app with django-auth-adfs), domain xxx.azurewebsites.com
  • App registration: redirect URIs are properly configured
  • Front Door classic with WAF policy: custom domain frontends -> routing all request -> backend: app service. Domain: yyy.com

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

@JonasKs
Copy link
Member

JonasKs commented Apr 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants