big-evening-36539
05/15/2023, 9:35 AMbig-evening-36539
05/15/2023, 10:12 AMhttp PATCH <url>/admin/identities/$id Authorization:... --raw='[{"op": "replace", "path": "/verifiable_addresses/0/verified", "value": true}]'big-evening-36539
05/15/2023, 11:22 AMbig-evening-36539
05/15/2023, 11:22 AMbig-evening-36539
05/15/2023, 11:23 AMable-dream-62808
05/15/2023, 11:32 AMbig-evening-36539
05/15/2023, 11:56 AMlimited-photographer-61008
05/15/2023, 12:50 PMlimited-photographer-61008
05/15/2023, 12:51 PM{
op: 'replace',
path: `/verifiable_addresses/0/status`,
value: 'completed'
}big-evening-36539
05/15/2023, 1:33 PMhttps PATCH "$URL/admin/identities/$id" Authorization:"Bearer $ORY_PAT" --raw='[{"op": "replace", "path": "/verifiable_addresses/0/verified", "value": true}, {"op": "replace", "path": "/verifiable_addresses/0/status", "value": "completed"}]' --ignore-stdin
and getting response
{
...
"verifiable_addresses": [
{
"created_at": "0001-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"status": "pending",
"updated_at": "0001-01-01T00:00:00Z",
"value": "<email...>",
"verified": false,
"via": "email"
}
]
}big-evening-36539
05/15/2023, 1:34 PMverifiable_addresses looks like
"verifiable_addresses": [
{
"created_at": "2023-05-15T09:53:19.746119Z",
"id": "e9b790d1-5a8a-47c3-9e89-631da586bcc8",
"status": "pending",
"updated_at": "2023-05-15T09:53:19.746119Z",
"value": "<email...>",
"verified": false,
"via": "email"
}
]
so it looks like the verifiable_addresses gets buggy after the patchlimited-photographer-61008
05/15/2023, 1:39 PMbig-evening-36539
05/15/2023, 1:41 PMancient-judge-84558
05/15/2023, 1:41 PMlimited-photographer-61008
05/15/2023, 1:43 PMbig-evening-36539
05/15/2023, 1:54 PMPATCH /admin/identities/80f862d8-5368-46ad-af35-2c6f14366d66 HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer [redcated]
Connection: keep-alive
Content-Length: 161
Content-Type: application/json
Host: [redact].<http://projects.oryapis.com|projects.oryapis.com>
User-Agent: HTTPie/3.2.1
[
{
"op": "replace",
"path": "/verifiable_addresses/0/verified",
"value": true
},
{
"op": "replace",
"path": "/verifiable_addresses/0/status",
"value": "completed"
}
]
HTTP/1.1 200 OK
CF-Cache-Status: DYNAMIC
CF-RAY: 7c7bd349a9801bfe-OSL
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/json; charset=utf-8
Date: Mon, 15 May 2023 13:46:08 GMT
Server: cloudflare
Set-Cookie: __cflb=04dToYcAUjXzJV2aHSxAUzxjQ7PyYsiCEZygwZMECj; SameSite=None; Secure; path=/; expires=Mon, 15-May-23 14:46:08 GMT; HttpOnly
Transfer-Encoding: chunked
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: private, no-cache, no-store, must-revalidate
ory-network-request-id: d735c903-861e-985f-9ceb-35de9d398928
vary: Origin
{
"created_at": "2023-05-15T09:55:01.911017Z",
"credentials": {
"password": {
"created_at": "2023-05-15T09:55:01.92815Z",
"identifiers": [
"<email>"
],
"type": "password",
"updated_at": "2023-05-15T11:11:20.285296Z",
"version": 0
},
"webauthn": {
"created_at": "2023-05-15T09:55:01.92815Z",
"identifiers": [
"<email>"
],
"type": "webauthn",
"updated_at": "2023-05-15T11:11:20.285296Z",
"version": 1
}
},
"id": "80f862d8-5368-46ad-af35-2c6f14366d66",
"metadata_admin": {},
"metadata_public": {
...
},
"recovery_addresses": [
{
"created_at": "0001-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "0001-01-01T00:00:00Z",
"value": "<email>",
"via": "email"
}
],
"schema_id": "a477822909a87f5be801e919c2e07e4d650b065bee6e858f188a2c95781f087474748cf1d030e3d669c8456273786b8f021cab77f8c06dada0c2c675cf8b84be",
"schema_url": "...",
"state": "active",
"state_changed_at": "2023-05-15T09:55:01.906426Z",
"traits": {
...
},
"updated_at": "2023-05-15T09:55:01.911017Z",
"verifiable_addresses": [
{
"created_at": "0001-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"status": "pending",
"updated_at": "0001-01-01T00:00:00Z",
"value": "<email>",
"verified": false,
"via": "email"
}
]
}limited-photographer-61008
05/15/2023, 2:01 PMAccept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
request headers, and my Content-Type header is Content-Type: application/json; charset=utf-8.ancient-judge-84558
05/15/2023, 3:56 PM'Accept-Encoding': 'gzip, deflate'
'Accept': '*/*'
'Content-Type': 'application/json'