---
title: "Implement Secure Cross App Access (XAA) in Go"
description: "Cross App Access (XAA) is an emerging standard that lets AI agents securely access other apps on a user’s behalf without shared credentials or consent screens. The post walks through building a Go web app called AI Notes Assistant that uses XAA to fetch a user’s to-do items from a protected MCP server and turn them into notes. The flow involves signing in with OIDC and PKCE, exchanging the ID token for an Identity Assertion Authorization Grant (ID-JAG) via RFC 8693, then exchanging that for a scoped access token via RFC 7523. The app uses the access token to call the MCP server’s Streamable HTTP transport and read the todo0://todos resource. The project is available on GitHub and runs against the xaa.dev playground for testing."
---

# Implement Secure Cross App Access (XAA) in Go

[Okta](https://yomu.fyi/company/okta) · Vanshika Pandey | November 23, 2026 |10 min read| Code | · Nov 23, 2026

**Type:** Tutorial

## Summary

Cross App Access (XAA) is an emerging standard that lets AI agents securely access other apps on a user’s behalf without shared credentials or consent screens. The post walks through building a Go web app called AI Notes Assistant that uses XAA to fetch a user’s to-do items from a protected MCP server and turn them into notes. The flow involves signing in with OIDC and PKCE, exchanging the ID token for an Identity Assertion Authorization Grant (ID-JAG) via RFC 8693, then exchanging that for a scoped access token via RFC 7523. The app uses the access token to call the MCP server’s Streamable HTTP transport and read the todo0://todos resource. The project is available on GitHub and runs against the xaa.dev playground for testing.

## Context

AI agents need to access other apps on a user’s behalf without shared credentials or consent screens. XAA is an emerging standard that uses an identity provider to issue signed identity assertions and scoped access tokens, enabling secure cross-app access.

## Approach / What changed

The post implements a Go web app called AI Notes Assistant that performs the XAA flow: the user signs in with OIDC and PKCE, the app exchanges the ID token for an ID-JAG via RFC 8693, then exchanges that for a scoped access token via RFC 7523, and finally uses the access token to call an MCP server’s Streamable HTTP transport to read the todo0://todos resource.

## Takeaways

- XAA uses two standard token exchanges: RFC 8693 to exchange an OIDC ID token for an ID-JAG, and RFC 7523 to exchange the ID-JAG for a scoped access token.
- The Go app implements the XAA flow with OIDC sign-in using PKCE, then programmatic token exchanges without any user consent prompts.
- The MCP server is called using the scoped access token attached via a custom bearerTransport, and the app reads the todo0://todos resource to fetch to-do items.

## FAQ

### What is Cross App Access (XAA)?

XAA is an emerging standard that helps apps and AI agents securely access other apps on a signed-in user's behalf. It uses an identity provider to issue signed identity assertions and scoped access tokens, eliminating the need for shared credentials or consent screens.

### How does the XAA token exchange work in Go?

The Go app first exchanges the OIDC ID token for an ID-JAG using RFC 8693 token exchange. Then it exchanges that ID-JAG for a scoped access token using RFC 7523 JWT Bearer Grant. Both exchanges are implemented in internal/xaa/tokenexchange.go.

### What is the role of the MCP server in this tutorial?

The MCP server is a protected resource that exposes to-do items via the todo0://todos resource. The Go app uses the scoped access token to connect to the MCP server via Streamable HTTP transport and reads the to-do data, which it reshapes into notes.

**Tags:** [Go](https://yomu.fyi/topic/go), [MCP](https://yomu.fyi/topic/mcp), [OIDC](https://yomu.fyi/topic/oidc), [Security](https://yomu.fyi/topic/security), [XAA](https://yomu.fyi/topic/xaa)

- Source: [Okta](https://developer.okta.com/blog/2026/11/23/secure-go-mcp-app-cross-app-access)
- Source URL: https://developer.okta.com/blog/2026/11/23/secure-go-mcp-app-cross-app-access
- Ingested by Yomu: 2026-11-23T12:00:13.228Z

[Read original post](https://developer.okta.com/blog/2026/11/23/secure-go-mcp-app-cross-app-access)
