sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

AadHttpClient stopped working in spfx : A silent sign-in request was sent but none of the currently signed in user(s) match the requested login hint

Open Ashish1662 opened this issue 7 years ago • 6 comments

My get call to an aad app authenticated azure function stopped working without any code or configuration change. I am getting creating the AadHttpClient in onInit() using aadHttpClientFactory and then using the factory client, calling the azure function.

It still works for the internal office users but not working for guest accounts.

The error say: error

Error: AADSTS50058: A silent sign-in request was sent but none of the currently signed in user(s) match the requested login hint. Trace ID: 91ce91f8-359e-4d47-bf42-690f09a83500 Correlation ID: 7891279c-f3c1-4174-b9b2-e62b476b1db9 Timestamp: 2019-04-08 14:58:58Z at Array. (sp-pages-assembly_en-us_f60d842ff12cc56343c93b48cfa9484f.js:1189) at _callBackMappedToRenewStates.(anonymous function)._callBackMappedToRenewStates.(anonymous function) (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-03-15.010/1.sp-http-adal_c2097657830cc37ce4b2.js:3:7561) at AuthenticationContext.handleWindowCallback (adal.min.js:2) at parseTokenFromUrl (spfxsinglesignon.aspx:20) at onload (https://xxx.sharepoint.com/_forms/spfxsinglesignon.aspx#error=login_required&error_description=AADSTS50058%3a+A+silent+sign-in+request+was+sent+but+none+of+the+currently+signed+in+user(s)+match+the+requested+login+hint.%0d%0aTrace+ID%3a+91ce91f8-359e-4d47-bf42-690f09a83500%0d%0aCorrelation+ID%3a+7891279c-f3c1-4174-b9b2-e62b476b1db9%0d%0aTimestamp%3a+2019-04-08+14%3a58%3a58Z&state=17a2c181-a9d8-4ef1-a127-bc60acdf7275%7c0ba98fce-f530-4e1d-b127-1c8ece275042:31:38)

Thanks in advance!

Ashish1662 avatar Apr 08 '19 15:04 Ashish1662

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Apr 08 '19 15:04 msft-github-bot

I think this is related to #3722 ... while that issue deals with Graph, it seems like the same underlying issue... can you confirm? If so I'd like to close this as a dupe to keep things consolidated...

andrewconnell avatar Apr 09 '19 09:04 andrewconnell

Yes, they both seems pointing to the same root cause. Can you please update if someone is working on this and how soon this would be fixed?

Thanks in advance!

Ashish1662 avatar Apr 09 '19 10:04 Ashish1662

@Ashish1662 said:

Can you please update if someone is working on this and how soon this would be fixed?

I can't... I don't work for MSFT, just helping out with the issue list. But I've made them aware of this issue. I'll have to let them comment on it.

I'm going to close this issue as a dupe so we can keep things consolidated to #3722 ...

andrewconnell avatar Apr 09 '19 11:04 andrewconnell

Ok, thank you for your help and prompt responses. Looking forward for a fix soon. 👍

Ashish1662 avatar Apr 09 '19 11:04 Ashish1662

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 24 '20 18:01 msft-github-bot