I'm trying to use App Service with standard App Registration built-in authentication behind a Front Door with no success.
My setup is:
- An App Service "myapp.azurewebsites.com" with built-in authentication.
- App Registration "app-auth" as auth provider.
- I have "app-auth" configured in my App Service for automatic authentication via Provider.
- Front Door "frontdoor.example.com" forwards requests to my App Service.
My App Registration "app-auth" has a redirect URL assigned the Front Door public name example "frontdoor.example.com".
Problems I'm having:
- App Service keeps sending it's own name "myapp.azurewebsites.com" as
request_uri
query string login in to Azure Active Directory. It must send the Front Door URL. - Setting up "frontdoor.example.com"
host
header in Front Door fails, as it requires it to match the App Service name.
Am I missing some configuration? Or, do I need to use custom authentication when behind a Front Door?