Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
Platform internalsIdentity and tenancy

Identity and tenancy

People

  1. A person signs in at Camel Accounts in your console and gets a Camel access token.
  2. The console sends it to the platform’s /v1/auth/* endpoints as provider_token.
  3. The platform calls KIDA as its trusted caller ngamia-platform. That caller has two capabilities: issue_identity_token and provision_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, app platform;
    • issuer https://api.ngamia.com/identity;
    • valid for about 5 minutes.
  4. 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 endpointKIDA call
POST /v1/auth/signupPOST /v1/tenants: creates the tenant with the person as owner
POST /v1/auth/workspacesPOST /v1/memberships
POST /v1/auth/tokenPOST /v1/tokens/exchange
POST /v1/auth/joinPOST /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:

CallerSubject
Personkida:<user id>
API key with userext:<user>
API key without userkey:<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.