Authdog

Custom channel auth for LlamaIndex Workflows

Last updated Oct 22, 2026
View as Markdown

Run the workflow only from a route that depends on require_auth. The first step stops when the subject is missing, including a direct workflow.run() that skipped the route.

Getting started, including the planned sample, is LlamaIndex Workflows.

What fails closed

POST /invoke with no token is 401. workflow.run() with no subject returns unauthorized and does not contain subject:.

The same POST with a bearer userinfo accepts returns {"reply":"subject:<id>"}.

A resolved subject is not authorization. Scopes and allowed tools are a later check. The trust-store sample is that later check for MCP. This page stops at admission.

Read To learn how to
LlamaIndex Workflows See the hook
API keys and M2M for LlamaIndex Workflows Where the secret is allowed to live
Authorizing tool calls for LlamaIndex Workflows What happens after the subject is known

Learn more