Enable Your SAML Requesting App for Cross App Access
SAML-federated apps can use Cross App Access (XAA) without migrating to OIDC by chaining three token requests after SSO. First, in the ACS handler, exchange the base64-encoded SAML assertion for an Okta refresh token via RFC 8693 token exchange. Then exchange that refresh token for a short-lived ID-JAG JWT. Finally, redeem the ID-JAG at the resource app's authorization server via the RFC 7523 JWT bearer grant to get an access token. The Okta requests authenticate with a private key JWT, the SAML assertion must never be persisted past the first exchange, and an invalid_grant on the refresh token means re-running SSO. A walkthrough covers configuring the requesting app, resource app, and AI Agent in Okta and verifying the flow with xaa.dev.
Related posts
- Add Cross App Access to Your OIDC Requesting Application
Okta Developer mediumAdept
Cross App Access (XAA) lets an OIDC-federated app reach third-party APIs by exchanging the refresh token from sign-in for an Identity Assertion Authorization Grant (ID-JAG) at the IdP via RFC 8693 token exchange, then redeeming that short-lived JWT for an access token at the resource app's authorization server via the RFC 7523 jwt-bearer grant. The guide shows the exact token requests and how to handle expiry: re-mint ID-JAGs from the long-lived refresh token, and send the user back through sign-in on invalid_grant. It then walks through configuring Okta app integrations, an AI Agent with a resource connection, and end-to-end conformance testing against xaa.dev.
- Add Cross App Access to Your OIDC Resource Application
Okta Developer mediumAdept
Cross App Access (XAA) lets an OIDC-federated resource server accept API calls from agents by redeeming an Identity Assertion Authorization Grant (ID-JAG), a short-lived JWT issued by the customer's IdP, for a locally issued access token. The resource authorization server must bind the token's iss to a registered IdP connection before verifying the signature against that connection's JWKS. It then checks typ, aud and client_id, resolves the user on iss + sub (plus tenant for multi-tenant IdPs), and treats email only as a just-in-time provisioning hint. It should issue no refresh token, so the IdP keeps revocation control, and it should advertise only the id-jag grant profile in its metadata without listing trusted issuers. A walkthrough then configures requesting and resource app integrations and an AI Agent in Okta, and tests the setup with xaa.dev.
- Implement Secure Cross App Access (XAA) in Go
Okta Developer mediumAdept
Cross App Access (XAA) lets an app or AI agent reach another app's API on a signed-in user's behalf without a second sign-in or consent screen. The enterprise IdP issues a signed Identity Assertion Authorization Grant (ID-JAG) via RFC 8693 token exchange, and the resource's authorization server redeems it through an RFC 7523 JWT bearer grant for a scoped access token. A Go sample app walks the four steps against the xaa.dev playground: OIDC sign-in with hand-built PKCE, state and nonce kept in a short-lived cookie, the two token exchanges, then calling a ToDo MCP server with a bearer-token transport.
- Build a Secure TypeScript MCP Client with Cross App Access (XAA)
Okta Developer mediumAdept
Cross App Access (XAA) lets an enterprise IdP vouch for a signed-in user across app boundaries, replacing per-app OAuth consent screens and shared service accounts with admin-set policy. The tutorial builds a TypeScript MCP client that signs in via OIDC with PKCE and exchanges the ID token for an ID-JAG (RFC 8693). It then trades the ID-JAG for an access token via the JWT bearer grant (RFC 7523) and calls a protected MCP server, using the MCP SDK's CrossAppAccessProvider against the xaa.dev playground. Key pitfalls: keep separate client credentials for the IdP and the resource authorization server, avoid trailing slashes in audience URLs, and make sure the ID-JAG's resource claim matches the access token's aud.
- Build a Flask App with Okta for Secure OIDC Login and Authorized API Calls
Okta Developer mediumAdept
A Flask dashboard app signs users in through Okta with OpenID Connect, using Authlib to run the Authorization Code flow with PKCE (S256) automatically. It then uses the OAuth 2.0 access token to call a separate protected resource server. The walkthrough covers registering the Okta remote app, building login, callback and logout routes (including RP-initiated logout with id_token_hint), and storing tokens in the session. It also adds a custom scope (api:read-users) to the authorization server and validates it on the backend with okta-jwt-verifier to control what the API returns.