Ucp identity linking

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Ucp identity linking is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Implement UCP Identity Linking — OAuth 2.0 authorization code flow for linking buyer accounts between platforms and merchants, enabling personalized checkout experiences. Use when implementing account linking or SSO for UCP.

How to use this skill

Skill file

UCP Identity Linking

Before writing code

Fetch live spec: Web-search site:ucp.dev specification identity-linking and fetch the page for exact OAuth requirements, scopes, and metadata format.

Also fetch https://developers.google.com/merchant/ucp/guides/identity-linking for Google's integration guide.

Conceptual Architecture

What It Enables

Identity Linking lets a Platform (AI agent) authenticate a buyer with a Business (merchant) so the agent can:

Protocol: OAuth 2.0 Authorization Code Flow

UCP mandates RFC 6749 Section 4.1 (Authorization Code) as the primary mechanism:

  1. Platform redirects buyer to Business's authorization endpoint
  2. Buyer authenticates and consents
  3. Business redirects back with authorization code
  4. Platform exchanges code for access token at Business's token endpoint
  5. Platform includes access token in subsequent UCP requests

Requirements

UCP Scopes

| Scope | Grants |

|-------|--------|

| ucp:scopes:checkout_session | All checkout operations (create, get, update, complete, cancel) |

A scope covering a capability grants access to ALL operations of that capability.

Capability Declaration

Identity Linking is declared as a capability in the Business's discovery profile. It includes:

Implementation Guidance

Business:

Platform:

Fetch the exact current requirements from the live spec — OAuth details (PKCE requirements, token formats, etc.) may evolve.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.