Build a Secure C# MCP App with Cross App Access (XAA)
Cross App Access (XAA) lets an AI agent reuse a user's SSO identity to reach downstream MCP servers without another login. The app exchanges the OIDC ID token for an ID-JAG at the IdP via RFC 8693 token exchange, then trades that ID-JAG for a scoped access token via the RFC 7523 JWT bearer grant. In C#, ASP.NET Core's OIDC middleware with PKCE handles sign-in, the MCP C# SDK's IdentityAssertionGrantProvider wraps both token hops, and HttpClientTransport with a Bearer header connects McpClient to the server. The walkthrough registers a requester app on the xaa.dev playground and reads a to-do resource from its sample MCP server.
Related posts
- 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.
- 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.
- 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.
- 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.
- Build "Sign in with Your App" using Supabase Auth
Supabase mediumAdeptSupabase 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. It uses the authorization code flow with PKCE, issues JWT access tokens carrying a client_id claim alongside the usual user_id and role, and also provides ID tokens, a UserInfo endpoint, refresh tokens, a JWKS endpoint and discovery documents at /.well-known/oauth-authorization-server and /.well-known/openid-configuration. MCP clients can register themselves through dynamic client registration. Existing login methods, Custom Access Token Hooks and Row Level Security all apply to OAuth tokens, so RLS policies can limit each client to specific data by checking the client_id claim. Granular scopes are planned but not yet available.