I’m using self-hosted Ory Kratos and trying to implement multi-tenancy.
Goal:
Same login UI, but credentials isolated per tenant.
Example:
user1 in tenant-a → password X
user1 in tenant-b → password Y
These should be two separate identities, even though the username is the same.
I’ve seen suggestions about adding tenant_id to the identity schema.
But I’m not sure:
Does marking tenant_id + username as identifiers create a composite identity,
or does it just allow login with either field?