Blazor Server with Custom SignalR Hub
Hello, I am experimenting with adding notifications to my companies Intranet. I thought using SignalR for this would be a good idea. And it was working locally, until I put it up on our test server and I found an issue.
We are using Windows Authentication, and it seems the Blazor Server Authentication is hitting my servers Windows Authentication and then my IUserIdProvider is setting the SignalR Context Identity to this as well, so we would mean there is only 1 client.
Is there a way of authenticating Client to Server, without the use of JS interop. I have a working version on the server with JS, however if it's possible I want a C# only approach. I have also tried a cookie authentication, with a 'double-hop' approach, but I can't seem to get that to work, the cookie from middleware never arrives, thus a 401.
0 Replies