Got error "no account or login hint was passed to the acquiretokensilent call" in the second visit

Thanh Binh Nguyen 6 Reputation points
2020-01-07T14:15:13.607+00:00

Hi,
I got the error "no account or login hint was passed to the acquiretokensilent call" when I visit my page in the second time. This error occurs in the call GetAccessTokenOnBehalfOfUserAsync(scope). The first time is fine. If I clear the cache in the browser, it works fine again. Does anyone have a fix for this issue?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,665 questions
{count} vote

1 answer

Sort by: Most helpful
  1. FrankHu-MSFT 976 Reputation points
    2020-01-08T18:37:24.353+00:00

    Hey @Thanh Binh Nguyen ,

    Per the comments, it looks like you're using the microsoft.identity.web library. For future reference I suggest filing issues against the library here : https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/Microsoft.Identity.Web

    And the managers of the library will engage accordingly.

    As said before the way it works is that the libraries are essentially using the ADAL/MSAL libraries to make calls, and the library wrapper is having issues and not properly making the acquiretokensilentasync call.

    Please follow updates on this issue here : https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/issues/240

    0 comments No comments