Hi all I am following these steps to reset passwor...
# ory-network
s
Hi all I am following these steps to reset password via email 1. Get recovery flow
Copy code
curl --request GET \
  --url '<http://127.0.0.1:4455/kratos/self-service/recovery/browser?refresh=true>' \
  --header 'accept: application/json' \
  --header 'content-type: application/json'
2. Send code to email
Copy code
curl --request POST \
  --url '<http://127.0.0.1:4455/kratos/self-service/recovery?flow={{recoveryFlowId}}>' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'cookie: {{recoveryFlowCookie}}' \
  --cookie '{{recoveryFlowCookie}}' \
  --data '{
  "csrf_token": "{{recoveryFlowCsrf}}",
  "method": "code",
  "email": "<mailto:example@gmail.com|example@gmail.com>"
}'
3. Get setting flow
Copy code
curl --request POST \
  --url '<http://127.0.0.1:4455/kratos/self-service/recovery?flow={{recoveryFlowId}}>' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'cookie: {{recoveryFlowCookie}}' \
  --cookie '{{recoveryFlowCookie}}' \
  --data '{
  "csrf_token": "{{recoveryFlowCsrf}}",
  "method": "code",
  "code": "268155"
}'
4. Change password
Copy code
curl --request POST \
  --url '<http://127.0.0.1:4455/kratos/self-service/settings?flow={{settingFlowId}}>' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'cookie: {{oryKratosSession}};{{settingFlowCookie}}' \
  --cookie '{{oryKratosSession}};{{settingFlowCookie}}' \
  --data '{
  "csrf_token": "{{settingFlowCsrf}}",
  "method": "password",
  "password": "123SupperPassword2025$"
}'
All steps work well in my local machine (docker compose) But when I deploy on k9s, step 3 gets the response is
Copy code
{
  "error": {
    "id": "browser_location_change_required",
    "code": 422,
    "status": "Unprocessable Entity",
    "reason": "In order to complete this flow please redirect the browser to: <https://www.ory.sh/kratos/docs/fallback/settings?flow=d596e88c-f173-426a-86b5-79ff07e85e27>",
    "message": "browser location change required"
  },
  "redirect_browser_to": "<https://www.ory.sh/kratos/docs/fallback/settings?flow=d596e88c-f173-426a-86b5-79ff07e85e27>"
}
please suggest me how to fix, thanks all!
b
The error message indicates that the browser needs to be redirected to the URL, specifies there. Additionally, it seems that you have not set a settings UI url, as outlined on the page linked in the error message: https://www.ory.sh/docs/kratos/fallback/settings
s
Thanks, I got you. But could you please help me to understand more about why
docker compose
work well. I use all the same config
b
Could you clarify what you mean? In what configuration doesn't it work?
and what doesn't work?