You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No error code or verification rule for the agent_token parameter at the AS #199
At the AS, agent_token is a request parameter of the PS-to-AS token request (§9.1.1). It is not in Signature-Key, because the PS signs that request. -11 leaves two gaps for it.
1. No error code. §11.9.3 says token-specific codes "exist only for tokens carried as request parameters", following the pattern <invalid|expired|revoked>_<parameter>_token. -11 removed invalid_agent_token and expired_agent_token because the agent token always travels in Signature-Key. That is true at the PS but not at the AS. As written, an AS has no code for an agent_token that is malformed, fails signature verification, or has expired.
2. No verification rule. §9.1.1 relies on agent_token for posture claims, the agent_jkt binding, and the upstream aud comparison in §9.4.5 step 3. It never says the AS verifies it. Agent Token Verification (§5.3.3) does not apply as written: step 1 compares cnf.jwk with the key that signed the request, and at the AS that key is the PS's.
Proposed for -12
Add invalid_agent_token and expired_agent_token to §11.9.3, scoped to the AS's agent_token parameter. revoked_agent_token isn't needed: agent token revocation goes only to the PS (§11.12.2), and the PS stops presenting a revoked agent token.
In §9.1.1, have the AS verify agent_token per §5.3.3, replacing step 1. For a direct request, cnf.jwk matches the resource token's agent_jkt. For a sub-agent request, agent_token is the parent's; the AS checks that the subagent_token names it in parent_agent and has the same iss, and compares agent_jkt with the subagent_token's key instead.
Found while writing the -10 → -11 update guide for access servers (upgrade-10-to-11/access-server.md, open item at the end).
L541 (Agent Token Verification): "1. Verify cnf.jwk matches the key used to sign the HTTP request."
L1586 (PS-to-AS Token Request): "When present, the AS binds the issued auth token to the sub-agent, verifying resource_token's agent_jkt against the subagent_token's cnf.jwk."
L1931 (Parent-Mediated Authorization): "It verifies the subagent_token (#agent-token-verification) and that its parent_agent names the parent — the agent that signed the request."
L101 (Error codes): "The proposal for -12 restores the two codes, and has the AS compare agent_token's cnf.jwk with the resource token's agent_jkt."
This adds the parent-mediated four-party case. The PS already checks parent_agent (L1931), the iss match (L1894) and agent_jkt (L1932); its one defect is that L1931 inherits step 1 of L541, which fails because the parent signs and subagent_token's cnf is the sub-agent's key. At the AS, the upgrade guide's abbreviated description of the -12 proposal (L101) would reject every valid request of this kind, since agent_token is the parent's token (L1584). The fix proposed in this issue already makes the parent-mediated exception (parent_agent against agent_token's sub, equal iss, agent_jkt against the sub-agent's cnf), but the guide does not carry it.
Ask: Carry this issue's parent-mediated exception into the upgrade guide. Also: at the PS, verify subagent_token without step 1, since L1932 already ties its key to agent_jkt; at the AS, add verification of its signature and exp to that procedure, with invalid_subagent_token, expired_subagent_token, and revoked_subagent_token when the AS holds a revocation for it (L2594 to 2596).
Four-party. Parent token A_P (cnf K_P); sub-agent token S (cnf K_S, parent_agent = A_P.sub).
Resource token agent_jkt = thumbprint(K_S); the parent signs with K_P.
PS, L1931 via L541 step 1: compares K_S with K_P and rejects a valid request.
AS, upgrade guide's abbreviated -12 description (L101): compares K_P with agent_jkt and rejects it.
AS, -11: only the agent_jkt match on S; no signature, exp, parent_agent or iss check.
Activity
joshuagay commentedon Oct 2, 2026
draft-hardt-oauth-aauth-protocol.md at 28e8258:
cnf.jwkmatches the key used to sign the HTTP request."resource_token'sagent_jktagainst thesubagent_token'scnf.jwk."subagent_token(#agent-token-verification) and that itsparent_agentnames the parent — the agent that signed the request."upgrade-10-to-11/access-server.md at 28e8258:
agent_token'scnf.jwkwith the resource token'sagent_jkt."This adds the parent-mediated four-party case. The PS already checks
parent_agent(L1931), theissmatch (L1894) andagent_jkt(L1932); its one defect is that L1931 inherits step 1 of L541, which fails because the parent signs andsubagent_token'scnfis the sub-agent's key. At the AS, the upgrade guide's abbreviated description of the -12 proposal (L101) would reject every valid request of this kind, sinceagent_tokenis the parent's token (L1584). The fix proposed in this issue already makes the parent-mediated exception (parent_agentagainstagent_token'ssub, equaliss,agent_jktagainst the sub-agent'scnf), but the guide does not carry it.Ask: Carry this issue's parent-mediated exception into the upgrade guide. Also: at the PS, verify
subagent_tokenwithout step 1, since L1932 already ties its key toagent_jkt; at the AS, add verification of its signature andexpto that procedure, withinvalid_subagent_token,expired_subagent_token, andrevoked_subagent_tokenwhen the AS holds a revocation for it (L2594 to 2596).Add -10 to -11 update guides for each role
Protocol: person token endpoint verifies subagent_token without step 1 (