Skip to content

Commit 7d0d7f6

Browse files
hperlory-bot
authored andcommitted
fix: detect whether external_id is set in webhook response
GitOrigin-RevId: 9caac2424ee78c08b7c81be7f15c2f3405665b90
1 parent dc992d3 commit 7d0d7f6

12 files changed

+86
-9
lines changed

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=body_is_empty.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_admin_metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_external_id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3-
"external_id": "some-external-id",
3+
"external_id": "updated-external-id",
44
"credentials": {
55
"password": {
66
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_public_metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_recovery_addresses.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_state.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_traits.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_has_updated_verified_addresses.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",

selfservice/hook/.snapshots/TestWebHooks-update_identity_fields-case=update_identity_fields-case=identity_is_present_but_empty.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "00000000-0000-0000-0000-000000000000",
3+
"external_id": "original-external-id",
34
"credentials": {
45
"password": {
56
"type": "password",
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"id": "00000000-0000-0000-0000-000000000000",
3+
"credentials": {
4+
"password": {
5+
"type": "password",
6+
"identifiers": [
7+
"test"
8+
],
9+
"config": {
10+
"hashed_password": "$argon2id$v=19$m=65536,t=1,p=1$Z3JlZW5hbmRlcnNlY3JldA$Z3JlZW5hbmRlcnNlY3JldA"
11+
},
12+
"version": 0,
13+
"created_at": "0001-01-01T00:00:00Z",
14+
"updated_at": "0001-01-01T00:00:00Z"
15+
}
16+
},
17+
"schema_id": "default",
18+
"schema_url": "file://stub/default.schema.json",
19+
"state": "active",
20+
"traits": {
21+
"email": "[email protected]"
22+
},
23+
"verifiable_addresses": [
24+
{
25+
"id": "00000000-0000-0000-0000-000000000000",
26+
"value": "[email protected]",
27+
"verified": false,
28+
"via": "email",
29+
"status": "pending",
30+
"created_at": "0001-01-01T00:00:00Z",
31+
"updated_at": "0001-01-01T00:00:00Z"
32+
}
33+
],
34+
"recovery_addresses": [
35+
{
36+
"id": "00000000-0000-0000-0000-000000000000",
37+
"value": "[email protected]",
38+
"via": "email",
39+
"created_at": "0001-01-01T00:00:00Z",
40+
"updated_at": "0001-01-01T00:00:00Z"
41+
}
42+
],
43+
"metadata_public": {
44+
"public": "data"
45+
},
46+
"metadata_admin": {
47+
"admin": "data"
48+
},
49+
"created_at": "0001-01-01T00:00:00Z",
50+
"updated_at": "0001-01-01T00:00:00Z",
51+
"organization_id": null
52+
}

0 commit comments

Comments
 (0)