I'm about to deploy an Angular HTML frontend as an Azure App Service. Within the app settings, there is the option to enable Azure Active Directory authentication. If enabled, when I navigate to https://my-awesome-project.azurewebsites.net, I'm redirected to a MS login screen where I can enter my AAD credentials. However, for this to work I need my app to be registered with AAD.
While following this guide is only three steps, I still have one question:
Since in my scenario the HTML frontend (Azure App Serivce) and the Node.js backend API are on separate servers, the Redirect URI of my app registration should point to an HTTP endpoint of my backend server, right?
Lots of tutorials I have seen say to put your app's web URL into the Redirect URI field. But in this case, how would my HTML/js frontend know what to do with it?
After all, Microsoft says that "We'll return the authentication response to this [Redirect] URL after successfully authenticating the user ..."
Cheers