title: OpenIdConnect Owin login with google
body: <p>I'm trying to set up OWIN OpenIdConnect to authorize with google provider.</p>
  
  <p>I have used:
  <a href="http://blogs.msdn.com/b/webdev/archive/2014/03/28/owin-security-components-in-asp-net-openid-connect.aspx" rel="nofollow">http://blogs.msdn.com/b/webdev/archive/2014/03/28/owin-security-components-in-asp-net-openid-connect.aspx</a></p>
  
  <p>as a tutorial for that, but it's designed for Azure AD provider, so i changed necessary information to google:</p>
  
  <p>Startup.Auth:</p>
  
  <pre><code>    public void ConfigureAuth(IAppBuilder app)
      {
          app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType);
  
          app.UseCookieAuthentication(
              new CookieAuthenticationOptions());
  
          app.UseOpenIdConnectAuthentication(
              new OpenIdConnectAuthenticationOptions
              {
                  ClientId = "xxx.apps.googleusercontent.com",
                  Authority = "https://accounts.google.com",
                  RedirectUri = "https://localhost:44300/"
              });
      }
  </code></pre>
  
  <p>This causes redirect loop error in my browser. </p>
  
  <p>To be sure, I have changed provider to Azure and it works perfectly.</p>
  
  <p>Do you have idea how to fix that? In perfect I would like to integrate it with default membership provider, but for now I'm trying to get it work somehow.</p>
  
  <p><em>EDIT:</em></p>
  
  <p>I have found out that problem is in response_mode. Azure returns with POST, and google is returning GET.</p>
  
  <p>Do you have any idea how to:</p>
  
  <ul>
  <li>Make google returns with POST</li>
  <li>Make OWIN OpenIdConnect read GET value property? Its separated from a url by '#', not '?'.</li>
  </ul>