MVC ExternalSignInAsync from Twitter slow response time?

In the MVC5 app with Twitter authentication enabled, I noticed a very long response time from Twitter. Any other site I worked on (and not MVC5) takes only about 2 seconds, while it takes 14 years. It should be noted that the Twitter user has already authenticated with the system and has already registered on Twitter.

The main part of the problem is in Account/ExternalLoginCallback(...)the line below:

var result = await SignInManager.ExternalSignInAsync(loginInfo, isPersistent: false);

You can see the Fiddler timeline: Timeline

enter image description here

This call waiting takes about 6 seconds, and I don’t understand why. He appears both at my local and at the factory.

Has anyone else experienced this? It seems I can not find anything on this during the search.

+4
source share

Source: https://habr.com/ru/post/1607000/


All Articles