[OAUTH-WG] Re: Question on ID-JAG topology: Public Agent + API Gateway / MCP Proxy scenario
george@practicalidentity.com Wed, 22 July 2026 12:39 UTC
Return-Path: <george@practicalidentity.com>
X-Original-To: oauth@mail2.ietf.org
Delivered-To: oauth@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 23EF211C440ED for <oauth@mail2.ietf.org>; Wed, 22 Jul 2026 05:39:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784723977; bh=Os1+aRSjbm7k4MI4hOSVuqBHPB8SndfuXnQq8PqJfRk=; h=From:Subject:Date:References:Cc:In-Reply-To:To; b=dmlgAMczEcFqR+nQXeuzvz4m8TxCx9JYugZ2OHTRYpvHEsDDIMEwJqa/urQivR9Qw vwXZACrowvFzXWaetbcfEWLVH05f5WrUpJfas3k4n7q6zssHBf8z/qPgPYipztzDnk 3MWr7uQsoVNIi+u/W/RpSsdyEsoASQ/FlzkP1u+Y=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.196
X-Spam-Level:
X-Spam-Status: No, score=-1.196 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, MIME_HTML_ONLY_MULTI=0.001, MIME_QP_LONG_LINE=0.001, MPART_ALT_DIFF=0.79, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=no autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=practicalidentity.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kOOIeYKcXisg for <oauth@mail2.ietf.org>; Wed, 22 Jul 2026 05:39:36 -0700 (PDT)
Received: from outbound.ms.icloud.com (ms-2005b-snip4-7.eps.apple.com [57.103.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 96EBC11C440E9 for <oauth@ietf.org>; Wed, 22 Jul 2026 05:39:36 -0700 (PDT)
Received: from outbound.ms.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-3a-100-percent-0 (Postfix) with ESMTPS id CDC3B18002E9; Wed, 22 Jul 2026 12:39:28 +0000 (UTC)
X-ICL-RepId: 019f89d6-92c9-7de0-8aac-d88fa64556cc
X-ICL-Out-Info: HUtFAUMHWwJACUgATUQeDx5WFlZNRAJCTQBKHVsHRQNCF0kEVBcOVk1eHVwfUA5yAEsZUBleCFMcUBxWA0MCRgkXG1wAFw1WTUkKUg5DAlERVRFXCFkfWwRAVlACWktAEwRKEwVSB11NVg1HD1geXBQXFUBDXgheH0wcHQ5YBhIATQoONgZZBV4JVgNDBTYSFF1FQx9WCEYZWhlfBFMOXARQDEpDVARfUFQRV1ALX3Y2AUwFVHZGBkUPSx5ZAl0BXXtLBlsaXQs0AEgBKwdeBjUJOEMfVghGGVoZXwRTDlwEUAxKQ1QEX04ZDEodUlZRBUoMXABoD10dWBFd
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=practicalidentity.com; s=sig1; t=1784723970; x=1787315970; bh=r7QVSrXnfnITPHoSuItomfZI/j/TDom90ytQIlDLis0=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:To:x-icloud-hme; b=ltF4+zINf5JLPhgC5Sm8rHJcKXu/L3rdgbke66GFuwYRHYjZzUwj9kHGqixNkXvts1EF42KiqhpF6Bnyu9b9thMrDGdxq8N4Gal2NFw+EIt5oGVep/3AtzzY37k3TyRAwSz60x3W8ahNxmxV6H1xEJi6iVlklkegEIeU2NwQNgS0mVfqMIzB7Wd+uctwH0XWDjy1bY84f0h9+PfRRyUk6Mxe92/uh7N31Iyo9fxirTDy4gi7v4xrWms+dmoLFKM4vgtDWMFb75GR2g9VAsOZQCyOfH4xQ/ICsIXPxS3gEtVdBMxp/vy25OoXUKLSPamWK0CJYwYLNSr14SqDeJOUWQ==
mail-alias-created-date: 1727343745928
Received: from smtpclient.apple (unknown [17.57.154.37]) by p00-icloudmta-asmtp-us-west-3a-100-percent-0 (Postfix) with ESMTPSA id E00D7180013E; Wed, 22 Jul 2026 12:39:27 +0000 (UTC)
Content-Type: multipart/alternative; boundary="Apple-Mail-B4DAA96D-3E33-4408-9A76-C5FB198B86D5"
Content-Transfer-Encoding: 7bit
From: george@practicalidentity.com
Mime-Version: 1.0 (1.0)
Date: Wed, 22 Jul 2026 14:39:14 +0200
Message-Id: <4DF8469A-4563-4563-B356-69D902F054E0@practicalidentity.com>
References: <CAMM5n7w-CFEUSNQBKcopmeu7qenvVr_R-btQMYa29JAiyOvcSw@mail.gmail.com>
In-Reply-To: <CAMM5n7w-CFEUSNQBKcopmeu7qenvVr_R-btQMYa29JAiyOvcSw@mail.gmail.com>
To: Eric Leleu <eric.leleu=40graviteesource.com@dmarc.ietf.org>
X-Mailer: iPad Mail (23F84)
X-Proofpoint-GUID: FtVToeOZZzPKgdRm67tRBmJt9wDnuiiN
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIyMDEyMyBTYWx0ZWRfX+D5Ea8DGIavm OaZ7qCjWjFNjwoMGwv5+IOmMDhhU30N3numCveBxCeLrFGuOua/xk0FfR+4iSRxReIoOGdwPJTB wUlPGOaqIXEqX99vmhUSGuPOa3VyW4uIFdsFzlPDKxKdwdXBlA3v29W+sFyuUWIQtwMYXEeV2sM A3bbg1uoFPpSPijME+ZLdlDSP9WDZpf0EOfC3wAHX/xrTb10uM/iJfZdz69eQiwnU7IWF+Ok1er B3CQuO/o9UpCDpmqTOmhiGWN7VXdi0FSXwUNewovmTKqxvB6LjnGR2Iqf0LYKtM7Vc1/eJ//a4S DRCeW7v1heB7F0Eqa4F
X-Proofpoint-ORIG-GUID: FtVToeOZZzPKgdRm67tRBmJt9wDnuiiN
Message-ID-Hash: LE3NHLEXNE2LDN5RXFE4EKM7BRL67RIZ
X-Message-ID-Hash: LE3NHLEXNE2LDN5RXFE4EKM7BRL67RIZ
X-MailFrom: george@practicalidentity.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-oauth.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: oauth <oauth@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [OAUTH-WG] Re: Question on ID-JAG topology: Public Agent + API Gateway / MCP Proxy scenario
List-Id: OAUTH WG <oauth.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/HiBpXtxdgVsioIinnJqcS_1v9PQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Owner: <mailto:oauth-owner@ietf.org>
List-Post: <mailto:oauth@ietf.org>
List-Subscribe: <mailto:oauth-join@ietf.org>
List-Unsubscribe: <mailto:oauth-leave@ietf.org>
On Jul 22, 2026, at 2:24 PM, Eric Leleu <eric.leleu=40graviteesource.com@dmarc.ietf.org> wrote:
_______________________________________________Hi all,
I'd like to raise a topology question about the ID-JAG draft (draft-ietf-oauth-identity-assertion-authz-grant) that I expect to come up often as agentic/MCP deployments grow, and I don't think the current text resolves it from my understanding.
Topology Description:
----------------------------
- An AI coding agent (e.g. Claude Code) acts as an MCP Client. It is registered at the enterprise IdP as a *public* client (native/CLI app, PKCE, no client secret).
- The agent authenticates directly against the enterprise IdP. As per OIDC Core, the resulting ID Token's `aud` is the agent's own client_id. In the same flow the agent also obtains an access token whose audience/resource is an MCP Gateway sitting in front of it.
- The MCP Gateway aggregates several upstream MCP servers. Each upstream server is protected by its own Resource Authorization Server, and each of those independently trusts the same enterprise IdP.
- Per ID-JAG, to reach a given upstream server the Gateway needs an access token minted through the ID-JAG flow: Token Exchange at the IdP to mint an ID-JAG (aud = upstream AS) and then execute JWT-Bearer redemption at that AS.
The conflict :
-----------------
Section 4.3.3 [1], "IdP Token Exchange Processing Rules", requires that when the subject_token presented in the Token Exchange call is an identity assertion (ID Token), "the IdP MUST validate the assertion and MUST validate that the audience of the assertion (e.g. the aud claim of the ID Token or SAML Audience) matches the client_id of the client authentication of the request". In the Gateway topology above, this rule creates a dilemma where neither party can execute the exchange:
1. The agent is the audience of the ID Token, but the agent has no reason to call Token Exchange itself — it doesn't know which upstream AS/audience a given MCP tool call needs, and as a public client it's also not well positioned to be trusted with that capability directly. As defined in the draft "this specification SHOULD only be supported for confidential clients."
2. The Gateway is the party that actually needs the ID-JAG (it knows the target upstream AS), and it is the Gateway that would authenticate the Token Exchange call. But the ID Token's `aud` is the agent's client_id, not the Gateway's. Per the mandatory audience check above, the IdP must reject that exchange no matter how the ID Token reaches the Gateway (forwarded by the agent or otherwise).
From my understanding, neither party in this agent-to-gateway architecture can legally execute the ID-JAG exchange under the current specification.
Did I miss a mechanism already defined in the draft (or in draft-ietf-oauth-identity-chaining) to handle this delegation/proxy pattern?
Is there ongoing work to address multi-hop or API Gateway patterns where the identity assertion's audience differs from the calling proxy's client_id?
Thanks,
Eric
[1] https://datatracker.ietf.org/doc/html/draft-ietf-oauth-identity-assertion-authz-grant#name-processing-rules" rel="nofollow">https://datatracker.ietf.org/doc/html/draft-ietf-oauth-identity-assertion-authz-grant#name-processing-rules--http://youtube.com/c/Graviteesource?sub_confirmation=1" target="_blank" rel="nofollow">
https://lh7-qw.googleusercontent.com/docsz/AD_4nXeTtsh5_4js2bF4xwLkbvfkWdnIscD4xAKfnNSsi2QQoLriRONykM18g_1VXwfPhLORdvpJrY0QzEe-2byI6GvDO_85u6zr9OjdE1Ni_6p1wtY3-qgQ_73zMwu5UainbPY8J8pq?key=kMQ5K8D4nlMb9fiw8P9jDP8s" width="84" height="80">
Eric LELEU
Staff Software Engineer
E eric.leleu@graviteesource.com
Hold Nothing Back
https://lh7-qw.googleusercontent.com/docsz/AD_4nXfm2HQdKupLwmOCISbirkl9St-opEPRa0VL4EscOnigRp0gmVtQvkvUtuQh86j8B3r2EbGJZias47w5nCoXHhiuiKumiMmvxqevYIkQs-Zq_KCwn4tmWNBl3xgFPpGKWg?key=kMQ5K8D4nlMb9fiw8P9jDP8s" width="48" height="56.3649095411792"> https://www.linkedin.com/company/gravitee-io" target="_blank" rel="nofollow">
https://lh7-qw.googleusercontent.com/docsz/AD_4nXdanddCBT27CO9wUP7QJMIYz6h4ee2gMwGH3Apc7JnSMhhPuqvE_Q2gK1WXdcPNLcTD5-BInLTyfPYOQoDkJWGolu5A8P0wZ8ZHtkxl68bHTlVGHUW2vOvDbqciAxUNnPyXlmh_Fg?key=kMQ5K8D4nlMb9fiw8P9jDP8s" width="36" height="39.99999999999998">
OAuth mailing list -- oauth@ietf.org
To unsubscribe send an email to oauth-leave@ietf.org
- [OAUTH-WG] Question on ID-JAG topology: Public Ag… Eric Leleu
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… george
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… morganLR
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Karl McGuinness
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Eric Leleu
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… morganLR
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Max Gerber
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… morganLR
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Eric Leleu
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Kieran Sweeney
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Lombardo, Jeff
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Barak Shelef
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Karl McGuinness
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… Eric Leleu
- [OAUTH-WG] Re: Question on ID-JAG topology: Publi… morganLR