billions-fireman-81445
12/11/2024, 6:01 PMa96513fe-9926-4f86-9e59-469b582ff44d
.
My question is, can that ID be treated as a stable/global ID for
• Creating a user stub in our own service, to correlate other objects in our DB to a user
• Ory Permissions recommends subject IDs be uuids alsobillions-fireman-81445
12/11/2024, 6:05 PMafter
hook to create a user stub in my service, with the same uuid as Ory's identity ID (e.g. a96513fe-9926-4f86-9e59-469b582ff44d
)
a. Assume that Ory's ID will never change
b. Use this as a subject ID in Ory Permissions when referring to this user also
2. Use a registration before
hook to create a user stub in my service, returning an ID generated by my service (e.g. 0ujsszwN8NRY24YaXiTIE2VWDTS
), and storing that in metadata_admin.service_id
a. Use my service ID as the subject ID in Ory Permissions
Any recommendations, or foot-guns that I need to be aware of?dazzling-napkin-4938
12/12/2024, 7:48 AMuser.id
referenced in the Kratos identity’s metadata_public propertydazzling-napkin-4938
12/12/2024, 7:48 AMdazzling-napkin-4938
12/12/2024, 7:48 AMmetadata_public
because we need the client web app to be able to read itmagnificent-energy-493
My question is, can that ID be treated as a stable/global IDYes that ID can't be changed after creation and can be used as global ID.