This line only allows the use of PKCE with code flow: https://github.com/dotnet/aspnetcore/blob/master/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectHandler.cs#L369 But PKCE can also be used with hybrid flow. Please allow that as well.