title: MVC 5 External authentication with authentication mode=Forms
body: <p>I'm following <a href="http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on">this tutorial</a> to create a simple MVC 5 app with external authentication. It's working fine, but, if I change the <code>authentication mode="None"</code> to <code>authentication mode="Forms"</code> it stops working.</p>
  
  <p>I'm getting null on:</p>
  
  <pre><code>await HttpContext.GetOwinContext().Authentication.GetExternalLoginInfoAsync()
  </code></pre>
  
  <p>I'm reading a lot about something to suppress FormsAuthentication on redirect. I don't know if it's the right path, but I tried to install this <a href="http://haacked.com/archive/2011/10/04/prevent-forms-authentication-login-page-redirect-when-you-donrsquot-want.aspx">nuget packet</a> and the problem is still there.</p>
  
  <p>So, why I'm getting null everytime I change the authentication mode?</p>