A token with no groups claim says nothing about groups¶
Decision 677 · accepted · 2026-09-22
Every provider token
the plane accepts — a login's id token, an MCP client's access token — goes through
Login.from_claims/1, which replaces the person's memberships with the token's
groups claim. Replacing is right: a group a login no longer carries is one the
person has left. Reading an absent claim as an empty one is not: an MCP client's
token is minted for the scopes the client asked for, and read that way the first
tool call a platform admin made through Claude removed every membership they had,
their admin group included. So an absent claim leaves memberships alone, a present
and empty one still clears them, and the MCP resource metadata advertises the
sign-in's scopes beside the MCP one, so the token carries what a login's does.
Proof: Troupe.Plane.LoginGroupsTest.
Governs: apps/troupe_plane/lib/troupe/plane/login.ex