Probe every access review connector on status check
Bad API keys and expired OAuth tokens showed Connected because probes ran only for OAuth2 and many providers had no ProbeURL. Add a registry ProbeConnection dispatcher with static, dynamic, and custom probes so all 41 providers are checked on demand. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -52,12 +52,8 @@ func posthogRegistration() *Registration {
|
||||
// organization_member:read applies org-wide and the org endpoints
|
||||
// resolve @current to the granted organization.
|
||||
ExtraAuthParams: map[string]string{"required_access_level": "organization"},
|
||||
// ProbeURL is intentionally empty: the data host varies per
|
||||
// connection (the region-agnostic gateway for OAuth, us/eu for
|
||||
// API-key), so a single static probe URL cannot match it. A dead
|
||||
// token surfaces on the first ListAccounts.
|
||||
|
||||
SupportsAPIKey: true,
|
||||
Probe: probePostHog,
|
||||
SupportsAPIKey: true,
|
||||
// API-key connections are either PostHog Cloud (a region, us/eu) or
|
||||
// self-hosted (an instance URL). The two are mutually exclusive, so
|
||||
// neither is individually Required; apiKeyConnectorSettings enforces
|
||||
|
||||
Reference in New Issue
Block a user