-
Notifications
You must be signed in to change notification settings - Fork 6
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"after registration" hook is not fired #361
Comments
Hello @olofholmlund This is caused by the session hook, see the docs here: https://www.ory.sh/docs/actions/session The session hook overwrites any other hooks that run after it which is why you don't see a response. In Ory Console it is the "Sign in after registration" setting. That setting is actually a hook, the "session hook". The solution would be to put the session hook after the other one. To order the hooks, export the configuration through the Ory CLI and order it like so password:
hooks:
- config:
body: https://storage.googleapis.com/bac-gcs-production/bar.jsonnet
can_interrupt: false
method: POST
response:
ignore: false
parse: false
url: https://webhook.site/foo
hook: web_hook
- hook: session Then the webhook should work as expected. Apologies for the weird behaviour here, we are currently working on making this work as expected out of the box. |
Preflight checklist
Ory Network Project
recursing-dirac-6i4w187k0d
Describe the bug
We have configured an action to fire after registration but the webhook is never fired.
I have tried with a simple "ping" webhook which does nothing more than ping my API to eliminate issues with the hook itself.
This is the only configured action in the project, so no actions that would interfere.
We are using custom UI with the javascript SDK and not the default account experience, but our users are successfully registered and shows up in the identities list.
If I in the console disable the option
Enable sign in after registration
then the webhook is firedThe option can be found at https://console.ory.sh/projects/current/authentication
By looking at the raw json config it seems that the automatically added
session
webhook interferes with the configured action.Thanks
Reproducing the bug
(to fix)
4. disable
Enable sign in after registration
5. Register new user, the webhook is now fired but user is not automatically signed in due to the option being disabled
Relevant log output
No response
Relevant configuration
No response
Version
Ory network (essential plan)
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
No response
The text was updated successfully, but these errors were encountered: