proud-stone-13137
01/03/2024, 7:29 PMproud-stone-13137
01/04/2024, 6:06 PMfast-eve-41839
01/05/2024, 8:25 AMproud-stone-13137
01/08/2024, 3:27 PMfast-eve-41839
01/08/2024, 5:13 PMproud-stone-13137
01/08/2024, 10:00 PMfunction(ctx) {
user_id: ctx.identity.id,
created_at: ctx.identity.created_at,
updated_at: ctx.identity.updated_at,
schema_id: ctx.identity.schema_id,
schema_url: ctx.identity.schema_url,
state: ctx.identity.state,
state_changed_at: ctx.identity.state_changed_at,
traits: ctx.identity.traits,
verifiable_addresses: ctx.id.verifiable_addresses,
recovery_addresses: ctx.identity.recovery_addresses
}
but then i tried just using
function(ctx) {
}
as an empty function as i figured that would send a blank json and I'd at least get something I could debug if the function above was not correct, also just tried:
function(ctx) {
user_id: ctx.identity.id
}
for the same effort at debugging, but in each case saw no calls going throughproud-stone-13137
01/08/2024, 10:17 PMproud-stone-13137
01/08/2024, 10:18 PMfast-eve-41839
01/09/2024, 6:34 AMMethod
ALL
but if I create two separate webhooks, one for profile and one for password it work.
function(ctx) {
user_id: ctx.identity.id
}
looks good to me. When using the CLI you have to base64 encode it.proud-stone-13137
01/09/2024, 3:45 PMproud-stone-13137
01/09/2024, 9:17 PMproud-stone-13137
01/09/2024, 9:24 PMafter:
code:
hooks: []
hooks:
- config:
auth:
config:
in: header
name: [header here]
value: ""
type: api_key
body: https://storage.googleapis.com/bac-gcs-production/e492efd84ed68d021be8954e99fa3a7a53f88add7bc6a2f0879c8480634b5f2ea66f1b3c38b357cf3afc4db6727e01ff1e4c8cbb7ac07a2c91f2bf495f93b0ad.jsonnet
can_interrupt: false
method: POST
response:
ignore: true
parse: false
url: [url here]
hook: web_hook
oidc:
hooks:
- config:
auth:
config:
in: header
name: [header here]
value: ""
type: api_key
body: https://storage.googleapis.com/bac-gcs-production/e492efd84ed68d021be8954e99fa3a7a53f88add7bc6a2f0879c8480634b5f2ea66f1b3c38b357cf3afc4db6727e01ff1e4c8cbb7ac07a2c91f2bf495f93b0ad.jsonnet
can_interrupt: false
method: POST
response:
ignore: true
parse: false
url: [url here]
hook: web_hook
- hook: session
password:
hooks:
- hook: session
webauthn:
hooks:
- config:
auth:
config:
in: header
name: [header here]
value: ""
type: api_key
body: https://storage.googleapis.com/bac-gcs-production/e492efd84ed68d021be8954e99fa3a7a53f88add7bc6a2f0879c8480634b5f2ea66f1b3c38b357cf3afc4db6727e01ff1e4c8cbb7ac07a2c91f2bf495f93b0ad.jsonnet
can_interrupt: false
method: POST
response:
ignore: true
parse: false
url: [url here]
hook: web_hook
- hook: session
before:
hooks: []
login_hints: true
ui_url: /ui/registration```proud-stone-13137
01/09/2024, 9:27 PMproud-stone-13137
01/09/2024, 9:28 PM