question

ShawnRye-6567 avatar image
0 Votes"
ShawnRye-6567 asked saldana-msft edited

SignalR doesn't work with Azure AD

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?

azure-active-directorymicrosoft-graph-sdkdotnet-aspnet-core-blazorazure-signalr-service
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It's hard to determine how the application security is designed when sharing only one line of code. However, there are plenty of tutorials on the Internet that cover this subject.

Secure .NET 5 SignalR solutions with Azure AD


0 Votes 0 ·

1 Answer

ricardosolisvillegas-4678 avatar image
0 Votes"
ricardosolisvillegas-4678 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.