Oktaยท
Implement Secure Cross App Access (XAA) in Go
TL;DR
AI assistants need a secure way to access other apps on a user's behalf without sharing credentials or asking users to sign in again. This tutorial builds a Go app using Cross App Access (XAA): it signs users in with OIDC and PKCE, then exchanges their identity token for an identity assertion and a scoped access token. The demo retrieves to-do items from a protected MCP server without another consent screen, while access remains governed by identity-provider policies and app permissions.
Relevant links
- cross-app-accessdeveloper.okta.com
- mcpdeveloper.okta.com
- oauthdeveloper.okta.com
- oidcdeveloper.okta.com
- xaadeveloper.okta.com
- Vanshika Pandeydeveloper.okta.com
- Codegithub.com
- XAA playgroundxaa.dev
- Tour of Gogo.dev
- RFC 8693datatracker.ietf.org
- Identity Assertion Authorization Grantdatatracker.ietf.org
- RFC 7523datatracker.ietf.org