My environment looks like this:
- .NET 8
- Blazor server app
- Windows authentication for SSO
- IIS Server with web sockets activated and authentication requirements set
The IIS Server and clients all belong to the same AD domain. IIS Server is behind a load balancer appliance which is the HTTPS endpoint.
As many people, everything works well using IIS Express in Visual Studio 2022.
Windows authentication works well with IIS at previous development stage. I get user identity and set customs claims for granting actions in the app, by reading users rights in a backend database.
The plan is to use SignalR to notify rights updates and force claims to be reload. All works as expected with IIS express !
When I publish on IIS it failed at the callawait hubConnection.StartAsync(); with this error:
HttpRequestException: Response status code does not indicate success: 401 (Unauthorized)
After digging herehttps://github.com/dotnet/aspnetcore/issues/25000
and herehttps://github.com/dotnet/AspNetCore.Docs/issues/34618
I've tried the related docs prescription "impersonation when using Windows auth and SignalR" and so so many combination of options with no success.
Could anybody confirm that SignalR may works in my context, (see up there) ?