Skip to content
IAM Insights

Explainers · Glossary

Authorization Code grant

Authorization Code Grant · Authorization Code flow · authorization code flow

The OAuth flow in which an app sends the user to sign in, receives a one-time authorization code, and exchanges it at the token endpoint for an access token.

reference →

In our briefings

What our briefings say about Authorization Code grant itself, with the most direct claims first.

  1. Senarath and Dissanayaka write the agent into both requests of OAuth's authorization code grant and into the token that comes out. The authorization request must carry a requested_actor parameter naming the agent. The token request must carry an actor_token, a token issued to the agent that includes a sub claim, and the authorization server must check that sub against the agent the user consented to, with the code bound to the user, the client and that agent. The access token must then carry an act claim holding the agent's sub, so a resource server reads the user from sub and the agent from act.sub. The flow can start from a resource server's 401 or 403 challenge, and that server can be an MCP server or another agent.

    A WSO2 draft puts the AI agent in OAuth consent and the access token, but not how the agent gets its credentialBI-FIND-2025-0127

  2. For a public browser OAuth client, isolating existing tokens does not prevent malicious code in the application’s origin from starting a new Authorization Code flow. The draft’s hidden-frame attack assumes an active authorization-server session and support for silent frame-based flows. The attacker extracts a new authorization code and exchanges it for independent tokens; Demonstrating Proof of Possession (DPoP) does not stop that flow because the attacker can supply its own key. The draft also discourages using a Service Worker to handle OAuth: malicious code can unregister it, open a new browsing context without its interception, and obtain new tokens.

    The browser OAuth draft favors a backend that keeps tokens out of JavaScriptBI-FIND-2026-1642

  3. Tabata reads MCP as requiring an agent to use the OAuth 2.1 authorization code flow to get an access token for an MCP server, while A2A leaves obtaining credentials out of scope and allows API keys and other methods besides OAuth tokens. If A2A runs on weaker credentials such as API keys, he said, "it can become the weakest link in the security chain", and he advised aligning A2A with the same level of assurance as OAuth 2.1, as with MCP.

    Keycloak and SPIRE ran MCP's OAuth flow end to end, but only inside one clusterBI-FIND-2025-0759

›Cited in 12 briefings

Every briefing that discusses this term, newest first.

  1. Keycloak and SPIRE ran MCP's OAuth flow end to end, but only inside one cluster

    Video · · CNCF [Cloud Native Computing Foundation] · Nov 24, 2025

  2. WIMSE's agent draft adds how an agent's access ends and where policy engines fit, without a new requirement

    Draft · · IETF WIMSE Working Group · Pieter Kasselman et al. · Sep 15, 2026

  3. Cross-App Access draft warns that one stolen sign-in token could reach every app the identity provider permits

    Draft · · IETF Datatracker · Aaron Parecki et al. · May 21, 2026

  4. Six companies' agent-auth draft, since adopted by the WIMSE group, keeps credentials out of the model's reach

    Draft · · IETF Internet-Draft (individual submission, since adopted by the WIMSE working group) · Pieter Kasselman et al. · Jul 6, 2026

  5. The browser OAuth draft favors a backend that keeps tokens out of JavaScript

    Draft · · IETF Datatracker · Aaron Parecki et al. · Jul 6, 2026

  6. Microsoft and Google made AI agent identity generally available in April; Okta's notes put its GA in May

    Release tracker · · 8 vendors' release notes · Apr 2026

  7. OAuth 2.1's October draft bans plain PKCE and adds browser-app rules; 2.1-only clients can fail on older servers

    Draft · · IETF Datatracker · Dick Hardt et al. · Mar 2, 2026

  8. OpenID's credential issuance standard is OAuth for wallets, and its recommended wallet check is built for native apps

    Article · · OpenID Foundation · Torsten Lodderstedt et al. · Sep 16, 2025

  9. A WSO2 draft puts the AI agent in OAuth consent and the access token, but not how the agent gets its credential

    Draft · · IETF Datatracker · Thilina Shashimal Senarath et al. · Aug 26, 2025

  10. FAPI 2.0 issues only sender-constrained access tokens and leaves public clients out

    Article · · OpenID Foundation · Daniel Fett et al. · Feb 22, 2025

  11. OpenID Connect Core says only issuer plus subject identify a user; email must never be the key

    Article · · OpenID Foundation · Nat Sakimura et al. · Dec 15, 2023

  12. RFC 6819 warned in 2013 that servers receiving a token may reuse it, and offered audience binding and client-bound tokens

    Article · · RFC Editor · T. Lodderstedt et al. · Jan 2013

Related terms

What appears alongside Authorization Code grant in the same briefings.

OpenID Connect Core 1.0