quick-addition-90714
10/08/2024, 5:44 PMbrief-egg-61061
10/08/2024, 5:44 PMbrief-egg-61061
10/08/2024, 5:45 PMsession
hook to after/oidc/hooks
to prevent users from having to log in again after signing up. yaml selfservice: flows: registration: after: oidc: hooks: - hook: session
If you encounter any issues with self-hosting Ory's services, Ory offers [support plans](https://www.ory.sh/support/) specifically tailored for self-hosting organizations.quick-addition-90714
10/08/2024, 5:51 PMbrief-egg-61061
10/08/2024, 5:51 PMbrief-egg-61061
10/08/2024, 5:51 PMsession
hook is provided by Ory. It is used to sign in the user immediately after they create an account. This hook is particularly useful in the registration flow, where it can be used to automatically issue a session after successful registration, thus improving the user experience by eliminating the need for the user to log in again after signing up. You can read more about the session
hook in the [Ory documentation](https://www.ory.sh/docs/actions/session). In addition to the built-in hooks like session
, Ory also allows you to define custom hooks, which are referred to as "actions". These actions can be used to extend self-service user flows and trigger any custom, external logic. For example, the web_hook
action allows you to trigger external and custom logic and can be used with all flows and methods except error and logout. You can read more about the web_hook
action in the [Ory documentation](https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks). Here's an example of how you might configure a custom hook in a self-hosted Kratos configuration: yaml selfservice: flows: login: after: hooks: - hook: my_custom_hook
In this example, my_custom_hook
would be a custom hook that you've defined. Note that you would need to implement the logic for this custom hook yourself.quick-addition-90714
10/08/2024, 5:52 PMbrief-egg-61061
10/08/2024, 5:52 PMbrief-egg-61061
10/08/2024, 5:52 PM