flaky-kilobyte-10585
05/27/2025, 1:53 PMbrief-egg-61061
05/27/2025, 1:53 PMbrief-egg-61061
05/27/2025, 1:53 PMyaml selfservice: flows: registration: after: password: hooks: - hook: web_hook config: url: <https://your-custom-webhook-endpoint> method: POST # ...other webhook config options... - hook: session
- The first hook (web_hook
) will trigger your custom logic (e.g., a webhook). - The second hook (session
) will sign the user in after registration. Important: If you put the session hook before your custom hook, the custom hook will not be executed, as the session hook overrides subsequent hooks in the flow. This behavior is documented and confirmed in Ory’s documentation and community discussions [[Actions in Ory Identities](https://www.ory.sh/docs/kratos/hooks/configure-hooks#available-actions)] and [Ory Network issue #361](https://github.com/ory/network/issues/361). For more details and examples, see: - [Actions in Ory Identities](https://www.ory.sh/docs/kratos/hooks/configure-hooks#available-actions) - [Trigger precedence](https://www.ory.sh/docs/kratos/hooks/configure-hooks#trigger-precedence) - [Successful registration and session hook](https://www.ory.sh/docs/kratos/self-service/flows/user-registration#successful-registration) - [Ory Network issue #361](https://github.com/ory/network/issues/361)