{"id":"AGT-045","title":"Let customers connect their own AI assistants to your service","maturity":"documented","collection":"Agent identity","category":"Delegation and authorisation","complexity":"High","intent":"Let customers use the AI assistants they already have to check orders, manage bookings or move money with your service, through an authorisation flow they understand, with scopes they choose, limits you set, and a place to see and revoke every connected assistant.","summary":"Customers want their own AI assistants to use your service. Offer an MCP server or API protected by your customer identity platform: clients registered by metadata document, consent screens in plain language, narrow scopes, confirmation for risky actions, rate limits and a page to see and revoke connected assistants.","problems":["Agentic commerce","Customer experience through AI assistants","Credential sharing with third-party tools","Fraud through connected agents","Consent and revocation","Regulatory duties for delegated access"],"standards":["Model Context Protocol authorization (2025-11-25)","OAuth 2.1 (draft)","OAuth 2.0 Protected Resource Metadata (RFC 9728)","Resource Indicators (RFC 8707)","OAuth Client ID Metadata Document (IETF draft)","OAuth 2.0 Dynamic Client Registration (RFC 7591)","Rich Authorization Requests (RFC 9396)"],"tags":["customer identity","CIAM","MCP server","connector","third-party assistant","consent","connected apps","CIMD","dynamic client registration","scopes","revoke","agentic commerce","step-up","rate limit","customer-facing agents"],"roles":["IAM architect","Identity engineer","Security leader","Platform engineering","AI engineering"],"industries":["Cross-industry","Financial services","Healthcare","Retail","Public sector"],"builds_on":["AGT-002","AGT-015"],"related":["AGT-022","AGT-032","AGT-034"],"authors":"Trevonix Innovation","reviewers":"Trevonix IAM architecture","version":"1.0","last_reviewed":"2026-11-25","published":"2026-11-25","og_image":"og-agt-045.png","sections":{"summary":[{"type":"bullets","content":"Publish an **MCP server or API** for assistants, protected by your **customer identity platform** with **protected resource metadata**, so any compliant assistant can find where to sign in.\nRegister assistants by **client ID metadata document** (or tightly controlled dynamic registration), show a **plain-language consent screen** with the assistant's name, and issue **short-lived, narrow tokens** for the customer and that assistant only.\nKeep **risky actions** behind confirmation on the customer's own device, apply **per-assistant limits**, and give customers a **connected assistants page** to see and revoke access."}],"problem":[{"type":"paragraph","content":"Customers increasingly ask their own AI assistants to do things: \"move my delivery to Friday\", \"how much did I spend on travel this month\", \"book the cheapest seat on the 7 a.m. train\". If your service offers no proper way in, the assistant scrapes your website with the customer's password, or the customer pastes account details into a chat. Both are worse for everyone: credentials are shared, actions look like the customer's own clicks, there is no consent record, and fraudsters use the same route.\n\nBuilding the proper way in raises new questions. You do not know in advance which assistants will connect, so you cannot pre-register them all. Consent screens written for developers confuse customers. A token that lets an assistant read balances should not let it pay anyone. And customers need to see which assistants they have connected and switch them off without calling support."}],"use_when":[{"type":"bullets","content":"Customers want to use third-party AI assistants with your service.\nYou run a customer identity platform and want a governed alternative to scraping and password sharing.\nYou plan agentic commerce, account servicing or self-service through assistants."}],"avoid_when":[{"type":"bullets","content":"The assistants are your own, built and hosted by you. Register them as your own clients and agents (AGT-002).\nAgents visit your public website without signing in. Verify them at the edge (AGT-034)."}],"forces":[{"type":"bullets","content":"**Openness against fraud.** Any assistant can connect; so can a malicious one.\n**Unknown clients against registration.** You cannot pre-register every assistant; open registration invites abuse.\n**Convenience against consent quality.** One click is easy; customers must still understand what they grant.\n**Capability against risk.** Useful assistants want write access; payments and changes need stronger checks."}],"solution":[{"type":"paragraph","content":"Expose the capabilities you want assistants to use as an MCP server (or a documented API) and protect it as an OAuth resource with your customer identity platform. The server returns protected resource metadata, so assistants discover your authorisation server. Assistants register by client ID metadata document: the assistant's vendor hosts a document at an HTTPS URL, which your platform fetches and can check against an allow-list or reputation; dynamic client registration stays off or tightly limited. The customer signs in on your own pages and sees a consent screen naming the assistant and listing, in plain words, what it may do. Tokens are short-lived, audience-bound to your server, and scoped narrowly; refresh tokens are rotated. Risky actions (payments, address changes, adding payees) need confirmation on the customer's own device, or a mandate. Each assistant has rate and value limits. A connected assistants page lists every assistant with what it can do and when it was last used, with a revoke button."},{"type":"image","content":"Customers connect assistants through your sign-in and consent, with narrow tokens, confirmations and a revoke page.","title":"Solution overview","media":"agt-045-solution.png","alt":"Diagram. Left: a customer's AI assistant from a third-party vendor, with its client ID metadata document hosted on the vendor's domain. Step 1: the assistant calls your MCP server, which publishes protected resource metadata. Step 2: your customer identity platform fetches the assistant's metadata d"},{"type":"table","content":"Decision | Recommendation\nInterface | MCP server for assistants; same scopes as your public API\nClient registration | Client ID metadata documents; dynamic registration off, or limited and monitored\nWhich assistants | Allow-list of vendor domains for write scopes; read-only for unknown clients, or block\nConsent | Your own pages; assistant name and logo; plain-language permissions; no pre-ticked write scopes\nTokens | Short-lived access tokens; rotating refresh tokens; audience bound to your server\nRisky actions | Confirmation on the customer's device (AGT-022) or a mandate with limits\nLimits | Per assistant and per customer: rate, value and daily caps\nVisibility | Connected assistants page with revoke; email on new connection","title":"Design decisions"},{"type":"numbered","content":"**Choose capabilities** to expose and group them into a few plain-language scopes (for example: see bookings; change bookings).\n**Build the MCP server** with protected resource metadata and token validation for your customer authorisation server.\n**Enable client ID metadata documents** in your customer identity platform; decide the allow-list policy for write scopes.\n**Design the consent screen** with customers: assistant identity, permissions, how to revoke.\n**Issue narrow, short-lived tokens** and rotate refresh tokens.\n**Add confirmation for risky actions** on the customer's device, and limits per assistant.\n**Ship a connected assistants page** and notify customers of new connections.\n**Monitor** per-assistant behaviour; suspend assistants or vendors that misbehave.","title":"How it works"},{"type":"tip","content":"Write the consent screen last and test it with real customers. 'This assistant can change your bookings. You'll approve each change on your phone.' builds more trust than any list of scope names.","title":"Consent in customers' words"}],"design_rules":[{"type":"numbered","content":"**Customers sign in and consent on your pages, never in the assistant.**\n**Assistants are identified by verifiable client metadata.**\n**Tokens are narrow, short-lived and bound to one customer and one assistant.**\n**Risky actions need confirmation or a mandate.**\n**Customers can see and revoke every connected assistant.**\n**Open dynamic registration is off by default.**"}],"anti_patterns":[{"type":"table","content":"Anti-pattern | What goes wrong\nLetting assistants sign in with the customer's password | Credential sharing, no consent record, account takeover risk\nOpen dynamic client registration | Anyone can register look-alike clients at scale\nOne \"full access\" scope | A read-only assistant can also pay and change details\nLong-lived tokens without rotation | Stolen tokens keep working for months\nNo customer-facing revoke | Customers call support, or never revoke at all"}],"benefits":[{"type":"bullets","content":"A governed alternative to scraping and password sharing.\nCustomers use the assistants they like, with clear consent and control.\nFraud controls and limits per assistant.\nEvidence of consent and delegated actions for regulators."}],"costs":[{"type":"bullets","content":"Building and running an MCP server or assistant API.\nCustomer identity platform features for metadata documents and consent.\nCustomer experience design and support for connected assistants.\nMonitoring and vendor management for assistant providers."}],"tests":[{"type":"table","content":"Test | Expected result\nAssistant calls the MCP server without a token | 401 with protected resource metadata\nUnknown assistant requests a write scope | Refused or limited to read-only per policy\nCustomer consents to read only; assistant tries a change | Refused\nAssistant requests a payment | Confirmation on the customer's device; nothing happens without it\nCustomer revokes the assistant | Next call fails; refresh token invalid\nAssistant exceeds its rate or value limit | Throttled or refused"}],"maturity_notes":[{"type":"paragraph","content":"**Documented.** Written from the MCP authorisation specification (November 2025 revision, which made client ID metadata documents the recommended registration method) and customer identity vendor documentation. Customer-facing agent features were generally available in some platforms only from mid to late 2026."}],"faq":[{"type":"faq","content":"Yes, at least for write access. Check the domain that hosts the client metadata document against an allow-list of assistant vendors you trust, and give unknown clients read-only access or none.","title":"Can we restrict which assistants connect?"},{"type":"faq","content":"Not if you need to know which assistant is acting. Shared customer tokens across assistants remove the ability to revoke one assistant, apply limits per assistant, or tell customers which assistant did what.","title":"Can assistants share one customer's token?"}],"references":[{"type":"bullets","content":"[Model Context Protocol: authorization (2025-11-25)](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization)\n[Auth0: Auth for MCP is now generally available](https://auth0.com/blog/auth0-auth-for-mcp-servers-generally-available/)\n[Auth0: Dynamic client registration for MCP (risks)](https://auth0.com/ai/docs/mcp/guides/registering-your-mcp-client-application/dynamic-client-registration)\n[Okta: New AI release highlights (Okta for AI Agents for Okta Customer Identity)](https://www.okta.com/en-au/products/release-overview/)\n[RFC 9728: OAuth 2.0 Protected Resource Metadata](https://www.rfc-editor.org/rfc/rfc9728)"}]},"recipes":{"ping":{"status":"documented","product_name":"PingGateway with PingOne or Advanced Identity Cloud","summary":"Pre-registered assistants in PingOne; CIMD in Advanced Identity Cloud; DaVinci and CIBA for consent and confirmation.","last_verified":"2026-11","blocks":[{"type":"numbered","content":"Protect the MCP server with PingGateway and tokens from PingOne or Advanced Identity Cloud.\nPre-register known assistant vendors as applications in PingOne, which does not support dynamic client registration; Advanced Identity Cloud supports client ID metadata documents.\nUse DaVinci or journeys for consent and step-up, and CIBA for confirmations on the customer's device.","title":"Configure"}]},"okta":{"status":"documented","product_name":"Auth0 Auth for MCP and Okta for AI Agents for Okta Customer Identity","summary":"CIMD registration, DCR off by default, CIBA confirmations and revocation. Written from Auth0 and Okta documentation.","last_verified":"2026-11","blocks":[{"type":"numbered","content":"With Auth0, protect your MCP server with **Auth for MCP** (generally available): create an API for the MCP server, enable **Client ID Metadata Document Registration** under **Settings > Advanced**, and grant API access to CIMD clients under **Applications > APIs > Application Access**.\nLeave **Dynamic Client Registration** off (the default); Auth0 recommends manual CIMD registration for production.\nUse Auth0 CIBA with Rich Authorization Requests for confirmations, and build the connected assistants page on the user's grants, which the Management API can list and delete.\nWith Okta Customer Identity, Okta for AI Agents for Okta Customer Identity (GA November 2026) extends agent identity controls to customer-facing agents.","title":"Configure"}]},"entra":{"status":"documented","product_name":"Microsoft Entra External ID","summary":"Pre-register known assistants; confirm support for metadata-based registration.","last_verified":"2026-11","blocks":[{"type":"paragraph","content":"Microsoft Entra External ID can protect customer-facing APIs with OAuth, but Microsoft's documentation reviewed for this pattern does not describe dynamic registration or client ID metadata documents for customer tenants; pre-register known assistants as applications and confirm current support before committing."}]},"saviynt":{"status":"not-available","product_name":"Saviynt","summary":"Saviynt focuses on workforce and agent governance, not customer authorisation.","last_verified":"","blocks":[]},"misc":{"status":"documented","product_name":"MCP authorisation specification and assistant connector directories","summary":"Follow the specification exactly to work with many assistants.","last_verified":"2026-11","blocks":[{"type":"paragraph","content":"AI platforms' connector directories (for MCP-based apps and connectors) expect your server to follow the MCP authorisation specification. Follow it exactly: protected resource metadata, resource indicators, PKCE, and client ID metadata documents; it is the fastest route to working with many assistants at once."}]}},"slug":"agt-045-let-customers-connect-their-own-ai-assistants-to-your-service","updated_at":"2026-12-02T09:48:48.765Z","url":"https://patterns.trevonix.com/patterns/agt-045-let-customers-connect-their-own-ai-assistants-to-your-service","markdown_url":"https://patterns.trevonix.com/patterns/agt-045-let-customers-connect-their-own-ai-assistants-to-your-service.md","publisher":"Trevonix","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}}