Skip to content

Fix: Restore groups scope in DefaultOAuthCIMDScopes#518

Merged
teemow merged 1 commit intomainfrom
fix/restore-groups-scope-cimd
Mar 17, 2026
Merged

Fix: Restore groups scope in DefaultOAuthCIMDScopes#518
teemow merged 1 commit intomainfrom
fix/restore-groups-scope-cimd

Conversation

@teemow
Copy link
Member

@teemow teemow commented Mar 17, 2026

Summary

  • Restores groups to DefaultOAuthCIMDScopes (openid profile email groups offline_access)
  • The groups scope was incorrectly removed in Fix: OIDC scope handling for multi-provider compatibility #514 as "Dex-specific", but it is required for group-based RBAC in downstream services like mcp-kubernetes and is mapped for customers
  • Provider-level scope filtering in mcp-oauth already handles provider differences correctly: Google's filterGoogleScopes strips unsupported scopes, Dex's filterDexScopes keeps groups

Test plan

  • All unit tests pass
  • CI should be green (no behavioral change in tests, only restoring the previously-working default)

Made with Cursor

The groups scope was incorrectly removed in e983c81 as "Dex-specific".
Groups are required for RBAC decisions in downstream services like
mcp-kubernetes and are mapped for customers. Provider-level scope
filtering in mcp-oauth (filterGoogleScopes, filterDexScopes) already
handles provider differences correctly -- Google strips unsupported
scopes, Dex keeps groups.

Made-with: Cursor
@teemow teemow requested a review from a team as a code owner March 17, 2026 16:37
@teemow teemow merged commit 3fd4417 into main Mar 17, 2026
8 checks passed
@teemow teemow deleted the fix/restore-groups-scope-cimd branch March 17, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant