---
id: AGT-045
title: "Let customers connect their own AI assistants to your service"
url: https://patterns.trevonix.com/patterns/agt-045-let-customers-connect-their-own-ai-assistants-to-your-service
version: "1.0"
maturity: documented
collection: "Agent identity"
category: "Delegation and authorisation"
last_reviewed: 2026-11-25
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)"]
recipes: {ping: documented, okta: documented, entra: documented, saviynt: not-available, misc: documented}
license: CC BY 4.0
publisher: Trevonix
---

# Let customers connect their own AI assistants to your service (AGT-045)

**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.

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.

## In short

- 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.
- Register 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.
- Keep **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

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.

Building 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 it when

- Customers want to use third-party AI assistants with your service.
- You run a customer identity platform and want a governed alternative to scraping and password sharing.
- You plan agentic commerce, account servicing or self-service through assistants.

## Avoid it, or add more, when

- The assistants are your own, built and hosted by you. Register them as your own clients and agents (AGT-002).
- Agents visit your public website without signing in. Verify them at the edge (AGT-034).

## Forces

- **Openness against fraud.** Any assistant can connect; so can a malicious one.
- **Unknown clients against registration.** You cannot pre-register every assistant; open registration invites abuse.
- **Convenience against consent quality.** One click is easy; customers must still understand what they grant.
- **Capability against risk.** Useful assistants want write access; payments and changes need stronger checks.

## Solution

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.

![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](https://patterns.trevonix.com/img/AGT-045/agt-045-solution.png)

*Customers connect assistants through your sign-in and consent, with narrow tokens, confirmations and a revoke page.*

*Design decisions*

| Decision | Recommendation |
| --- | --- |
| Interface | MCP server for assistants; same scopes as your public API |
| Client registration | Client ID metadata documents; dynamic registration off, or limited and monitored |
| Which assistants | Allow-list of vendor domains for write scopes; read-only for unknown clients, or block |
| Consent | Your own pages; assistant name and logo; plain-language permissions; no pre-ticked write scopes |
| Tokens | Short-lived access tokens; rotating refresh tokens; audience bound to your server |
| Risky actions | Confirmation on the customer's device (AGT-022) or a mandate with limits |
| Limits | Per assistant and per customer: rate, value and daily caps |
| Visibility | Connected assistants page with revoke; email on new connection |

How it works

1. **Choose capabilities** to expose and group them into a few plain-language scopes (for example: see bookings; change bookings).
2. **Build the MCP server** with protected resource metadata and token validation for your customer authorisation server.
3. **Enable client ID metadata documents** in your customer identity platform; decide the allow-list policy for write scopes.
4. **Design the consent screen** with customers: assistant identity, permissions, how to revoke.
5. **Issue narrow, short-lived tokens** and rotate refresh tokens.
6. **Add confirmation for risky actions** on the customer's device, and limits per assistant.
7. **Ship a connected assistants page** and notify customers of new connections.
8. **Monitor** per-assistant behaviour; suspend assistants or vendors that misbehave.

> **Consent in customers' words:** 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.

## Design rules

1. **Customers sign in and consent on your pages, never in the assistant.**
2. **Assistants are identified by verifiable client metadata.**
3. **Tokens are narrow, short-lived and bound to one customer and one assistant.**
4. **Risky actions need confirmation or a mandate.**
5. **Customers can see and revoke every connected assistant.**
6. **Open dynamic registration is off by default.**

## Anti-patterns

| Anti-pattern | What goes wrong |
| --- | --- |
| Letting assistants sign in with the customer's password | Credential sharing, no consent record, account takeover risk |
| Open dynamic client registration | Anyone can register look-alike clients at scale |
| One "full access" scope | A read-only assistant can also pay and change details |
| Long-lived tokens without rotation | Stolen tokens keep working for months |
| No customer-facing revoke | Customers call support, or never revoke at all |

## Benefits

- A governed alternative to scraping and password sharing.
- Customers use the assistants they like, with clear consent and control.
- Fraud controls and limits per assistant.
- Evidence of consent and delegated actions for regulators.

## Costs and risks

- Building and running an MCP server or assistant API.
- Customer identity platform features for metadata documents and consent.
- Customer experience design and support for connected assistants.
- Monitoring and vendor management for assistant providers.

## Recipes

### Ping Identity

*Maturity: Documented; last verified 2026-11.*

Pre-registered assistants in PingOne; CIMD in Advanced Identity Cloud; DaVinci and CIBA for consent and confirmation.

Configure

1. Protect the MCP server with PingGateway and tokens from PingOne or Advanced Identity Cloud.
2. Pre-register known assistant vendors as applications in PingOne, which does not support dynamic client registration; Advanced Identity Cloud supports client ID metadata documents.
3. Use DaVinci or journeys for consent and step-up, and CIBA for confirmations on the customer's device.

### Okta

*Maturity: Documented; last verified 2026-11.*

CIMD registration, DCR off by default, CIBA confirmations and revocation. Written from Auth0 and Okta documentation.

Configure

1. 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**.
2. Leave **Dynamic Client Registration** off (the default); Auth0 recommends manual CIMD registration for production.
3. Use 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.
4. With Okta Customer Identity, Okta for AI Agents for Okta Customer Identity (GA November 2026) extends agent identity controls to customer-facing agents.

### Microsoft Entra

*Maturity: Documented; last verified 2026-11.*

Pre-register known assistants; confirm support for metadata-based registration.

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

Not available.

### MCP authorisation specification and assistant connector directories

*Maturity: Documented; last verified 2026-11.*

Follow the specification exactly to work with many assistants.

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.

## Verification tests

| Test | Expected result |
| --- | --- |
| Assistant calls the MCP server without a token | 401 with protected resource metadata |
| Unknown assistant requests a write scope | Refused or limited to read-only per policy |
| Customer consents to read only; assistant tries a change | Refused |
| Assistant requests a payment | Confirmation on the customer's device; nothing happens without it |
| Customer revokes the assistant | Next call fails; refresh token invalid |
| Assistant exceeds its rate or value limit | Throttled or refused |

## Maturity and verification

**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.

## Frequently asked questions

**Can we restrict which assistants connect?**

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.

**Can assistants share one customer's token?**

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.

## References

- [Model Context Protocol: authorization (2025-11-25)](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization)
- [Auth0: Auth for MCP is now generally available](https://auth0.com/blog/auth0-auth-for-mcp-servers-generally-available/)
- [Auth0: Dynamic client registration for MCP (risks)](https://auth0.com/ai/docs/mcp/guides/registering-your-mcp-client-application/dynamic-client-registration)
- [Okta: New AI release highlights (Okta for AI Agents for Okta Customer Identity)](https://www.okta.com/en-au/products/release-overview/)
- [RFC 9728: OAuth 2.0 Protected Resource Metadata](https://www.rfc-editor.org/rfc/rfc9728)

---

Source: https://patterns.trevonix.com/patterns/agt-045-let-customers-connect-their-own-ai-assistants-to-your-service. © Trevonix. Licensed CC BY 4.0. Provided as is, without warranty; see https://patterns.trevonix.com/about#disclaimer.
