Populate AccountType in auth shim from mcdsl

Now that mcdsl/auth.TokenInfo carries AccountType (from the updated
MCIAS validate response), the MCR auth shim passes it through to
Claims.AccountType. Policy engine rules matching on account type
now work correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 17:45:21 -07:00
parent 78f3eae651
commit 1454f56adb

View File

@@ -58,6 +58,7 @@ func (c *Client) ValidateToken(token string) (*Claims, error) {
} }
return &Claims{ return &Claims{
Subject: info.Username, Subject: info.Username,
AccountType: info.AccountType,
Roles: info.Roles, Roles: info.Roles,
}, nil }, nil
} }