--- title: "Authentication methods catalog" slug: "build-ai-ready-systems-build-reference-authentication-methods-catalog" description: "Connected System auth catalog — usage slots, authType (credential, apiProvider, system, none), and credential methods with JSON examples for integrators." tags: ["Integration", "Authentication", "Developer", "Integrator"] updated: 2026-11-30T18:57:57Z published: 2026-11-17T12:43:35Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-build-reference-authentication-methods-catalog" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # Authentication methods catalog > **Configure page:** [Configure authentication](/docs/build-ai-ready-systems-connected-systems-configure-authentication). This catalog is the **usage + method matrix** and JSON examples for Connected System credentials. Authentication has two dimensions integrators must combine: 1. **`usage`** — which runtime path loads the credential (`api`, `webhookInbound`, `syncExecution`, …) 2. **`credential.method`** — how the vendor validates the call (API key, OAuth2, bearer token, certificate, …) Both live on **`authentications[]`** in `<systemKey>-system.json`. Platform developer login (`aifabrix login`) is a **separate layer** — see [Platform developer access](/docs/build-ai-ready-systems-build-reference-platform-developer-access). ## Prerequisites - `<systemKey>-system.json` from `aifabrix create` or copied fixture - `env.template` with **`kv://`** paths for every slot’s `security` keys - Business Entity features that need extra usages: [Enterprise webhooks](/docs/enterprise-knowledge-enterprise-webhooks), [Enterprise sync bridge](/docs/enterprise-knowledge-enterprise-sync-bridge-technical) ## Where it lives | Layer | Configuration | | --- | --- | | Multi-credential vendor auth | `<systemKey>-system.json` → **`authentication`** and/or **`authentications[]`** with **`usage`** | | API-only | Root **`authentication`** (default **`api`** usage) | | Secrets | `env.template` → **`kv://`** per slot (never commit values) | | Builder CLI session | `aifabrix login` → token in user config | Each **`authentications[]`** item: | Field | Role | | --- | --- | | **`key`** | Stable slot id (`default`, `webhook`, `sync-worker`, …) | | **`usage`** | Runtime selector — see usage catalog below | | **`authType`** | `credential`, `apiProvider`, `system`, or `none` | | **`credential`** | Method, non-secret `variables`, `security` kv refs (when `authType: credential`) | There is **no separate webhook or sync auth schema** — every slot uses the same credential shapes. **AI Fabrix-facing APIs** authenticate callers with OAuth2 **authorization code** under governed **real-user** authority. That inbound contract is separate from how the Connected System reaches a vendor downstream. ## How to set 1. **Create or refresh the Connected System** — start from `aifabrix create <app> --type external` or an existing fixture; avoid leading with wizard-only flows when repairing auth. 2. **Align the default API slot** — when OpenAPI import assumed OAuth but you use a private app or API key: ``` aifabrix repair --auth apikey aifabrix validate ``` 1. **Add usage slots** — append `authentications[]` entries for each runtime path you enable (`webhookInbound`, `syncExecution`, `messageInbound`, …). Copy the `credential` shape from the `api` slot; change only `key`, `usage`, and `security` kv paths. 2. **Wire `env.template`** — one `kv://` reference per secret key; never commit values. 3. **Upload and test** — operators complete secrets on **Connected Systems → Authentication**; integrators run `test-integration` and E2E to prove each slot. **`repair --auth`** updates the default **`api`** credential block only — add additional slots manually when webhooks, sync, or channels require separate usages. ## Usage catalog | `usage` | Runtime path | Typical credential methods | | --- | --- | --- | | **`api`** | CIP execution, capabilities, integration/E2E, user-context vendor calls | `apikey`, `oauth2`, `bearerToken`, `certificate`, `apiProvider` | | **`webhookInbound`** | Validate POST `/webhooks/{systemKey}/…` (HMAC, bearer, OIDC) | `hmac`, `oidc`, `apikey` (shared secret), `bearerToken` | | **`syncExecution`** | Scheduled **`sync`**, webhook-triggered refresh, **`syncBridge`** propagation | `apikey`, `oauth2` **client credentials** — service account, not end-user OAuth | | **`callback`** | OAuth authorization-code return handling | `oauth2` with callback variables | | **`messageInbound`** / **`messageOutbound`** | Assistant channel ingress/egress when that usage applies (`systemKind: communication`) | Provider-specific; **Request URLs that POST to `/webhooks/…` use `webhookInbound`**, not these slots | | **`provisioning`** | Provisioning hooks | `apikey`, `oauth2` client credentials | ### Feature → required usage | Business Entity / system feature | Required `authentications[]` usage | | --- | --- | | Default CIP and capabilities | **`api`** (minimum one slot) | | `webhook.enabled: true` | **`webhookInbound`** | | Communication vendor Request URL | **`webhookInbound`** (`hmac` or `oidc`) plus **`api`** for the outbound bot token | | `syncBridge: master` or `bidirectional` | **`syncExecution`** (or service-capable **`api`** where policy allows) | | `sync.enabled` background pull | **`syncExecution`** recommended | **On-behalf-of user OAuth is valid for `api` only** — not for `syncExecution` or `webhookInbound`. ## Credential method catalog Applies inside any **`usage`** slot when `authType: credential`. | `credential.method` | Use when | Non-secret `variables` (examples) | `security` kv keys (examples) | | --- | --- | --- | --- | | **`apikey`** | Private app, static token, simple webhook secret | `baseUrl`, `headerName`, `queryParamName` | `apiKey` | | **`hmac`** | Messaging channel inbound events (signature + timestamp headers) | `algorithm`, `signatureHeader`, `timestampHeader`, `signaturePrefix`, `timestampMaxAge` | `signingSecret`, `botToken` (and optional `clientSecret`) | | **`oidc`** | Bot-framework inbound JWT validation | `openIdConfigUrl`, `clientId`, `expectedIssuer`, `algorithms`, `clockSkewSeconds` | none (public metadata only; operator may set audience/client ID in UI) | | **`bearerToken`** | Pre-issued bearer or PAT | `baseUrl`, `headerName` | `token` | | **`oauth2`** | Server-to-server, delegated flows, or bot-framework client credentials | `baseUrl`, `tokenUrl`, `grantType`, `scope` | `clientId`, `clientSecret`, `tenantId` | | **`certificate`** | mTLS or client cert | `baseUrl`, trust store hints | cert/key kv paths per schema | | **`custom`** | Vendor-specific header/query patterns | Documented in integration manifest | Per schema | | `authType` | Use when | | --- | --- | | **`credential`** | Direct vendor secrets via `security` kv refs | | **`apiProvider`** | Platform-managed or enterprise IdP (`apiProviderKey`) — no vendor secrets in manifest | | **`system`** | Platform owns **downstream** authentication acquisition/injection only — **no** credentials, `apiProvider`, or secret `security` block on the slot. Does **not** create an autonomous system actor; business execution still requires governed real-user authority (or fails closed). | | **`none`** | Downstream call injects **no** authentication (true anonymous / public read). Do **not** treat `none` as “forward the caller’s inbound token.” | **System vs none:** choose **`system`** for platform shells and facades where AI Fabrix obtains the target token through the Controller. Choose **`none`** only when the vendor truly accepts unauthenticated calls. There is no `bearerForward` auth type. Wizard OpenAPI import often defaults CRM specs to **`oauth2`**. Private apps frequently need: ``` aifabrix repair --auth apikey ``` **`repair --auth`** updates the default **`api`** credential block. ### Platform-managed system authentication (no vendor secrets on the slot) ``` { "key": "example-platform-facade", "displayName": "Example platform facade", "description": "Illustrative platform facade using system authentication", "type": "openapi", "authentication": { "authType": "system" }, "authentications": [ { "key": "default", "usage": "api", "authType": "system" } ] } ``` Use **`system`** when AI Fabrix owns downstream token acquisition. Do not add `credential` or `apiProvider` on that slot. Callers of AI Fabrix-facing APIs still authenticate as governed users (OAuth2 authorization code) — `system` is not an autonomous actor identity. Prefer **`authentications[]`**; keep root **`authentication`** aligned when your toolchain still requires it. ## Multi-slot examples ### API key — three usages (CRM + webhooks + sync) ``` { "key": "example-crm", "displayName": "Example CRM", "type": "openapi", "authentications": [ { "key": "default", "usage": "api", "authType": "credential", "credential": { "method": "apikey", "variables": { "baseUrl": "https://api.example.com", "headerName": "X-API-Key" }, "security": { "apiKey": "kv://example-crm/apiKey" } } }, { "key": "webhook", "usage": "webhookInbound", "authType": "credential", "credential": { "method": "apikey", "variables": { "headerName": "X-Hub-Signature" }, "security": { "apiKey": "kv://example-crm/webhookSecret" } } }, { "key": "sync-worker", "usage": "syncExecution", "authType": "credential", "credential": { "method": "apikey", "variables": { "baseUrl": "https://api.example.com", "headerName": "X-API-Key" }, "security": { "apiKey": "kv://example-crm/syncApiKey" } } } ] } ``` `syncExecution` may reference the same kv path as `api` when one service credential is appropriate — keep **separate slots** for validation and audit. ### OAuth2 client credentials — `api` + `syncExecution` ``` { "authentications": [ { "key": "default", "usage": "api", "authType": "credential", "credential": { "method": "oauth2", "variables": { "baseUrl": "https://graph.microsoft.com/v1.0", "tokenUrl": "https://login.microsoftonline.com/{{tenantId}}/oauth2/v2.0/token", "grantType": "client_credentials", "scope": "https://graph.microsoft.com/.default" }, "security": { "clientId": "kv://example-sp/clientId", "clientSecret": "kv://example-sp/clientSecret", "tenantId": "kv://example-sp/tenantId" } } }, { "key": "sync-worker", "usage": "syncExecution", "authType": "credential", "credential": { "method": "oauth2", "variables": { "baseUrl": "https://graph.microsoft.com/v1.0", "tokenUrl": "https://login.microsoftonline.com/{{tenantId}}/oauth2/v2.0/token", "grantType": "client_credentials", "scope": "https://graph.microsoft.com/.default" }, "security": { "clientId": "kv://example-sp/clientId", "clientSecret": "kv://example-sp/clientSecret", "tenantId": "kv://example-sp/tenantId" } } } ] } ``` ### Single `authentication` (extend when needed) One root **`authentication`** object is enough for **`api`**-only integrations. Add **`authentications[]`** entries with **`usage: webhookInbound`** or **`usage: syncExecution`** when you enable those features — same `credential` shape as the API block. ### Communication channel — split `api` and `webhookInbound` Used when `systemKind: communication`. Prefill header and algorithm names in **`webhookInbound`** `variables`; keep the outbound bot token on **`api`**. Operators supply secrets after upload. ``` { "key": "example-messaging", "displayName": "Example Messaging Channel", "type": "custom", "systemKind": "communication", "authentications": [ { "key": "default", "usage": "api", "authType": "credential", "credential": { "method": "bearerToken", "security": { "apiKey": "kv://example-messaging/botToken" } } }, { "key": "webhook", "usage": "webhookInbound", "authType": "credential", "credential": { "method": "hmac", "writeOnce": true, "variables": { "algorithm": "sha256", "signatureHeader": "X-Example-Signature", "timestampHeader": "X-Example-Timestamp", "signaturePrefix": "v0=", "timestampMaxAge": "300" }, "security": { "signingSecret": "kv://example-messaging/signingSecret" } } } ] } ``` Use **`oidc`** on **`webhookInbound`** when the vendor validates inbound requests with OpenID Connect instead of HMAC. Complete pending secrets on **Connected Systems → Authentication** before channel probe. See [Deliver assistant channels](/docs/build-ai-ready-systems-operate-deliver-assistant-channels) and [Configure webhook change signals](/docs/build-ai-ready-systems-business-entities-configure-webhook-change-signals). ## Secret values and `writeOnce` **`credential.writeOnce`** defaults to **`true`**. Its secret values are pushed when **`upload`** or **`deploy`** creates the Connected System, and never when they update a system that already exists, with or without **`--force`**. **`datasource upload`** never changes them. | Goal | Use | | --- | --- | | First install: a new Connected System | **`upload`** (or **`deploy`**); it pushes the secrets from `.env` and the local secret store | | Retry after a failed first install | Fix the cause and **`upload`** again, then `aifabrix credential push <systemKey>`; the failed upload left the system as a draft, so the retry is an update and holds the secrets | | Change the secrets of an existing system (rotation) | `aifabrix credential push <systemKey>`, or **Connected Systems → Authentication** | | Set a ref shared with a `writeOnce` credential on an existing system | `aifabrix credential push <systemKey>`; upload holds shared refs on an update | | Change the credential structure or non-secret variables | Edit the manifest and **`upload`**; secret values stay as they are | | Remove datasources from a published system | `upload --force`; on an existing system it does not change secrets | - **Builder:** before it submits, upload asks the dataplane whether the system exists. Not found: the system is new, and every secret is pushed. Found: every **`kv://`** ref that a `writeOnce` credential uses is held, from `.env` and the local secret store. When the answer is unclear (no read access, a server error, or `upload --resume`), upload treats the system as existing and holds them. A failed first upload keeps the new system as a draft, so the next upload finds it and holds the secrets too. When a held ref has a local value, upload names the path (never the value), says why, and prints the next step: `aifabrix credential push <systemKey>`. - **Shared refs:** on an update, a ref that a `writeOnce` credential shares with a `writeOnce: false` credential or a keyvault configuration item is held too, because they share one secret store value. Set it with `aifabrix credential push <systemKey>`. - **`writeOnce: false`:** upload pushes the refs that no `writeOnce` credential uses on every upload, and publish rebuilds the credential from the current template. Use it only when you mean every upload to replace secret values. - **What the server still does on its own:** when a **`kv://`** ref is missing or empty in the dataplane secret store, the dataplane may fill it from its own `KV_*` environment variables when it publishes or activates the connection. It never overwrites a filled value. A **`--force`** publish rebuilds the credential row from the secret store; it does not write secret values. **`--force`** is fine to use: it removes datasources that are no longer in the package and does not change this rule. ## Runtime selection ``` CIP / capabilities / outbound bot calls → authentications[usage=api] POST /webhooks/… → authentications[usage=webhookInbound] Sync job / SyncIntent / syncBridge → authentications[usage=syncExecution] OAuth redirect / callback → authentications[usage=callback] ``` ## Builder CLI (platform) auth Independent of vendor **`authentications[]`**: ``` aifabrix login aifabrix auth status ``` CI/CD: `aifabrix login --method credentials --app <appKey>` with secrets in `secrets.local.yaml`. ## Defaults and examples | Situation | Action | | --- | --- | | Only CIP/capabilities needed | One slot: `usage: api` | | Webhooks enabled on entity | Add `usage: webhookInbound` | | Sync bridge or background sync | Add `usage: syncExecution` | | OpenAPI assumed OAuth, you use API key | `repair --auth apikey` on default slot | | Same secret for api + sync | Allowed — duplicate slot with same `kv://`, different `usage` | | Messaging Request URL (HMAC or OIDC) | `usage: webhookInbound` — not the outbound **`api`** bot token | Minimal single-slot default (extend with `authentications[]` when features require more usages): ``` { "authentication": { "authType": "credential", "credential": { "method": "apikey", "variables": { "baseUrl": "https://api.example.com", "headerName": "X-API-Key" }, "security": { "apiKey": "kv://example-system/apiKey" } } } } ``` Multi-slot JSON examples appear in the sections above (CRM + webhooks + sync, OAuth client credentials, communication `api` + `webhookInbound`). Use those fragments as templates — swap `kv://` paths and vendor URLs for your Connected System. | Mistake | Fix | | --- | --- | | One user OAuth token for all usages | Split **`api`**, **`webhookInbound`**, **`syncExecution`** | | Webhook enabled, no `webhookInbound` slot | Add slot on system manifest | | Sync bridge blocked | Add **`syncExecution`**; use client credentials or API key | | Secrets in committed JSON | **`kv://`** only | | Re-upload (with or without `--force`) to change the secrets of an existing system | `aifabrix credential push <systemKey>`; an update never changes `writeOnce` secrets — see [Secret values and `writeOnce`](/docs/build-ai-ready-systems-build-reference-authentication-methods-catalog#secret-values-and-writeonce) | | CLI login OK, integration 401 | Fix vendor slot, not platform token | | Rotated secret, stale runtime | `aifabrix credential push <systemKey>` (an upload of an existing system never changes `writeOnce` secrets), then re-run **`test-integration`** | ## Validate ``` aifabrix auth status aifabrix validate aifabrix verify-trust aifabrix test-integration aifabrix datasource test-e2e --app ``` 401/403 on integration test → fix the **`usage`** slot that path uses (`api` vs `syncExecution`), not governance subjects. Certification checks webhook config against **`webhookInbound`**. Change-signal events still require CIP **`get`**. Capability-named `events[]` require the named operation instead — do not add a fake **`get`**. Sync bridge still requires **`syncExecution`** and datasource **`get`**/**`update`**. ## Limits Vendor OAuth scopes, webhook signature schemes, certificate rotation, and delegated user flows vary — confirm against vendor documentation. This catalog does not enumerate every schema variant the external-system validator accepts. - Datasource identity (**`key`**, **`resourceType`**, indexed **`externalId`**, …) is independent of auth — see entity configure guides. - **`validate`** checks shape; live TLS, token refresh, and webhook signature proof require **`test-integration`** or E2E. - Confirm capability-named webhook dispatch is live on your deployment before pointing vendor Request URLs at `/webhooks/…`. - Authentication UI shows one card per **`authentications[]`** item; manifest/Builder API defines slots — operators assign secrets per usage after upload. ## Related reading - [Configure authentication](/docs/build-ai-ready-systems-connected-systems-configure-authentication) - [Configure webhook change signals](/docs/build-ai-ready-systems-business-entities-configure-webhook-change-signals) - [Enterprise sync bridge — technical guide](/docs/enterprise-knowledge-enterprise-sync-bridge-technical) - [Enterprise webhooks](/docs/enterprise-knowledge-enterprise-webhooks) - [Platform developer access](/docs/build-ai-ready-systems-build-reference-platform-developer-access) ## Related - [Configure Connected System authentication](/build-ai-ready-systems-connected-systems-configure-authentication.md) - [Platform developer access](/build-ai-ready-systems-build-reference-platform-developer-access.md) - [Configure webhook change signals](/build-ai-ready-systems-business-entities-configure-webhook-change-signals.md) - [Configure sync bridge](/build-ai-ready-systems-business-entities-configure-sync-bridge.md) - [Enterprise sync bridge — technical guide](/enterprise-knowledge-enterprise-sync-bridge-technical.md) - [Enterprise webhooks](/enterprise-knowledge-enterprise-webhooks.md) - [Protection manifests and upload](/build-ai-ready-systems-build-reference-protection-manifests-upload.md) - [Authentication for trust](/operational-trust-authentication-for-trust.md)