DefaultAzureCredential().GetTokenAsync fails when using custom scope when running in Azure
I'm trying to get service-to-service authentication working in Azure AD. I have it working when the two services (webapps) are running locally against an Azure AD app registration. But when the webapps are running in Azure (against the same Azure AD app registration), it doesn't work. I've created two Azure App Service webapps (which are ASP.NET Core Web API