mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-06 13:29:08 +00:00
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:
@@ -497,8 +497,6 @@ export class AuthController {
|
||||
tier: api_key.customer_tier,
|
||||
},
|
||||
permissions: [],
|
||||
roles: [],
|
||||
modules: [],
|
||||
};
|
||||
|
||||
return res.status(200).json(userDto);
|
||||
|
||||
Reference in New Issue
Block a user