I am using Microsoft.AspNetCore.Authentication.AzureAD.UI package. And simple authentication in Startup.cs:
services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
.AddAzureAD(options => Configuration.Bind("AzureAd", options));
Everything works fine if I publish application to Azure Web App. But my application is inside Docker container and is located in AKS. External LoadBalancer working fine, but doesn't have SSL option. That's why I have tried to configure Front Door or Application Gateway. With no luck. When I am using Gateway and setting reply URL to https://xxx.xxx.xxx.xxx/signin-oidc I am receiving
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application
When to http://xxx.xxx.xxx.xxx/signin-oidc
AADSTS500117: The reply uri specified in the request isn't using a secure scheme.
Similar story with Front Door and if to remove app.UseHsts() and app.UseHttpsRedirection()