3

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

Community
  • 1
  • 1
  • 1
    Sorry for the post, i think i find the solution. Actually, this is the proxy of my company which seems to block the callback.. – pierrick dupré Oct 12 '15 at 12:15

1 Answers1

-3

Generally, you must checked settings for hosting company. They impose restricted limits for authentication mechanism same OAuth way. In control panel search "unlock API call..." for example and follow the istructions.

wphonestudio
  • 207
  • 2
  • 2
  • This does not provide an answer to the question. Once you have sufficient [reputation](http://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](http://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](http://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). – Dethariel Aug 02 '16 at 17:29