Questions tagged «google-openid»

17
OWIN的GetExternalLoginInfoAsync始终返回null
我创建了一个新的MVC5 Web应用程序,当我尝试使用Google或Facebook登录时,会调用中的ExternalLoginCallbackAction AccountController,但是GetExternalLoginInfoAsync()始终返回null: var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync(); if (loginInfo == null) { return RedirectToAction("Login"); } 因为它始终为null,所以它仅重定向回到登录页面,然后过程重新开始。我怎样才能解决这个问题?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.