Organization-scoped enterprise connection lifecycle management.
This module owns the persisted truth for enterprise SSO setup. Host apps provide the schemas and repo; Sigra owns the lifecycle and validation rules.
Summary
Types
Functions
@spec activate_connection(config(), map(), map()) :: {:ok, struct()} | {:error, Ecto.Changeset.t()} | {:error, :validation_failed} | {:error, :forbidden}
@spec change_connection(config(), map(), map()) :: Ecto.Changeset.t()
@spec save_connection(config(), map(), map()) :: {:ok, struct()} | {:error, Ecto.Changeset.t()}