Error Invalid Request and Missing Parameter code_challenge_method

How to fix this error :
error: “invalid_request”
error_description: “Missing+parameter%3A+code_challenge_method”

Keycloak v11.0.3
Vuejs 2.6.x

2 Likes

Did you find any solution for this. I have the same question.

This means that your client configuration in Keycloak requires your client to send PKCE code_challenge and code_challenge_method, as described in the PKCE specification. This is highly recommended for securing public clients like SPAs.
To configure PKCE with the keycloak-js adapter in your application, see docs of JS-adapter and look for pkceMethod.