How do webhook.response.parse and webhook.can_inte...
# ory-network
w
How do webhook.response.parse and webhook.can_interrupt relate to each other? Latest documentation suggests the prior to interrupt and doesn't mention anything about can_interrupt, I do however see recent code changes considering can_interrupt (perhaps for backwards compatibility?). Does response.parse imply can_interrupt?
c
The answer is yes, parse does imply can_interrupt, but quite obviously not vice versa 😎
🙏 1
w
I must admit it is not really consistent. Documentation suggests with webhook.response.parse entities can be modified in an after registration and settings hook. The code base considers both can_interrupt and webhook.response.parse for registration but for settings it only considers can_interrupt.
So I guess if we just specify response.parse it will run in the post persist hook and doesn't modify the entity? I reported this issue here https://github.com/ory/kratos/issues/3192
And about can_interrupt, is it able to interrupt all flows? Because I am not able to interrupt a recovery flow with response.parse.
108 Views