AGT-045DocumentedAgent identityDelegation and authorisation

Let customers connect their own AI assistants to your service

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.

  • EffortHigh
  • Version1.0
  • Reviewed
  • Updated
  • AuthorsTrevonix Innovation

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.

When to use it#

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
Customers connect assistants through your sign-in and consent, with narrow tokens, confirmations and a revoke page.

Design decisions

DecisionRecommendation
InterfaceMCP server for assistants; same scopes as your public API
Client registrationClient ID metadata documents; dynamic registration off, or limited and monitored
Which assistantsAllow-list of vendor domains for write scopes; read-only for unknown clients, or block
ConsentYour own pages; assistant name and logo; plain-language permissions; no pre-ticked write scopes
TokensShort-lived access tokens; rotating refresh tokens; audience bound to your server
Risky actionsConfirmation on the customer's device (AGT-022) or a mandate with limits
LimitsPer assistant and per customer: rate, value and daily caps
VisibilityConnected 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.

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-patternWhat goes wrong
Letting assistants sign in with the customer's passwordCredential sharing, no consent record, account takeover risk
Open dynamic client registrationAnyone can register look-alike clients at scale
One "full access" scopeA read-only assistant can also pay and change details
Long-lived tokens without rotationStolen tokens keep working for months
No customer-facing revokeCustomers call support, or never revoke at all

Trade-offs#

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#

How to build this pattern on specific products. Each recipe shows its own maturity and when it was last verified.

Ping Identity recipe

Ping Identity

PingGateway with PingOne or Advanced Identity Cloud

DocumentedLast verified Nov 2026

Written from vendor documentation and design experience; not yet lab-tested by Trevonix. Validate each step in a non-production tenant first.

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 recipe

Okta

Auth0 Auth for MCP and Okta for AI Agents for Okta Customer Identity

DocumentedLast verified Nov 2026

Written from vendor documentation and design experience; not yet lab-tested by Trevonix. Validate each step in a non-production tenant first.

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 recipe

Microsoft Entra

Microsoft Entra External ID

DocumentedLast verified Nov 2026

Written from vendor documentation and design experience; not yet lab-tested by Trevonix. Validate each step in a non-production tenant first.

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 recipe

Not available

No Saviynt recipe has been published for this pattern yet.

Ask a Trevonix architect about Saviynt

MCP authorisation specification and assistant connector directories recipe

MCP authorisation specification and assistant connector directories

DocumentedLast verified Nov 2026

Written from vendor documentation and design experience; not yet lab-tested by Trevonix. Validate each step in a non-production tenant first.

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#

TestExpected result
Assistant calls the MCP server without a token401 with protected resource metadata
Unknown assistant requests a write scopeRefused or limited to read-only per policy
Customer consents to read only; assistant tries a changeRefused
Assistant requests a paymentConfirmation on the customer's device; nothing happens without it
Customer revokes the assistantNext call fails; refresh token invalid
Assistant exceeds its rate or value limitThrottled 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.

Related patterns and references#

Cite this pattern

Trevonix (2026). Let customers connect their own AI assistants to your service (AGT-045, version 1.0). Identi Patterns. https://patterns.trevonix.com/patterns/agt-045-let-customers-connect-their-own-ai-assistants-to-your-service

Licensed under CC BY 4.0. Credit Trevonix and link to this page when you reuse it.

Patterns are guidance, provided as is and without warranty. Test in a non-production environment and check current vendor documentation before you rely on them. Read the full disclaimer.