Sequence
Who sends what, in order. This diagram has its own controls and timer.
Architecture
The same flow drawn as components, with its own controls and timer. It loops on its own clock, separate from the sequence diagram. Step numbers match the sequence diagram; a moving dot shows the current message, and chips name the token it carries.
Resource Connection Types (Okta Deck, April 2026)
| Resource Connection | What It Grants | Works With | Returned | User Context |
|---|---|---|---|---|
| Authorization Server | Access to resources protected by an Okta custom authorization server | Apps supporting Cross App Access | Access token (ephemeral, with a TTL) | Yes (sub + act.sub) |
| Secret | A static credential vaulted in Okta Privileged Access | Legacy systems | The secret, in any format | No |
| Service Account | A static credential for an app defined in Universal Directory, vaulted in Okta Privileged Access | SaaS apps with static credentials | Username and password | No |
| Application | OAuth access to a custom or third-party resource server | Apps supporting OAuth STS with consent | Access token (ephemeral) | Yes (user-consented) |
| MCP Server | Access to resources protected by a custom or third-party MCP server | MCP servers, through OAuth STS | Access token (ephemeral) | Yes (user-consented) |
Every technical term used in the diagrams and tiles on this page. Okta terms link to developer.okta.com where a page covers them. Terms from Okta’s April 2026 deck are labeled as such, and standards link to the RFC.
- Access Policy Okta Concept
- A rule set on an authorization server that decides who may get tokens, for which scopes. If no rule matches the user and scope, the exchange fails with access denied.Reference: API Access Management
- Access Token Token
- A credential presented to a Resource Server as a Bearer token. Its audience names the API and its scopes list what it allows.Reference: OAuth 2.0 and OpenID Connect Overview
- access_denied Error
- The request was refused, for example by a policy or by the user. The deck does not name the exact error for a refused exchange, so the Exchange Denied tab shows this as the likely form.Reference: RFC 6749 section 4.1.2.1
- act (Actor) Claim Claim
- A claim whose sub identifies the party currently acting for the user. Earlier actors in a chain are nested under act.act, and Okta limits a chain to five actors.Reference: Set Up OAuth 2.0 On-Behalf-Of Token Exchange
- actor_token Parameter
- A token that identifies the acting party, here the agent. When it is present, actor_token_type is required.Reference: RFC 8693 section 2.1
- actor_token_type Parameter
- A URN that says what kind of token the actor_token is.Reference: RFC 8693 section 2.1
- Agent-to-Agent Okta Concept
- A Resource Connection type where one AI agent calls another agent as a downstream resource protected by an Okta custom authorization server. The original identity is carried across both agents through token exchange.Reference: Set Up AI Agent Token Exchange
- AI Agent Okta Concept
- A workload identity in Okta that represents an agent as its own principal. It has its own credentials, its Resource Connections and, through token exchange, acts for a signed-in user.Reference: Set Up AI Agent Token Exchange
- alg (Algorithm) Claim
- A header field that names the signature algorithm. The sample tokens on this page use RS256.Reference: RFC 7515 section 4.1.1
- amr (Authentication Methods) Claim
- Lists how the user authenticated, for example password and MFA. It is carried in the ID token.Reference: OpenID Connect Core 1.0
- app.oauth2.as.token.grant Okta Concept
- The System Log event type recorded for a request to a custom authorization server’s token endpoint, successful or not.Reference: Event Types
- AssumeRoleWithWebIdentity AWS
- The AWS STS operation that exchanges an OIDC token for temporary AWS credentials. It is an AWS Query API call, not an OAuth request.Reference: AWS: AssumeRoleWithWebIdentity
- aud (Audience) Claim Claim
- Which Resource Server the token is for. An API should reject a token whose aud is not its own.Reference: RFC 7519 section 4.1.3
- audience Parameter
- The logical name of the service the new token is meant for. The exchanged token is accepted only by a Resource Server that matches it.Reference: RFC 8693 section 2.1.1
- Authorization Code Token
- A short-lived, single-use value the third party gives Okta after the user consents. Okta redeems it at the third party’s token endpoint.Reference: RFC 6749 section 4.1
- Authorization Server Role
- The server that authenticates the Client, evaluates policy and issues tokens. Okta has an org authorization server and custom authorization servers; token exchange at a custom server is addressed with its own issuer.Reference: Authorization Servers
- AWS Signature Version 4 (SigV4) AWS
- The scheme AWS uses to sign API requests with the temporary credentials, shown in the Authorization header of the S3 call.Reference: AWS Signature Version 4 signing process
- AWS STS AWS
- Amazon’s Security Token Service, a separate service from Okta’s. It exchanges a trusted token for short-lived AWS credentials.Reference: AWS: AssumeRoleWithWebIdentity
- Bearer Token Token
- A token that works for anyone who holds it. It is sent in the Authorization header as "Bearer" followed by the token, and only over HTTPS.Reference: OAuth 2.0 and OpenID Connect Overview
- Brokered Consent Okta Concept
- The user approves access at a third-party app once. Okta then keeps the refresh token and hands the agent only short-lived access tokens.Reference: Set Up AI Agent Token Exchange
- Cached Access Token Okta Concept
- An unexpired access token Okta already holds for the user and third party. A request is answered from the cache without contacting the third party again.Reference: Source: Okta Deck (Apr 2026)
- Chained Exchange Okta Concept
- A sequence of exchanges where each hop narrows the audience and scope, so the final API sees the user and every agent that acted.Reference: Set Up OAuth 2.0 On-Behalf-Of Token Exchange
- cid (Client ID) Claim
- In Okta access tokens, the client ID of the app the token was issued to.Reference: Customize Tokens Returned From Okta
- Client Role
- The application that asks for tokens. Here it is the AI agent, which authenticates to Okta with a signed JWT (private_key_jwt).Reference: OAuth 2.0 and OpenID Connect Overview
- Client Credentials Grant Grant
- A request where the Client authenticates as itself, with no user. In the Delegation tab the agent uses it, with private_key_jwt, to get its own token.Reference: Implement Authorization by Grant Type
- client_assertion Parameter
- A JWT the Client signs with its private key to prove its identity to the Token Endpoint.Reference: RFC 7523 section 2.2
- client_assertion_type Parameter
- Always urn:ietf:params:oauth:client-assertion-type:jwt-bearer when the Client authenticates with a signed JWT.Reference: RFC 7523 section 2.2
- client_secret Parameter
- A secret the Client sends to prove its identity. Here it is Okta’s own secret at the third party (GitHub), not the agent’s.Reference: RFC 6749 section 2.3.1
- ClientAuthType Okta Concept
- A System Log field that records how the Client authenticated, for example private_key_jwt.Reference: Source: Okta Deck (Apr 2026)
- CloudTrail AWS
- AWS’s audit log. It records the AssumeRoleWithWebIdentity call with the token’s subject, so actions trace back to a user.Reference: AWS CloudTrail
- Cross App Access Okta Concept
- Okta’s way of letting an app or agent reach another app for a user, approved by an administrator. It uses ID-JAG assertions and a second exchange at the resource app’s authorization server.Reference: Set Up AI Agent Token Exchange
- Custom Authorization Server Okta Concept
- An authorization server you create in Okta, with its own issuer, signing key, scopes, claims and access policies. Token exchange for your own APIs happens here.Reference: Authorization Servers
- Delegation Okta Concept
- The agent keeps its own identity and acts for the user. Requested with a subject_token and an actor_token, and shown in the act claim.Reference: RFC 8693 section 1.1
- Delegation Chain Limit Okta Concept
- Okta documents a limit of five actors in one chain of act claims.Reference: Set Up OAuth 2.0 On-Behalf-Of Token Exchange
- Down-Scoped Token Okta Concept
- A token with a narrower audience or scope than the one it was exchanged from, and often a shorter lifetime.Reference: RFC 8693 section 2.1.1
- DurationSeconds AWS
- How long the temporary credentials last.Reference: AWS: AssumeRoleWithWebIdentity
- End-User Role
- The person using the application. In the delegation tabs the access token’s sub claim identifies this user.Reference: OAuth 2.0 and OpenID Connect Overview
- Ephemeral Token Okta Concept
- A short-lived token. Resource Connections that return access tokens are described as ephemeral, so a leaked token stops working soon.Reference: Source: Okta Deck (Apr 2026)
- Error Response Error
- A failed token request returns HTTP 400 with an error code and error_description. The code tells the Client what kind of recovery, if any, to try.Reference: RFC 6749 section 5.2
- error_description Parameter
- Human-readable text that accompanies an error code in a failed token response.Reference: RFC 6749 section 5.2
- Exchange Policy Okta Concept
- The checks Okta runs on a token exchange: whether the subject token is valid, whether the agent may exchange tokens, and whether the audience and scope are allowed. A failed check ends in an error.Reference: Term used on this page; Okta applies it through the authorization server's access policy
- exp (Expiration) Claim
- The time after which the token must not be accepted.Reference: RFC 7519 section 4.1.4
- expires_in Parameter
- How many seconds the issued token is valid for.Reference: RFC 6749 section 5.1
- Fail Closed Okta Concept
- On any exchange error the agent stops instead of trying something broader. It never falls back to the user’s own token.Reference: Term used on this page
- grant_type Parameter
- Tells the Token Endpoint which kind of request this is. Token exchange uses urn:ietf:params:oauth:grant-type:token-exchange.Reference: RFC 8693 section 2.1
- GrantedScopes / RequestedScopes Okta Concept
- System Log fields in a token request event. RequestedScopes is what the Client asked for; GrantedScopes is what Okta issued, and is blank when nothing was issued.Reference: Source: Okta Deck (Apr 2026)
- GrantType (System Log) Okta Concept
- A System Log field that records which grant the request used, for example token-exchange.Reference: Source: Okta Deck (Apr 2026)
- IAM OIDC Provider AWS
- An AWS object that tells IAM to trust tokens issued by a particular OpenID Connect provider, here Okta.Reference: AWS: OIDC Federation
- IAM Permissions Policy AWS
- The policy on the assumed role that decides which AWS actions are allowed, for example s3:ListBucket.Reference: AWS: IAM Roles
- iat (Issued At) Claim
- The time the token was issued.Reference: RFC 7519 section 4.1.6
- ID Token Token
- An OpenID Connect token that says which user signed in. The agent presents it to Okta as the subject token; it is not sent to APIs.Reference: OAuth 2.0 and OpenID Connect Overview
- Impersonation Okta Concept
- The agent receives the user’s rights and is indistinguishable from the user. Requested with only a subject_token.Reference: RFC 8693 section 1.1
- interaction_required Error
- Okta returns this error when the user has to act first, for example to consent at a third party. The response includes where to send them.Reference: Source: Okta Deck (Apr 2026)
- interaction_uri Parameter
- The link in an interaction_required response where the user completes sign-in or consent.Reference: Source: Okta Deck (Apr 2026)
- invalid_grant Error
- The grant, such as a subject token, is invalid, expired or revoked.Reference: RFC 6749 section 5.2
- invalid_request Error
- The request is missing a parameter or is malformed.Reference: RFC 6749 section 5.2
- invalid_scope Error
- The requested scope is invalid, unknown, malformed or not allowed.Reference: RFC 6749 section 5.2
- invalid_target Error
- The requested audience or resource is not one the Client may get a token for.Reference: RFC 8707 section 2
- issued_token_type Parameter
- Returned in the response: the kind of token Okta actually issued, as a URN.Reference: RFC 8693 section 2.2.1
- Issuer (iss) Okta Concept
- The URL that names an authorization server and appears in the tokens it signs. For a custom server it is https://{org}/oauth2/{authorizationServerId}.Reference: Authorization Servers
- JSON-RPC Standard
- The message format MCP uses. The MCP tab shows an initialize call and a tools/call request.Reference: Model Context Protocol: Introduction
- jti (Token ID) Claim
- A unique identifier for the token. Authorization servers can use it to spot replay of a client assertion.Reference: RFC 7519 section 4.1.7
- JWKS Endpoint
- The set of public keys an authorization server publishes so that anyone can verify the signatures on its tokens.Reference: Validate Access Tokens
- JWT (JSON Web Token) Standard
- A signed token format with a header, a payload of claims and a signature. Okta access and ID tokens are JWTs.Reference: Validate Access Tokens
- kid (Key ID) Claim
- A header field that says which key in the JWKS verifies this token.Reference: RFC 7515 section 4.1.4
- Managed Connections (Renamed) Okta Concept
- The earlier name for Resource Connections. Older screenshots and notes may still use it.Reference: Source: Okta Deck (Apr 2026)
- may_act (Authorized Actor) Claim Claim
- A claim in the subject token that names the only party allowed to act for the user. If it is present, the actor must match it.Reference: RFC 8693 section 4.4
- MCP (Model Context Protocol) Standard
- An open protocol that lets AI applications call tools and data sources exposed by MCP servers.Reference: Model Context Protocol: Introduction
- MCP Server Role
- A server that exposes tools to agents over MCP. In the MCP tab, Okta defines it in Universal Directory and maps it to the agent as a Resource Connection.Reference: Model Context Protocol: Introduction
- no_matching_policy Error
- The reason Okta records in the System Log when no Access Policy rule matches the user, client and scope, so no token is issued.Reference: Source: Okta Deck (Apr 2026)
- OAuth STS Okta Concept
- Okta’s token exchange for third-party apps and MCP servers. The request asks for urn:okta:params:oauth:token-type:oauth-sts and Okta brokers the third party’s tokens.Reference: Source: Okta Deck (Apr 2026)
- OpenID Connect (OIDC) Standard
- An identity layer on top of OAuth 2.0 that adds the ID token. The agent’s user signs in with it before any exchange.Reference: OAuth 2.0 and OpenID Connect Overview
- Orchestrator Agent Role
- In the chained exchange, the first agent. It receives the user’s request and exchanges the user’s token for one it can pass on to the sub-agent.Reference: Illustrative role used in the Chained Exchange tab
- Org Authorization Server Okta Concept
- The authorization server built into every Okta org. It issues tokens for Okta’s own APIs; custom authorization servers issue tokens for yours.Reference: Authorization Servers
- outcome.result / outcome.reason Okta Concept
- System Log fields that say whether an event succeeded (SUCCESS or FAILURE) and why.Reference: Okta System Log API event object, as shown in this page's sample event
- Pairwise Subject Identifier Claim
- An OpenID Connect term for a user identifier that differs for each client. This page uses it loosely for the opaque Okta user ID used as sub, instead of an email address, because AWS writes sub to CloudTrail.Reference: OpenID Connect Core section 8
- PKCE Standard
- Proof Key for Code Exchange. It binds an authorization code to the app that asked for it. The MCP tab refers to the normal sign-in that uses it.Reference: OAuth 2.0 and OpenID Connect Overview
- private_key_jwt Okta Concept
- A client authentication method where the Client signs a JWT with its private key instead of sending a secret.Reference: Implement OAuth for Okta With a Service App
- redirect_uri Parameter
- Where the third party sends the user (with the authorization code) after consent. It must exactly match a registered value.Reference: RFC 6749 section 3.1.2
- Refresh Token Token
- A credential used to get new access tokens without asking the user again. In OAuth STS Okta stores it and the agent never sees it.Reference: Refresh Access Tokens and Rotate Refresh Tokens
- Refresh Token Rotation Okta Concept
- Replaces a refresh token with a new one so that a stolen token is useful once. Whether Okta returns a new refresh token with a new access token depends on the refresh token lifetime setting, and Okta can detect reuse of an old token. In OAuth STS, Okta keeps the rotated token for the agent.Reference: Refresh Access Tokens and Rotate Refresh Tokens
- requested_token_type Parameter
- What the Client asks to receive. For OAuth STS Okta uses urn:okta:params:oauth:token-type:oauth-sts.Reference: RFC 8693 section 2.1
- resource Parameter
- The URI of the service the new token is meant for. In OAuth STS requests it has to match a Resource Connection (Okta Deck, Apr 2026).Reference: RFC 8707 section 2
- Resource Connection Okta Concept
- A setting on an AI agent that says which resource it may reach, how it authenticates and what it receives back. Types are Authorization Server, Secret, Service Account, Application and MCP Server.Reference: Set Up AI Agent Token Exchange
- Resource Connection Type: Application Okta Concept
- OAuth access to a custom or third-party resource server, with the user’s one-time consent brokered by Okta. Returns an ephemeral access token.Reference: Set Up AI Agent Token Exchange
- Resource Connection Type: Authorization Server Okta Concept
- Grants the agent access to resources protected by an Okta custom authorization server, using Cross App Access. Returns an ephemeral access token that carries the user and the agent.Reference: Set Up AI Agent Token Exchange
- Resource Connection Type: MCP Server Okta Concept
- Access to an MCP server, through OAuth STS and the user’s consent. Returns an ephemeral access token.Reference: Set Up AI Agent Token Exchange
- Resource Connection Type: Secret Okta Concept
- A static credential for a downstream resource, vaulted in Okta Privileged Access. Returned as the secret itself, in any format.Reference: Set Up AI Agent Token Exchange
- Resource Connection Type: Service Account Okta Concept
- A static credential for an app defined in Universal Directory, vaulted in Okta Privileged Access. Returned as a user name and password.Reference: Set Up AI Agent Token Exchange
- Resource Owner Role
- The person who can grant access to their own data. On this page it is the End-User on whose behalf the agent acts.Reference: RFC 6749 section 1.1
- Resource Server Role
- The API that accepts access tokens and enforces their audience and scopes. In the chain examples it is the downstream Tickets API or the MCP server.Reference: Validate Access Tokens
- response_type Parameter
- Tells the authorization endpoint which response is wanted. code means an authorization code.Reference: RFC 6749 section 3.1.1
- Role Trust Policy AWS
- The part of an IAM role that says who may assume it, for example tokens with a specific aud and sub from the Okta provider.Reference: AWS: IAM Roles
- RoleArn AWS
- The identifier of the IAM role the caller wants to assume.Reference: AWS: AssumeRoleWithWebIdentity
- RoleSessionName AWS
- A name for the assumed-role session. AWS records it in CloudTrail to trace actions to a caller.Reference: AWS: AssumeRoleWithWebIdentity
- scope Parameter
- The permissions the token carries. An exchange can narrow the scope of the subject token but not widen it.Reference: OAuth 2.0 and OpenID Connect Overview
- scp (Scopes) Claim Claim
- The list of scopes in an Okta access token.Reference: Customize Tokens Returned From Okta
- Security Token Service (STS) Okta Concept
- An authorization server endpoint that issues tokens in exchange for other tokens. Okta plays this role at its Token Endpoint. AWS STS is a separate service with its own API.Reference: RFC 8693 section 1
- sub (Subject) Claim
- Who the token is about. In a delegated token it is the user, and the agent appears in the act claim.Reference: RFC 7519 section 4.1.2
- Sub-Agent Role
- In the chained exchange, an agent called by another agent. Each hop narrows the audience and scope and adds another act entry.Reference: Illustrative role used in the Chained Exchange tab
- subject_token Parameter
- The token that represents the party on whose behalf the request is made, usually the user’s access or ID token. Always sent with subject_token_type.Reference: RFC 8693 section 2.1
- subject_token_type Parameter
- A URN that says what kind of token the subject_token is, for example urn:ietf:params:oauth:token-type:access_token or :id_token.Reference: RFC 8693 section 2.1
- System Log Okta Concept
- Okta’s record of events in an org. A failed token exchange appears here with its outcome, reason and scopes.Reference: Event Types
- Temporary Credentials AWS
- An access key ID, secret access key and session token that AWS STS returns. They expire and are used to sign AWS API calls.Reference: AWS: AssumeRoleWithWebIdentity
- Third-Party Authorization Server Role
- The authorization server of an outside app such as GitHub. In OAuth STS, Okta redirects the user there once for consent and then stores the resulting refresh token.Reference: Set Up AI Agent Token Exchange
- Token Endpoint Endpoint
- The authorization server endpoint (/v1/token) where the Client sends grant requests and receives tokens. Token exchange requests go here.Reference: OpenID Connect and OAuth 2.0 API Overview
- Token Exchange Grant
- The grant type urn:ietf:params:oauth:grant-type:token-exchange. The Client presents one security token and receives a different one, with a new audience, scope or form.Reference: Set Up OAuth 2.0 On-Behalf-Of Token Exchange
- Token Passthrough Okta Concept
- Forwarding the user’s own token to a downstream API instead of exchanging it. The Exchange Denied tab shows the agent failing closed rather than falling back to this.Reference: Term used on this page
- token_type Parameter
- In token responses, Bearer for the access tokens on this page.Reference: RFC 6749 section 5.1
- uid (User ID) Claim
- In Okta access tokens, the Okta ID of the user the token was issued for.Reference: Customize Tokens Returned From Okta
- unauthorized_client Error
- The Client is not allowed to use this kind of request, for example it may not exchange tokens.Reference: RFC 6749 section 5.2
- Universal Directory Okta Concept
- Okta’s central store of users, groups and other identities. AI agents are registered here as objects and linked to their sign-on application and connections.Reference: Universal Directory
- User Sign-On Application Okta Concept
- The Okta application users sign in to in order to reach an agent. It was previously called a Linked Application, and its ID token is what the agent exchanges.Reference: Source: Okta Deck (Apr 2026)
- WebIdentityToken AWS
- The parameter that carries the Okta-issued JWT in the AssumeRoleWithWebIdentity call.Reference: AWS: AssumeRoleWithWebIdentity
No terms match. Clear the filter or choose another category.
Okta Documentation Used
- API Access Management
- Authorization Servers
- Customize Tokens Returned From Okta
- Event Types
- Implement Authorization by Grant Type
- Implement OAuth for Okta With a Service App
- OAuth 2.0 and OpenID Connect Overview
- OpenID Connect and OAuth 2.0 API Overview
- Refresh Access Tokens and Rotate Refresh Tokens
- Set Up AI Agent Token Exchange
- Set Up OAuth 2.0 On-Behalf-Of Token Exchange
- Universal Directory
- Validate Access Tokens
Standards and Other References
- AWS: AssumeRoleWithWebIdentity
- AWS: IAM Roles
- AWS: OIDC Federation
- Model Context Protocol: Introduction
- OpenID Connect Core 1.0
- RFC 6749: The OAuth 2.0 Authorization Framework
- RFC 7515: JSON Web Signature (JWS)
- RFC 7519: JSON Web Token (JWT)
- RFC 7523: JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants
- RFC 8693: OAuth 2.0 Token Exchange
- RFC 8707: Resource Indicators for OAuth 2.0
Definitions are written for this page. Check the linked documentation for current behavior, since Okta changes product details over time.
All hostnames, client IDs, tokens, keys and AWS values are made-up samples, and the signature segment of each encoded token is a placeholder. Okta Deck (Apr 2026): labels with this name come from Okta’s “Okta for AI Agents” use-case deck, which is a snapshot of the April 2026 general-availability release. Names, screens and behaviour may have changed since, so verify against Okta’s current documentation. The deck confirms the OAuth STS request and response fields, the three cases (no stored refresh token, expired access token, cached access token), the Resource Connection types, MCP servers as Resource Connections, and that an exchange fails when no Access Policy rule covers the user and scope. What it does not cover: the HTTP status of interaction_required, the exact error code for a policy refusal, how the third-party redirect URL is built, and any use of actor_token or may_act. Those parts follow RFC 6749, RFC 8693 or are illustrative, and are labelled that way on each step. RFC 8693: Okta’s on-behalf-of guide documents the token-exchange grant, subject_token, audience, scope, issued_token_type and an act claim on the result (earlier actors nested, up to five). Chain depth, lifetimes and narrowing rules in the Chained Exchange tab are a design, not a statement of Okta limits. AWS: AssumeRoleWithWebIdentity parameters and the response shape follow the AWS API reference. Whether an Okta access token is accepted depends on its iss and aud claims, and the trust-policy condition keys follow AWS’s OIDC examples, so verify both in your account.