You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 18e9b3f
Browse filesBrowse the repository at this point in the historyBrowse files
docs(automation): connectors page describes the served rest/openapi credential handle and app-credential exchanges
The "held degraded" paragraph still said app-credential exchanges are not
run and that rest/openapi do not ask the credential handle; both providers
now ask it and the Feishu/DingTalk/WeCom exchanges run. Only mcp stays
listed as not served. "How the server serves them" gains the per-vendor
exchange, the in-memory token with its 30 s skew, and WeCom's
40014/42001 refresh-once; the failure table row is narrowed to match.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibwa6RkD7A2gK6rYRNT
The token belongs to the app, so a run's organization selects nothing, and
494
+
there is nothing to connect. It is kept in memory only, never stored (the app
495
+
secret re-derives it at any time), and obtained afresh when it is within 30
496
+
seconds of its expiry, or once when the upstream answers `401`. Concurrent
497
+
requests share one exchange. WeCom can invalidate a token before it expires
498
+
and says so inside an ordinary answer (`errcode``40014` or `42001`) rather
499
+
than with a `401`: such an answer obtains the token afresh once and repeats
500
+
the call once, and a second such answer fails the call. No exchange follows a
501
+
redirect. An exchange that gets no answer, a `429` or a `5xx` fails the
502
+
dispatch `CONNECTOR_UPSTREAM_UNAVAILABLE`, retried on the existing backoff; a
503
+
vendor that refuses the app id or secret fails it with `503`, naming the
504
+
instance and at most the vendor's error code, never the vendor's text.
505
+
506
+
An **`oauth2`** instance's access token is
475
507
obtained from `tokenUrl` (the client authenticating with HTTP Basic, or by
476
508
`client_id` alone as a public client), cached in memory only, refreshed when
477
509
it is within 30 seconds of its expiry, and refreshed once more, with one
@@ -527,10 +559,11 @@ a rotating refresh token is never spent twice.
527
559
disconnect is a response to a leak.
528
560
529
561
What is not served yet is held **degraded** with a reason that names it, and
530
-
never called without its credential: `app-credential` (its vendor exchanges
531
-
are not run yet), an `oauth2` instance on a provider that does not yet ask the
532
-
credential handle (the built-in `rest`, `openapi` and `mcp` providers do not
533
-
yet), an `mcp` instance that left its endpoints to discovery, and an `oauth2`
562
+
never called without its credential: an `oauth2` or `app-credential`
563
+
instance on a provider that does not ask the credential handle (the built-in
564
+
`mcp` provider does not yet, nor does a plugin's provider registered without
565
+
`{ credentialHandle: true }`), an `mcp` instance that left its endpoints to
566
+
discovery, and an `oauth2`
534
567
instance whose `tokenUrl` or `authorizationUrl` is not `https://` (plain
535
568
`http://` is accepted only to `localhost`, a `127.0.0.0/8` address or
536
569
`[::1]` — not a `*.localhost` name, which the system resolver sends to DNS —
@@ -663,7 +696,7 @@ retry):
663
696
|:---|:---|
664
697
|`provider` names no installed factory |**Hard boot error** naming the entry, the provider, and the plugin that supplies it — add the executor to `plugins:`|
665
698
| Invalid `providerConfig` (missing `baseUrl` / `spec` / `transport`, wrong shape) |**Hard boot error** from the provider factory |
666
-
|`auth` is a grant-bearing kind (`oauth2`, `app-credential`) this server does not serve yet (`app-credential`; `oauth2`on a provider that does not ask the credential handle) |**Not fatal**: the instance registers **degraded**, naming the kind, and the upstream is never called without its credential; a datasource borrowing it is refused with `422`|
699
+
|`auth` is a grant-bearing kind (`oauth2`, `app-credential`) on a provider that does not ask the credential handle (the built-in `mcp` provider, for now) |**Not fatal**: the instance registers **degraded**, naming the kind, and the upstream is never called without its credential; a datasource borrowing it is refused with `422`|
667
700
| An `authorization_code` instance nobody connected, or whose grant the vendor refused |**Not fatal**: the instance registers **degraded**, "not connected" or "reconnect required" — connect it (`POST …/connectors/:name/connection`), and it materializes without a restart |
668
701
| The token endpoint is unreachable or answers `5xx` / `429`|**Not fatal**: the dispatch fails `CONNECTOR_UPSTREAM_UNAVAILABLE` and is retried on the existing backoff; the connection stays connected |
669
702
|`auth` is `signed` on a provider that does not say it applies the request signer |**Hard boot error** naming the instance, the scheme and the provider: its calls would go out unsigned — declare it through `rest` or `openapi`|
0 commit comments