mirror of
https://github.com/hanzoai/ai.git
synced 2026-11-20 14:13:23 +00:00
actingOrg answered such a token with user.Owner, which for a person's JWT without `orgs` is the `owner` claim: the org of the application they signed in through, never their tenant. Cloud's boundary resolves that token org-less; ai now does too. A credential that names its org itself (an sk- key, a run key, a program's token, a confined delegation) still acts in that org and selects nothing, on HTTP and on the ZAP door. The test tokens carry the membership set IAM signs for a person (authtest.Home: the home org, as its admin or a member), so the fixtures read the way a real token does.