title: code_challenge is missing IdentityServer4 (v4.1.2) Mvc Client
body: <p>I want to use <code>Hybrid flow</code> in my application. I have even set <code>RequirePkce</code> to <code>false</code> in the client configuration. I am still getting the error <code>code_challenge is missing</code></p>
  <p>Client Configuration</p>
  <pre><code>new Client
  {
      ClientId = &quot;mvc&quot;,
      ClientName = &quot;MVC Client&quot;,
      ClientSecrets = new List&lt;Secret&gt;
      {
          new Secret(&quot;secret&quot;.Sha256())
      },
      ClientUri = $&quot;{clientsUrl[&quot;Mvc&quot;]}&quot;, 
      AllowedGrantTypes = GrantTypes.Hybrid,               
      AllowAccessTokensViaBrowser = false,
      RequirePkce = false,
      RequireConsent = false,
      AllowOfflineAccess = true,
      AlwaysIncludeUserClaimsInIdToken = true,
      RedirectUris = new List&lt;string&gt;
      {
          $&quot;{clientsUrl[&quot;Mvc&quot;]}/signin-oidc&quot;
      },
      PostLogoutRedirectUris = new List&lt;string&gt;
      {
          $&quot;{clientsUrl[&quot;Mvc&quot;]}/signout-callback-oidc&quot;
      },
      AllowedScopes = new List&lt;string&gt;
      {
          IdentityServerConstants.StandardScopes.OpenId,
          IdentityServerConstants.StandardScopes.Profile,
          &quot;things&quot;,
          &quot;rules&quot;
      },
      AccessTokenLifetime = 60*60*2, // 2 hours
      IdentityTokenLifetime= 60*60*2 // 2 hours
  }
  </code></pre>
  <p>MVC client</p>
  <pre><code>services.AddAuthentication(options =&gt;
  {
      options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
      options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
  })
  .AddCookie(setup =&gt; setup.ExpireTimeSpan = TimeSpan.FromMinutes(sessionCookieLifetime))
  .AddOpenIdConnect(options =&gt;
  {
      options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
      options.Authority = identityUrl.ToString();
      options.SignedOutRedirectUri = callBackUrl.ToString();
      options.ClientId = &quot;mvc&quot;;
      options.ClientSecret = &quot;secret&quot;;
      options.UsePkce = false;
      options.ResponseType = &quot;code id_token&quot;;
      options.SaveTokens = true;
      options.GetClaimsFromUserInfoEndpoint = true;
      options.RequireHttpsMetadata = false;
      options.Scope.Add(&quot;openid&quot;);
      options.Scope.Add(&quot;profile&quot;);
  });
  </code></pre>