Hi. Is it possible to configure webook after verif...
# talk-kratos
f
Hi. Is it possible to configure webook after verification that will contain identity id and email (or credential) that was verified?
f
Yes, i’m using this configuration for the webhook
Copy code
verification:
      enabled: true
      ui_url: <http://127.0.0.1:4455/verification>
      lifespan: 24h
      use: code
      after:
        default_browser_return_url: <http://127.0.0.1:4455/> # the host should be an env variable pointing to webapp
        hooks:
          - hook: web_hook
            config:
              response:
                ignore: false
              url: <http://127.0.0.1:3000/api/email_verified>
              method: POST
              body: file:///config/hooks/debug.jsonnet
i’m also using
Copy code
registration:
      lifespan: 10m
      ui_url: <http://127.0.0.1:4455/registration>
      after:
        password:
          hooks:
            - hook: session
            - hook: show_verification_ui
for registration
my problem is that webhook payload looks like its’ “before” it was processed, and before email was marked as verified (that’s what identity states in the payload)
r
ah.. ok, I have no answer but I'm interested in doing something similar as well
f
i will probably introduce cdc in the meantime, so i can catch <before>/<after> myself, but would be good to have it done via webhook
r
@fancy-salesclerk-15819 have you found more about this behavior?
f
nope, i added debezium to the system and tracking row updates from the db.