Follow a shared thread, read-only (AG-UI), for a signed-in reader
connectThread for a thread a link names (ADR 0040, agui.md): the connect stream over the reader projection, replayed from the start or from Last-Event-ID and then followed, so what the owner writes after sharing is shown too. It starts no run and takes no input. The stream ends when the link is taken down, replaced by a new one, or narrowed below internal, at the token's expiry, and at the deployment's lifetime like every stream (an hour at most, ADR 0082); a reader whose stream ended at its lifetime reopens it with its last id:, and one whose link was revoked gets the 404. The href of a kept file in its frames is getSharedArtifact's route, and where the log ends is told as connectThread tells it (an id: with no data:), which for this thread is usually the share itself.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Header Parameters
"^[0-9]*$"Query Parameters
"run"Responses
The shared thread's events (text/event-stream), Cache-Control: no-store, no-transform