AGT-045DocumentedAgent identity/Delegation 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.
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.

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
- Choose capabilities to expose and group them into a few plain-language scopes (for example: see bookings; change bookings).
- Build the MCP server with protected resource metadata and token validation for your customer authorisation server.
- Enable client ID metadata documents in your customer identity platform; decide the allow-list policy for write scopes.
- Design the consent screen with customers: assistant identity, permissions, how to revoke.
- Issue narrow, short-lived tokens and rotate refresh tokens.
- Add confirmation for risky actions on the customer's device, and limits per assistant.
- Ship a connected assistants page and notify customers of new connections.
- Monitor per-assistant behaviour; suspend assistants or vendors that misbehave.
Design rules#
- Customers sign in and consent on your pages, never in the assistant.
- Assistants are identified by verifiable client metadata.
- Tokens are narrow, short-lived and bound to one customer and one assistant.
- Risky actions need confirmation or a mandate.
- Customers can see and revoke every connected assistant.
- 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 |
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
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
- Protect the MCP server with PingGateway and tokens from PingOne or Advanced Identity Cloud.
- Pre-register known assistant vendors as applications in PingOne, which does not support dynamic client registration; Advanced Identity Cloud supports client ID metadata documents.
- 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
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
- 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.
- Leave Dynamic Client Registration off (the default); Auth0 recommends manual CIMD registration for production.
- 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.
- 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
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.
MCP authorisation specification and assistant connector directories recipe
MCP authorisation specification and assistant connector directories
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#
| 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.
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.