Skip to content

[Bug] InteractiveBrowserCredential gets "This site can’t be reached" sometimes #5279

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

Open
JSparshottO2 opened this issue May 15, 2025 · 0 comments
Labels
confidential-client needs attention Delete label after triage untriaged Do not delete. Needed for Automation

Comments

@JSparshottO2
Copy link

JSparshottO2 commented May 15, 2025

Library version used

Azure.Identity 1.13.2

.NET version

.net 9

Scenario

ConfidentialClient - web api (AcquireTokenOnBehalfOf)

Is this a new or an existing app?

The app is in production, I haven't upgraded MSAL, but started seeing this issue

Issue description and reproduction steps

Originally raised on the Azure board, raised here too on advice by @christothes

Some users report that when they are asked to login from the browser, that after picking their user, they get a "This site can't be reached". the URL appears to be a localhost address (in this instance localhost:49203/?code=[auth code response]) I theorise that the browser is booted up and displayed before a locally hosted web server to retreive the callback token is fully started up.

Relevant code snippets

Expected behavior

a login where a user is "quick" to respond to the login request, shouldn't cause an adverse experience.

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

Waiting for a while and refreshing the page works.

@JSparshottO2 JSparshottO2 added untriaged Do not delete. Needed for Automation needs attention Delete label after triage labels May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confidential-client needs attention Delete label after triage untriaged Do not delete. Needed for Automation
Projects
None yet
Development

No branches or pull requests

1 participant