LearnNewsExamplesServices
Frontmatter
id9562
titleImplement Generic OIDC Discovery and Google OAuth Hands-on Guide
stateClosed
labels
documentationenhancementdeveloper-experienceai
assigneestobiu
createdAtMar 26, 2026, 3:39 PM
updatedAtMar 26, 2026, 3:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/9562
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 26, 2026, 3:55 PM

Implement Generic OIDC Discovery and Google OAuth Hands-on Guide

Closed v12.1.0 documentationenhancementdeveloper-experienceai
tobiu
tobiu commented on Mar 26, 2026, 3:39 PM

Enhance the MCP server authorization to support generic OIDC providers and provide a concrete "hands-on" guide for Google OAuth integration.

Goal: Enable developers to secure Neo.mjs MCP servers using public identity providers without needing to understand the underlying URL structures.

Scope:

  1. Code Enhancement:
    • Update aiConfig.mjs to support AUTH_ISSUER_URL.
    • In Server.mjs, implement OIDC Discovery: fetch {issuer}/.well-known/openid-configuration to dynamically resolve token_endpoint, introspection_endpoint, etc.
    • Retain the existing Keycloak-path logic as a fallback for AUTH_REALM based configs.
  2. Hands-on Guide:
    • Create learn/guides/mcp/GoogleAuthDemo.md.
    • Provide step-by-step setup for Google Cloud Console (Client ID/Secret, Authorized Redirect URIs).
    • Show the exact .env configuration needed.
    • Explain the "Audience" mapping for Google (which can be tricky).
tobiu added the documentation label on Mar 26, 2026, 3:39 PM
tobiu added the enhancement label on Mar 26, 2026, 3:39 PM
tobiu added the developer-experience label on Mar 26, 2026, 3:39 PM
tobiu added the ai label on Mar 26, 2026, 3:39 PM
tobiu assigned to @tobiu on Mar 26, 2026, 3:39 PM
tobiu referenced in commit 4251c45 - "Implement OIDC discovery and add Google OAuth demo guide (#9562)" on Mar 26, 2026, 3:54 PM
tobiu closed this issue on Mar 26, 2026, 3:55 PM
tobiu
tobiu Mar 26, 2026, 3:55 PM

Implemented dynamic OIDC discovery via AUTH_ISSUER_URL. Created Google OAuth hands-on guide and updated navigation. Verified with functional tests.