Skip to content

Fix: OIDC scope handling for multi-provider compatibility#514

Merged
teemow merged 3 commits intomainfrom
fix/issue-513-oidc-scope-handling
Mar 17, 2026
Merged

Fix: OIDC scope handling for multi-provider compatibility#514
teemow merged 3 commits intomainfrom
fix/issue-513-oidc-scope-handling

Conversation

@teemow
Copy link
Member

@teemow teemow commented Mar 17, 2026

Summary

Closes #513

Test plan

  • All unit tests pass (make test)
  • All 166 BDD scenarios pass (muster test --parallel 50)
  • Manual test with Google OAuth provider (groups scope no longer causes rejection)
  • Manual test with Dex provider (openid always present, groups still works for agent auth)

Made with Cursor

- Bump mcp-oauth to v0.2.84 with provider-aware scope filtering:
  Google now drops unsupported scopes like "groups", and "openid" is
  force-merged for OIDC providers even when clients send non-standard scopes.
- Remove "groups" from DefaultOAuthCIMDScopes since it is Dex-specific
  and should not be a universal default for CIMD scopes across providers.

Made-with: Cursor
@teemow teemow requested a review from a team as a code owner March 17, 2026 11:45
teemow added 2 commits March 17, 2026 12:52
The test used a 100ms TTL with 70ms sleeps, leaving only 30ms margin.
On loaded CI machines, sleep(70ms) can easily stretch past the TTL
causing spurious failures. Increase TTL to 2s with 100ms sleeps.

Made-with: Cursor
The mock client's ListTools returned instantly, so singleflight had no
window to deduplicate concurrent calls. Add a gate channel that blocks
ListTools until released, forcing overlapping calls inside singleflight.

Made-with: Cursor
@teemow teemow merged commit e983c81 into main Mar 17, 2026
6 of 7 checks passed
@teemow teemow deleted the fix/issue-513-oidc-scope-handling branch March 17, 2026 12:27
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.

Fix OIDC scope handling for multi-provider compatibility

1 participant