---
title: "Implement Secure Cross App Access (XAA) in Go"
description: "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."
url: "https://swe.quest/articles/implement-secure-cross-app-access-xaa-in-go-0a6938474ca2d783"
canonical: "https://developer.okta.com/blog/2026/11/23/secure-go-mcp-app-cross-app-access/"
source: "Okta Developer"
published: "2026-11-23"
difficulty: "medium"
kind: "How-to"
reading_minutes: 15
tags: ["identity-auth","go","ai-agents"]
---

# Implement Secure Cross App Access (XAA) in Go

A post on [Okta Developer](https://swe.quest/sources/okta-developer.md), published 2026-11-23, 15 min read, How-to. Original: [https://developer.okta.com/blog/2026/11/23/secure-go-mcp-app-cross-app-access/](https://developer.okta.com/blog/2026/11/23/secure-go-mcp-app-cross-app-access/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- OAuth 2.0 and OIDC basics ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- JWTs
- Reading Go code ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))

## Keywords

Cross App Access, ID-JAG, RFC 8693, RFC 7523, Model Context Protocol, PKCE, Okta, xaa.dev

## Related posts

- [Build "Sign in with Your App" using Supabase Auth](https://swe.quest/articles/build-sign-in-with-your-app-using-supabase-auth-a42222eedce43362.md): Supabase · 2025-12-04 · Medium · 6 min read · Identity & auth, AI agents, PostgreSQL
  Supabase Auth can now act as an OAuth 2.1 and OpenID Connect identity provider, letting a project offer "Sign in with \[Your App\]" to third-party apps, MCP-based AI agents, partner integrations and enterprise SSO.
- [Agentic Platform: Open-Sourcing the Agentic Identity Broker](https://swe.quest/articles/agentic-platform-open-sourcing-the-agentic-identity-broker-c79247dc6e5d742f.md): Zalando Engineering · 2026-09-24 · Hard · 8 min read · Identity & auth, AI agents, Kubernetes, Open source, System design
  Zalando open-sourced the MIT-licensed Agentic Identity Broker, which lets AI agents act on behalf of users across third-party systems without ever receiving provider tokens.
- [Giving Agents Their Own Turso Accounts with AgentID](https://swe.quest/articles/giving-agents-their-own-turso-accounts-with-agentid-27b3b5e49a47c3ed.md): Turso · 2026-08-26 · Medium · 7 min read · Identity & auth, AI agents, Cryptography
  AgentID is an OpenID Connect provider for AI agents: instead of a human completing a browser login, the agent approves an OIDC Authorization Code + PKCE request by signing a compact ES256 JWS (request ID plus inbox ID) with a P-256 key it holds, registered via AgentMail.
- [Our approach to building the Agent Interaction SDK](https://swe.quest/articles/our-approach-to-building-the-agent-interaction-sdk-9a9972a058846fdd.md): Linear · 2025-08-01 · Medium · 7 min read · AI agents, API design, Identity & auth, Product engineering
  Linear integrates AI agents into its workspace as first-class users through a new OAuth actor mode (actor=app), which creates a dedicated agent user with its own token, developer-requested scopes and admin-controlled team access.
- [Grok Bot has a Tailscale integration—and now you can, too](https://swe.quest/articles/grok-bot-has-a-tailscale-integration-and-now-you-can-too-0f636833dc751bd0.md): Tailscale · 2026-11-09 · Medium · 2 min read · Identity & auth, AI agents, Networking
  Tailscale OAuth apps, now generally available, let third-party agents join a user's tailnet through a standard OAuth 2.0 flow and act on that user's behalf, unlike existing OAuth clients that create tag-owned devices under a shared service identity.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
