Integrations

Microsoft Entra ID

Sign in to Neurouter with Microsoft Entra ID over OpenID Connect and map Entra security groups to Neurouter Admin and Auditor roles.

Last updated: 2026-11-24 · Markdown

Neurouter signs people in with any OpenID Connect provider. With Microsoft Entra ID, people use their work accounts, and Entra groups can map to Neurouter roles and groups.

1. Register an application in Entra ID

In the Microsoft Entra admin center, register a new application:

  • Redirect URI (platform Web): https://mcp.example.com/api/auth/callback, that is, your PUBLIC_URL followed by /api/auth/callback.
  • Create a client secret and note it with the Application (client) ID and Directory (tenant) ID.
  • To use groups, add a groups claim to the ID token in the app's token configuration. Entra sends group object IDs (GUIDs) by default, so use those IDs in Neurouter's group settings.

2. Configure Neurouter

OIDC_ISSUER=https://login.microsoftonline.com/<tenant-id>/v2.0
OIDC_CLIENT_ID=<application-client-id>
OIDC_CLIENT_SECRET=<client-secret>
OIDC_DISPLAY_NAME="Sign in with Microsoft"
OIDC_SCOPES="openid email profile"
OIDC_GROUPS_CLAIM=groups
OIDC_ADMIN_GROUPS=<object-id-of-admin-group>
OIDC_AUDITOR_GROUPS=<object-id-of-auditor-group>
OIDC_ALLOWED_EMAIL_DOMAINS=example.com

On Kubernetes, the Helm chart takes the same values under oidc.* (oidc.issuer, oidc.clientId, oidc.existingSecret, oidc.scopes, oidc.groupsClaim, oidc.adminGroups, oidc.auditorGroups, oidc.allowedEmailDomains).

How Neurouter uses the claims

  • Neurouter reads claims from the ID token, merged with the userinfo response where the token doesn't already contain them.
  • email identifies the user. Users are rejected if the provider says the email isn't verified.
  • Values in OIDC_GROUPS_CLAIM are matched against OIDC_ADMIN_GROUPS and OIDC_AUDITOR_GROUPS at every sign-in, and against group mappings you create in the console. With OIDC_GROUP_AUTO_CREATE=true, Neurouter creates a group for every value.
  • Role mappings can also be edited in the console; the connection settings themselves are environment-only.

Then grant servers and tools to those groups under Administration → Access control.