1

I am wondering if someone can help me guide in the right direction. Since I put my App (hosted on IIS on a VM in Azure) behind the Azure Application Gateway (v2) I am being asked multiple times to put my username and password. P.S. I am using Windows Authentication for my app. Everything works fine without the gateway. I have seen this link but going back to V1 is not an option unfortunately.

Anyone here came across this and fixed it? Any help appreciated. Thanks

Avais
  • 99
  • 2
  • 7
  • What do you mean by "asked multiple times to put my username and password"? You hosted the application in the IIS and access it outside. What is the authentication for the app? – Charles Xu May 18 '21 at 09:40
  • @CharlesXu browser prompts for user credentials. I am using Windows Auth to authenticate users against AD, so browser uses builtin popup to ask for credentials. This pop up is being shown multiple times even if correct creds are being put everytime – Avais May 19 '21 at 09:26
  • Do you use the IE browser? – Charles Xu May 19 '21 at 09:31
  • @CharlesXu nope, only Chrome so far – Avais May 19 '21 at 13:15
  • If the authenticate is necessary? It's for the HTTPS or other thing and what's that? – Charles Xu May 20 '21 at 02:13
  • @CharlesXu authentication is absolutely vital, its for every request going to the webserver mostly https. Anyway we fixed it using v1 version of app gateway – Avais May 23 '21 at 08:21

1 Answers1

1

Instead of downgrading to V1, I found one more solution i.e. to use basic authentication instead of windows authentication.

I understand that basic authentication sends credentials as plain text but if you are using SSL on top of it, it should be okay.

Still looking for a better approach though to solve this but this worked for me. Hope it helps !

Ansh
  • 11
  • 2