refactor(auth): /auth/me returns permissions only (drop roles/modules)

Keep Maestro a pure identity provider: /auth/me exposes the user's
permission claim strings and nothing consumer-specific. Consumers derive
whatever meaning they need (roles, module access, groups) from the claim
vocabulary — claims are already namespaced group:action.

- UserDTO: drop roles[]/modules[], keep permissions[].
- Helper shrinks to a generic seqid->claim translation
  (orchest-identity.ts -> permission-claims.ts, translateSeqidsToClaims).
- api-key branch: permissions: [] only.

The roles/modules derivation moves entirely to the consumer (Orchest's
auth-server adapter).

Co-Authored-By: WOZCODE <contact@withwoz.com>
This commit is contained in:
Rafael
2026-08-24 16:30:33 -03:00
co-authored by WOZCODE
parent a5a685ee3f
commit cd21fd0b7b
8 changed files with 61 additions and 133 deletions
-2
View File
@@ -497,8 +497,6 @@ export class AuthController {
tier: api_key.customer_tier,
},
permissions: [],
roles: [],
modules: [],
};
return res.status(200).json(userDto);