SignalR doesn't work with Azure AD

Shawn Rye 41 Reputation points
2022-01-03T20:53:46.323+00:00

So it seems that SignalR doesn't work with Azure AD, there appears to be a bug, I can write SignalR code and it works totally fine, however when I add it to my app that uses Microsoft Azure Identity Graph API it goes out and tries to Authorize and causes my SignalR to not work.
When it hits this line it fails

await hubConnection.StartAsync();

So what happens it does a get to the Microsoft login and returns html login page even though I am logged in, instead of Json
causing a failure.

Does anyone know how to resolve this? Is there a permission inside the Graph API I need?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,404 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
120 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,666 questions
{count} votes

1 answer

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-01-06T05:09:47.737+00:00
    0 comments No comments