Hi all,
Sorry to dig up this thread who have some month ago, but I'm facing a similar issue and need to get more information about each experiences that you had.
I'm totally understanding the rewrite point with Azure Application Gateway for callback and redirect_uri, and it's working fine, but in a specific case only.
I didn't see, except error of myself, someone talking about Custom domain and SSL bindings on webapp. So I mean, that this works perfectly if on azure webapp, we add a custom DNS (jusrt awverify is enough) and SSL binding. If we don't add this on webapp, I'm always have a 500.74 where 2nd request on callback URI.
Like our goals is not to have custom bindings (SSL + DNS) on all backend azure webapp, only get a single certificates on Application Gateway and use only *.azurewebsites.net for backend. Is it a possible configuration ? or configuring backend is mandatory ?
Thanks for sharing, at disposal if need
Regards,
Alexandre