Web application / Shopify (Customer Accounts)

Shopify New Customer Accounts: Hosted OTP SPA, DPoP OIDC and per-store MCP

Public specification, OIDC discovery, and Vite SPA teardown of Shopify New Customer Accounts: three-plane domain split, 6-digit passwordless OTP UI, ConsentScreen CSRF/unverified guards, PKCE + DPoP + CIMD, sso=silent vs cartBuyerIdentityUpdate, and per-store mcp_api vs Shop MCP.

Contract model · conceptual sequence, not a claim about internal deployment
  1. .well-known discovery -> hosted OTP/Consent SPA
  2. PKCE S256 + RFC 9449 DPoP + CIMD tokens
  3. Customer GraphQL 2026-10, mcp_api & sso=silent
01 / EMPIRICAL RECORD

Investigation question

How does Shopify replace legacy Liquid customer templates with a hosted passwordless OTP SPA, RFC 9449 DPoP/CIMD OAuth discovery, Customer Account GraphQL 2026-10, sso=silent checkout handoff, and per-store Customer Account MCP?

02 / EMPIRICAL RECORD

Observed

Cookie-free inspection of Shopify’s Customer Account GraphQL 2026-10 documentation, storefront .well-known discovery documents, and all 15 shipped Vite JS modules of Shopify’s public customer-authentication-web CDN bundle maps a three-plane identity boundary. First, storefronts advertise shop-ID-scoped authentication and API URLs via /.well-known/openid-configuration and /.well-known/customer-account-api rather than fixed hostnames. Authentication runs inside a Shopify-hosted React/Vite SPA (SignInCodeForm for 6-digit numeric email OTP with WebOTP autoComplete="one-time-code" and 800ms invalid-code Shake reset; ShopLoginButtonInner web component; humanSignalsLibrary signal collector; and ConsentScreen rendering separate CSRF authenticity_token POST forms while elevating Deny on unverified OAuth clients). Second, OIDC discovery supports PKCE S256 for public clients alongside confidential Basic/Post, RFC 9449 DPoP (ES256/RS256) sender-constrained tokens, JWT-bearer assertions, and Client ID Metadata Documents (client_id_metadata_document_supported: true). Third, /.well-known/customer-account-api exposes both Customer Account GraphQL (2026-10/graphql) and per-store Customer Account MCP (mcp_api) scoped with customer-account-mcp-api:full.

03 / EMPIRICAL RECORD

Inferred

Three integration constraints govern headless storefronts and buyer agents: (1) third-party apps cannot inject arbitrary scripts into customer-authentication-web and must customize buyer portals solely via sandboxed Web Worker / Preact Customer Account UI Extensions backed by app-namespaced $app metafields; (2) headless checkout authentication using sso=silent relies strictly on the hosted IdP session cookie (prompt=none) and never falls back to Storefront API cartBuyerIdentityUpdate tokens when that cookie is absent or stale; and (3) self-hosted or non-Shop storefronts can use per-store .well-known discovery with CIMD + DPoP rather than routing shopper custody through centralized mcp.shop.com.

04 / METHODOLOGICAL BOUNDARY

Unknown & limitations

This teardown relies on public Shopify documentation, public discovery contracts, and static analysis of shipped CDN assets; live 6-digit email OTP round-trip timing, code TTL, resend cooldowns, lockout thresholds, and live logged-in sso=silent checkout prefill remain outside static public evidence.

05 / EMPIRICAL RECORD

Architecture

Shopify splits customer identity across (1) storefront .well-known discovery pointing to shop-ID-scoped endpoints under shopify.com; (2) the hosted customer-authentication-web React/Vite SPA on cdn.shopify.com isolating OTP entry, Shop sign-in, anti-abuse signals, and OAuth consent from storefront DOMs; and (3) authenticated buyer GraphQL 2026-10, Customer Account MCP, and sandboxed UI Extensions.

06 / EMPIRICAL RECORD

Domain & data models

Customer Account GraphQL 2026-10 models Customer (protected by customer_read_customers and Protected Customer Data approval), CustomerAddress (customer_write_addresses), Order (confirmationNumber, SalesAgreementConnection, self-serve edit/return/cancel requests), StoreCreditAccount, and app-prefixed $app metafields; OIDC tokens issue RS256 ID tokens with protected_resources spanning both account and storefront origins.

07 / EMPIRICAL RECORD

Workflows & state machines

Passwordless login captures transient login_hint state in sessionStorage, renders a 6-digit auto-submitting numeric OTP challenge (resetting with an 800ms shake on error), enforces explicit POST authenticity_token approval on ConsentScreen, and separates Storefront cartBuyerIdentityUpdate hydration from IdP-cookie sso=silent checkout prefill.

08 / EMPIRICAL RECORD

API & protocol surfaces

GET /.well-known/customer-account-api (graphql_api and mcp_api discovery), GET /.well-known/openid-configuration (PKCE S256, ES256/RS256 DPoP, CIMD, jwt-bearer), /authentication/<id>/oauth/{token,revoke} and /logout, Customer Account GraphQL 2026-10, and per-store Customer Account MCP (customer-account-mcp-api:full) contrasted against centralized https://mcp.shop.com/.