Preflight checklist
Ory Network Project
No response
Describe the bug
When an OIDC registration flow is started via JSON API requests, it anyway shows an HTML form to refill data if any web hook error is occurred during the OIDC callback request. It redirects to selfservice.flows.registration.ui_url, but we need to proceed to return_to url and show a form in our site's UI (e.g. requesting /self-service/registration/flows?id=<flow_id> and rendering form in our UI).
Option selfservice.flows.registration.ui_url is in the config of Ory Kratos and can't be adjusted on the fly, so in case of error the url is always the same (regardless url that's specified in return_to).
Reproducing the bug
Try to register with return_to. You'll be redirected to selfservice.flows.registration.ui_url instead of return_to if any error is returned from web hook.
Relevant log output
Relevant configuration
Version
v25.4.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response
Preflight checklist
Ory Network Project
No response
Describe the bug
When an OIDC registration flow is started via JSON API requests, it anyway shows an HTML form to refill data if any web hook error is occurred during the OIDC callback request. It redirects to
selfservice.flows.registration.ui_url, but we need to proceed toreturn_tourl and show a form in our site's UI (e.g. requesting/self-service/registration/flows?id=<flow_id>and rendering form in our UI).Option
selfservice.flows.registration.ui_urlis in the config of Ory Kratos and can't be adjusted on the fly, so in case of error the url is always the same (regardless url that's specified inreturn_to).Reproducing the bug
Try to register with
return_to. You'll be redirected toselfservice.flows.registration.ui_urlinstead ofreturn_toif any error is returned from web hook.Relevant log output
Relevant configuration
Version
v25.4.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response