part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The core covers authorization delegated by a user with a browser. Two official extensions (the ext-auth repository) cover the no-user cases and the enterprise case. They are optional, additive, composable and independently versioned.
io.modelcontextprotocol/oauth-client-credentials)For automated systems with no user present: background services, CI/CD, server-to-server integrations, daemons. If there is a human who should authorise, use the standard flow.
Two credential formats:
iss=sub=client_id, aud=token endpoint, exp, iat) with its private key; grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer. No secrets transmitted, short-lived.grant_type=client_credentials with client_id+client_secret. A long-lived secret: store it in a secrets manager, rotate it, bound the scopes, prefer JWT.Client: declare the extension in clientCapabilities.extensions; obtain the token before connecting; Authorization: Bearer; refresh before expiry (they tend to be shorter-lived). Server: validate signature and claims (JWKS), check scopes, and optionally advertise the extension in server/discover. On insufficient_scope, a client of this kind MAY attempt step-up or abort.
The official SDKs ship ready-made providers (ClientCredentialsProvider, PrivateKeyJwtProvider in TypeScript; ClientCredentialsOAuthProvider, PrivateKeyJWTOAuthProvider in Python).
io.modelcontextprotocol/enterprise-managed-authorization)Problem: in an enterprise, having every employee authorise every server is friction and loss of control (no consistent policies, manual onboarding, server-by-server offboarding). Solution: the corporate IdP (Okta, Entra ID, SSO) centrally decides which MCP servers each employee may use.
Flow (SEP-990, based on token exchange and the Identity Assertion JWT Authorization Grant, ID-JAG):
sequenceDiagram
participant C as MCP client
participant IdP as Corporate IdP
participant MAS as MCP server's AS
participant MRS as MCP server
C->>IdP: SSO login (authorization code)
IdP-->>C: ID Token
C->>IdP: exchanges ID Token for ID-JAG (evaluates policy)
IdP-->>C: ID-JAG
C->>MAS: token request with ID-JAG
MAS-->>C: MCP access token (validates ID-JAG: signature, aud, iss, exp)
C->>MRS: MCP requests with the token
Key points: centralised policy in the IdP; single SSO; the client does not redirect the user to the server's AS; immediate central revocation; audit. Client: declare the extension, support SSO and keep the identity assertion, request the ID-JAG and redeem it, organisation-level configuration, handle scopes. Server: declare it in its authorization metadata; optionally publish its descriptor for the IdP admin. Server's AS: validate the ID-JAG, map claims to permissions, account linking by sub (primary) and email (fallback).
private_key_jwt to each AS.1. Which credential format does the client credentials extension recommend?
Short-lived signed assertions, without transmitting the key.
2. In Enterprise-Managed Authorization, who evaluates the access policy?
The IdP decides centrally and the server's AS validates the ID-JAG.
3. Does the client redirect the user to the authorization endpoint of the server's AS in the enterprise flow?
Per-server consent is replaced by the IdP's policy.