I've created a new MVC5 Web Application, and when I try to login with Google by following the official guide http://www.asp.net/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on, the method function GetExternalLoginInfoAsync() always returns null:
var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync(); => NULL
if (loginInfo == null)
{
return RedirectToAction("ExternalLoginFailure");
}
I know there are a lot of on this subjetct and I tried all the exposed solution like GetExternalLoginInfoAsync null with OWIN in ExternalLoginCallback unless already logged into google or OWIN's GetExternalLoginInfoAsync Always Returns null but with no success.
The Google+ API is active and I settup correctly the cliend ID et the Client secret.
PS: sorry for my english