Add OKTA connector provider enum and settings

Introduce the OKTA value to the connector_provider enum (Go const,
ConnectorProviders slice, IsValid switch, GraphQL @goEnum, and the
Postgres ALTER TYPE migration) and an OktaConnectorSettings struct
holding the customer's Okta org domain.

Okta is a per-tenant IdP with no central API gateway, so the
connector is keyed on the org domain rather than a shared host. The
oktaDomain field on CreateAPIKeyConnectorInput lets the API-key flow
carry it.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-06-04 14:44:44 +02:00
parent 900b0608c1
commit 5dd8769d19
4 changed files with 32 additions and 1 deletions

View File

@@ -111,6 +111,17 @@ type (
Region string `json:"region"`
Domain string `json:"domain"`
}
// OktaConnectorSettings holds the customer's Okta org domain (the bare
// host, e.g. "acme.okta.com") supplied with the API token. It is the
// single-tenant identifier the driver and name resolver use to build
// the per-org API host (https://<domain>/api/v1/...). Okta has no
// central API gateway — every org authenticates against its own
// domain — so the host is operator-supplied and validated (see
// connector.NormalizeOktaDomain) before it reaches URL construction.
OktaConnectorSettings struct {
Domain string `json:"domain"`
}
)
// GrantType returns the OAuth2 grant type recorded on the connector's