-
Notifications
You must be signed in to change notification settings - Fork 386
Closed
Description
Which Version of MSAL are you using ?
MSAL 4.7
Platform
netcore or net classic
What authentication flow has the issue?
- Desktop / Mobile
- Interactive
- Integrated Windows Auth
- Username Password
- Device code flow (browserless)
- Web App
- Authorization code
- OBO
- Web API
- OBO
Repro
Configure interactive auth to use the system browser and also configure it to use Edge.
var options = new SystemWebViewOptions()
{
OpenBrowserAsync = SystemWebViewOptions.OpenWithEdgeBrowserAsync
};
var cts = new CancellationTokenSource();
authTask = pca.AcquireTokenInteractive(s_scopes)
.WithSystemWebViewOptions(options)
.ExecuteAsync(cts.Token);Actual behavior
Sometimes the browser hangs at an url similar to:
https://login.microsoftonline.com/common/reprocess?ctx=rQIIAW2Q
Eventually an MsalClientException occurs, stating:
Could not extract the query from the authorization response - check Pii enabled logs for details
This happens about 50% of the time.
Possible Solution
It looks like the TCP listener is invoked, but no data is available. Calling ReadAsync seems to block. After some time or if the browser is refreshed, the tcp listener reads 0 bytes.