Align SSO service teams claim format with /tokens and /auth/login#2252
Align SSO service teams claim format with /tokens and /auth/login#2252crivetimihai merged 1 commit intomainfrom
Conversation
a484d26 to
fb37c95
Compare
6fb72fc to
4e774ce
Compare
Signed-off-by: Madhav Kandukuri <madhav165@gmail.com>
4e774ce to
29f4143
Compare
Review SummaryRebased onto main (6076770) - no conflicts. ✅ Code Review - ApprovedThe change correctly aligns the SSO service token # Before (dict format)
token_data["teams"] = [{"id": team.id, "name": team.name, ...} for team in teams]
# After (ID-only format)
token_data["teams"] = [team.id for team in teams]Key findings:
Tests
Note for FutureThere's a pre-existing behavioral difference (outside this PR's scope): SSO admin tokens include the |
Signed-off-by: Madhav Kandukuri <madhav165@gmail.com>
🐛 Bug-fix PR
Closes #2233
📌 Summary
It is a simple change to treat teams in the token claim format as list of team_ids instead of dicts.
Token reading code at the following places is backward compatible to handle dict format for teams.
mcpgateway/auth.py:183-185mcpgateway/main.py:286-310mcpgateway/middleware/token_scoping.py:124-126🧪 Verification
make lintmake test📐 MCP Compliance (if relevant)
✅ Checklist
make black isort pre-commit)