0

I have an Asp.Net Core application running in an Azure Web App and I need it to be able to call itself.

Part of a long-running process in the app needs to be able to open a connection to https://my-app-name.azurewebsites.net/api/check-for-updates.

This works fine in a public-facing environment, it failed on an IP-restricted one until I gave it local VNet access, and it doesn't work at all on an environment that relies on AD authentication. Instead I get a 401 forbidden message.

Is there any way of telling it that a request from localhost does not need to be authenticated? It would be fine if this was limited by endpoint.

One idea that crossed my mind was to use the Authentication service to manage identity with "allow anonymous" enabled and then use the Access Restriction panel to catch unauthenticated users from outside the local VNet. Unfortunately it looks as though the Access Restriction pane doesn't have an option to pick up on the Authentication status of a request, but a solution like that would be ideal.

glenatron
  • 235
  • 2
  • 4
  • 10

0 Answers0