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
feat(data-warehouse): generic OAuth flow starter for inbox sources
Generalize the inbox OAuth connect flow so any PostHog-supported OAuth
integration kind works without provider-specific code.
`DynamicSourceSetup` already renders `oauth` and `oauth-account-select`
fields generically (account listing + server-side resource search); the
only provider-specific gate was the flow starter, which hardcoded
`kind === "linear"`. PostHog's `…/integrations/authorize/?kind=<kind>`
endpoint is already generic, so this adds a kind-parameterized
`IntegrationService` + `integration` tRPC router and points the OAuth
field's connect button at it via `field.kind`.
Result: adding an OAuth warehouse source (Intercom, HubSpot, Salesforce,
Stripe, ad platforms, …) needs no bespoke setup form or per-kind router —
just the source's registry entry, whose connect-form schema already
carries the oauth field and kind.
0 commit comments