ancient-orange-15810
03/05/2025, 2:06 PMparse: false
and ignore: true
as it's just a notification to another system and I don't care about the response and it should not block the login flow.
Problem
I understand with this configuration the webhook call should be made after the session data has been persisted to DB on Kratos' side. The problem however is the session id is 00000000-0000-0000-0000-000000000000
when reading it from the session object in the webhook handler. Everything else is defined as it should but also in the devices
array in the session object the device id is 00000000-0000-0000-0000-000000000000
. I was looking around if someone has had a similar problem and I found this issue - https://github.com/ory/kratos/issues/3340. Although it's about registration flow and about identity id the webhook configuration's suggestion should apply? Based on the suggestion in this issue I also have set parse: false
in addition to setting ignore: true
in my webhook config. I'm not using can_interrupt
flag as it's deprecated.
Also inside the after-password-login webhook handler if I make a an API call back to Kratos to fetch active sessions for the given user the session id and also the device id are defined in the sessions returned in the response.
Do I have a wrong expectation for the session id to be defined with the actual session id and not 00000000-0000-0000-0000-000000000000
or is this not how it's supposed to work with given webhook configuration?ancient-orange-15810
03/18/2025, 10:05 AMsteep-lamp-91158
ancient-orange-15810
03/18/2025, 1:59 PMdelightful-noon-48365
04/10/2025, 11:45 AMancient-orange-15810
04/10/2025, 3:46 PMfunction(ctx) { session: ctx.session }
ancient-orange-15810
04/10/2025, 3:49 PM