I need to create an URL so the user after login must change the password.
I know I have to append the parameter kc_action=UPDATE_PASSWORD…
But how do I fill the other params that are automatically filled when I go to
Just to double-check, have you tried without /auth? In the newer versions, it is no longer necessary unless you have set the environment variable KC_HTTP_RELATIVE_PATH
Just to clarify some points: it is not just a link to change the password. In this example, the app is initiating an authentication request following the OIDC standard with the Authorization Code flow.
Regarding PKCE or not, it all depends on whether your application is a SPA or not.
Yes but I need to create a JS APP "Change your PWD " where the user just click a botton and get redirected to an KC url that initiates the auth with kc_action=UPDATE_URL
I need to create myself the code_challenge in JS in order to create the URL
You can call the login(...) function of the JS adapter with an options object. one of the options is the action parameter, this action param is the one you are looking for.
It’s mentioned in the docs: Securing Applications and Services Guide
Disabling PKCE is not an option, as it decreases security.
Just calculating a custom code challenge is also not an option, if you can’t use the custom code verifier in your flow.