Identity and tenancy
People
- A person signs in at Camel Accounts in your console and gets a Camel access token.
- The console sends it to the platform’s
/v1/auth/*endpoints asprovider_token. - The platform calls KIDA as its trusted caller
ngamia-platform. That caller has two capabilities:issue_identity_tokenandprovision_tenant. KIDA verifies the token with Camel Accounts (signature, audience, and a userinfo check for revocation), checks the membership, and issues a KIDA access token:- profile
kida-access-token-v1, RS256; - audience
ngamia-platform, appplatform; - issuer
https://api.ngamia.com/identity; - valid for about 5 minutes.
- profile
- The person uses that token as their bearer. The platform verifies it
against KIDA’s published keys
(
https://api.ngamia.com/identity/.well-known/jwks.json) and checks the exact claims.
KIDA owns who belongs to which workspace. The platform owns roles, and treats a member it removed as removed even while a KIDA membership exists.
| Platform endpoint | KIDA call |
|---|---|
POST /v1/auth/signup | POST /v1/tenants: creates the tenant with the person as owner |
POST /v1/auth/workspaces | POST /v1/memberships |
POST /v1/auth/token | POST /v1/tokens/exchange |
POST /v1/auth/join | POST /v1/tenants/{id}/members, only after the invite code checks out |
Apps
API keys (ngk_…) are the platform’s own credentials: 32 random bytes,
stored as SHA-256 hashes, scoped, optionally expiring, revocable at once.
Subjects
Every run is bound to one subject inside one workspace:
| Caller | Subject |
|---|---|
| Person | kida:<user id> |
API key with user | ext:<user> |
API key without user | key:<key id> |
NAK, TE and KUMBUKUMBU receive the subject and workspace in signed assertions. A run, its events and any memory are only reachable with the same subject.