I have registered an application in Azure AD (aad.portal.azure.com).
I'd like to use this app registration for authentication using OpenIDConnect for several webapps with different hostnames. I can configure several redirect URIs in the portal.
When I create a new project in Visual Studio 2019 and use the Add connected services wizard, it asks me to specify whether to create a new Azure AD application (this option is not allowed by our AAD administrators but I don't want to do it anyway), or to use settings from an existing AAD application.
The problem is that whatever Redirect URI I specify here, when I save the connected service configuration, visual studio writes that Redirect URI back to the AAD portal and removes any Redirect URIs I already specified there.
I don't want visual studio to do this. Is there any way to suppress this overwrite behavior, maybe a setting in visual studio? Otherwise every time I create a new Visual studio solution and run the wizard, I'll need to recreate all of the URIs that were there previously.
If it makes a difference, the project type is .net5 current mvc.
Thanks.