Two patterns
Almost every integration is one of two patterns. Both validate an inboundAuthorization: Bearer <jwt> against your IdP’s JWKS. You can use the same Okta or
Entra tenant for both — they are two TrustGate auth types, not two different IdPs.
How OIDC and OAuth2 relate
In the industry, OIDC is built on OAuth2 (login + identity claims). In TrustGate they are separate Auth types with different jobs:
So: same IdP, two auths if you need both patterns — an OIDC auth for LLM identity
routing, and an OAuth2 auth for MCP login. MCP cannot use OIDC because agents need
the gateway to run the interactive OAuth login.
An Identity-based LLM consumer carries exactly one identity auth (OIDC or
OAuth2). LLM consumers can also use API key. MCP consumers use OAuth2 only — not OIDC or API key.
Built-in provider (self-hosted only)
On a self-hosted External install the product console can act as the authorization server itself, so MCP consumers work without an external IdP — useful for a proof of concept before you involve Okta or Entra. It is enabled by default there and is not available in Hybrid, where the control plane stays on NeuralTrust SaaS. The built-in provider only ever applies to an MCP consumer that has no OAuth2 auth of its own. As soon as you attach one, that IdP is used exclusively — the built-in provider cannot widen access to a consumer you have deliberately bound to Okta or Entra. The manuals below remain the path for production.Where to configure in the app
Rules that apply to every provider
- Audiences is required and must match the token’s
audclaim. - Required scopes must not include OIDC protocol scopes (
openid,profile,email,offline_access) — TrustGate rejects them. - Scope matching checks the token’s
scp/scopeclaim and Auth0/Entra-stylepermissionsandrolesarrays — so a permission can be expressed as a scope or as a role claim. - For OAuth2 interactive MCP login, choose Setup → Interactive login · IdP with
discovery (Okta, Entra ID), leave Session mode disabled, and register
{mcp_base_url}/oauth/callbackas a redirect URI on the IdP app (Okta: OIDC Web Application, not API Services). - JWKS URL can usually stay under Token validation · advanced for discovery IdPs; TrustGate resolves keys from the issuer when needed.
Provider manuals
Okta
Custom authorization server, scopes, groups claim, and both app patterns.
Entra ID
App registration, exposed API scopes, app roles, and both app patterns.