Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Signalr Service #9

Closed
jassent opened this issue Sep 8, 2020 · 3 comments
Closed

Azure Signalr Service #9

jassent opened this issue Sep 8, 2020 · 3 comments

Comments

@jassent
Copy link

jassent commented Sep 8, 2020

First, thank you so much for the solid example.

When I add Azure Signalr Service to the project the /profile page constantly refreshes With each refresh it is calling the login.microsoftonline.com service. The profile information actually loads and displays on the page. Debug shows the following error on each refresh which isn't particularly helpful:

Exception thrown: 'Microsoft.Graph.ServiceException' in System.Private.CoreLib.dll System.Net.Http.HttpClient.Default.LogicalHandler: Information: Start processing HTTP request POST https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token System.Net.Http.HttpClient.Default.ClientHandler: Information: Sending HTTP request POST https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token System.Net.Http.HttpClient.Default.ClientHandler: Information: Received HTTP response after 201.8975ms - OK System.Net.Http.HttpClient.Default.LogicalHandler: Information: End processing HTTP request after 209.1404ms - OK

Any ideas? The same exact code works fine when using locally hosted SignalR.

@jassent
Copy link
Author

jassent commented Sep 12, 2020

If it helps...Here is a repository that shows the bug: https://github.com/jtawil777/BlazorGraphApiAzureSignalrServiceExample

I also filed a bug with Microsoft.Identity.Web: AzureAD/microsoft-identity-web#573

@wmgdev
Copy link
Owner

wmgdev commented Sep 17, 2020

Regards. Looks like they can reproduce, so fingers crossed.
This example project has evolved over time. Now that Microsoft.Identity.Web has improved and embraced Blazor Server, it's now pretty much a copy of the "blazorserver --auth SingleOrg --calls-graph" example app in their Repro

@jassent
Copy link
Author

jassent commented Sep 17, 2020

Agreed! Thank you for helping me get started down this road.

@jassent jassent closed this as completed Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants