AuthenticationManager.GetExternalLoginInfo returns null except in ExternalLoginCallback
问题 I am using the standard MVC template in VS2013 and have enabled external logins. It works fine, and I am now adding some features. I find that AuthenticationManager.GetExternalLoginInfo works fine in the ExternalLoginCallback action. However, if I have it anywhere else, it always returns null, even if the user is logged in. I did a test by adding the following in the Account controller: [Authorize] public async Task<ActionResult> Test() { Debug.Assert(User.Identity.IsAuthenticated); var