{
  "id": 8466676,
  "title": "Pull the tenant from the auth context, not the request body",
  "url": "https://urgent.news/2026/09/19/pull-the-tenant-from-the-auth-context-not-the-request-body",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-19T13:29:32.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/authbyexample1/pull-the-tenant-from-the-auth-context-not-the-request-body-dag"
  },
  "original_language": "en",
  "account": null,
  "summary": "In multi-tenant apps, a common bug is reading tenant_id from the JSON body or query string and then authorizing against that value. Anyone can send tenant_id=other-customer . The tenant for an authorization check must come from the authenticated principal or server-side session — the same place you already trust for user identity — not from client-supplied fields. Pattern: Authenticate the…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}