Connector Broker Host Contract (Example 13)
This document defines the provider-agnostic host contract used byexamples/13-service-content-hub-plugin.ts.
Use the same contract for SharePoint, Dropbox, Google Drive, Confluence, and internal APIs.
Security Model
- Plugin never receives raw OAuth access/refresh tokens.
- Host owns OAuth, token refresh, token storage, and secret rotation.
- Plugin receives only opaque
sessionIdand normalized content payloads. - Host enforces provider policy and endpoint allowlists before every connector call.
- Host logs correlation IDs for each auth/content operation.
Host Globals
Primary generic globals:globalThis.__FDO_AUTH_BROKERglobalThis.__FDO_CONTENT_BROKER
globalThis.__FDO_CONNECTOR_AUTHglobalThis.__FDO_CONNECTOR_CONTENTglobalThis.__FDO_SHAREPOINT_PROVIDERglobalThis.__FDO_SHAREPOINT
globalThis.__FDO_BROWSER_BROKER.open({ url, policy })
Auth Broker Contract
Content Broker Contract
Required Capabilities
system.networksystem.network.httpssystem.network.scope.external-servicesstoragestorage.jsonsystem.aisystem.ai.assistants.listsystem.ai.requestsystem.clipboard.write
Error Taxonomy (Recommended)
AUTH_REQUIREDAUTH_TOKEN_EXPIREDAUTH_SCOPE_DENIEDENDPOINT_URL_INVALIDPROVIDER_TRANSIENT