title: ASP.NET MVC 4.5.2 connecting to IdentityServer4
body: <p>I have a website running on ASP.NET MVC 4.5.2. I have an IdentityServer4 server running but when I try and authenticate against it I get an:</p>
  
  <pre><code>invalid_request
  </code></pre>
  
  <p>For ASP.NET Core MVC the <a href="https://identityserver4.readthedocs.io/en/dev/quickstarts/3_interactive_login.html" rel="noreferrer">documentation</a> has:</p>
  
  <pre><code>app.UseCookieAuthentication(new CookieAuthenticationOptions
  {
      AuthenticationScheme = "Cookies"
  });
  app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
  {
      AuthenticationScheme = "oidc",
      SignInScheme = "Cookies",
  
      Authority = "http://localhost:5000",
      RequireHttpsMetadata = false,
  
      ClientId = "mvc",
      SaveTokens = true
  });
  </code></pre>
  
  <p>I am including the following NuGet package in my project Microsoft.Owin.Security.OpenIdConnect. My code is as follows:</p>
  
  <pre><code>        app.UseCookieAuthentication(new CookieAuthenticationOptions
          {
              AuthenticationType = "Cookies"
          });
          app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
          {
              AuthenticationType = "oidc",
              SignInAsAuthenticationType = "Cookies",
  
              Authority = "http://localhost:5000",
  
              ClientId = "mvc",
          });
  </code></pre>
  
  <p>How would one correctly connect to it?</p>