Share via

Exception calling 'AcquireTokenAsync' with ' The browser based authentication dialog failed to complete. Reason: The download has failed (the connection was interrupted)."

Steve Ko 1 Reputation point
2021-12-03T08:02:16.377+00:00

Exception occured after calling 'AcquireTokenAsync' on my tool.

This is a problem that occurs only on a specific PC.
The authentication server member said that JWT Token was normally issued.

Could you help how to fix this issue ?

[Code with exception]
var authResult = await authContext.AcquireTokenAsync(resourceURI, clientID, new Uri(clientReturnURI), new PlatformParameters(PromptBehavior.Always));

[Exception Information]
-- Message --
The browser based authentication dialog failed to complete. Reason: The download has failed (the connection was interrupted).
-- Source --
Microsoft.IdentityModel.Clients.ActiveDirectory
-- StackTrace --
Location: Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Platform.WebUI.<AcquireAuthorizationAsync>d__20.MoveNext()
--- Stack Tracking End of Previous Position with Exception Throwed---
Location: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
Location: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Location: Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenInteractiveHandler.<AcquireAuthorizationAsync>d__15.MoveNext()
--- Stack Tracking End of Previous Position with Exception Throwed---
Location: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
Location: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Location: Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenInteractiveHandler.<PreTokenRequestAsync>d__14.MoveNext()
--- Stack Tracking End of Previous Position with Exception Throwed---
Location: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
Location: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Location: System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
Location: Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__60.MoveNext()
--- Stack Tracking End of Previous Position with Exception Throwed---
Location: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
Location: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Location: Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenCommonAsync>d__42.MoveNext()
--- Stack Tracking End of Previous Position with Exception Throwed---
위치: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
위치: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
위치: Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenAsync>d__32.MoveNext()
-- TargetSite --
Void MoveNext()

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.