AD Group authorization not working in IIS in Blazor Server application

My AD Group authorization works perfectly in my development environment but when I publish to IIS it does not. The authentication works there though and I can see when I go to my site that I am the authenticated user but it is as if I am not in any of the groups, I am using to authorize parts of my application.

This looks like a configuration issue on the IIS.

Does anyone have an idea about what can be done here?

Upvotes: 1

Views: 583

Answers (1)

As @d_ugRiddle pointed out my problem has to do with long polling. In my case it got fixed by installing WebSocet Protocol:

https://learn.microsoft.com/en-us/iis/configuration/system.webserver/websocket

... on the IIS machine. It looks like the application falls back to long polling if WebSocket protocol is not installed with these consequences I described.

Upvotes: 2

Related Questions