New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

v26.4.18

v26.4.18​

Before webhooks return their messages when they interrupt a flow​

A before webhook that interrupts a login, registration, recovery, verification, or settings flow with validation messages now returns those messages. The request fails with a 400 Bad Request error with the ID webhook_flow_interrupted. The error's reason is the text of the first message, and details.messages lists every message the webhook returned.

Previously, the messages were dropped and the request failed with an unrelated 404 Not Found or 500 Internal Server Error.

API flows and browser flows that request JSON receive the error in the response body. Other browser flows redirect to the error UI. This now includes the recovery and verification flows, which used to answer browsers with JSON.

Ory Kratos Identities doesn't create a flow when a before webhook interrupts it. If your client checked for the earlier 404 or 500 response to detect an interrupted flow, check for the webhook_flow_interrupted error ID instead.