> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connections

Configure enterprise SSO connections
<div class="sdk-client-page">

Use the connection client to configure enterprise SSO (SAML/OIDC) for an organization.

Enable SSO after the organization exists: create a connection, complete IdP setup, and test sign-in for that org.

### CreateConnection
<div class="sdk-method-section">

      Runs `CreateConnection` and returns the result.

        Request context

        Organization ID.

        Connection.

        The created resource.

```go
import (
  connectionsv1 "github.com/scalekit-inc/scalekit-sdk-go/v2/pkg/grpc/scalekit/v1/connections"
)

created, err := scalekitClient.Connection().CreateConnection(ctx, "org_123", &connectionsv1.CreateConnection{
  Provider:    connectionsv1.ConnectionProvider_OKTA,
  Type:        connectionsv1.ConnectionType_SAML,
  ProviderKey: "my-okta-connection",
})
if err != nil {
  // handle
}
_ = created.Connection
```

</div>

### DeleteConnection
<div class="sdk-method-section">

      Runs `DeleteConnection` and returns the result.

        Request context

        Organization ID.

        Resource ID.

        error

```go
if err := scalekitClient.Connection().DeleteConnection(ctx, "org_123", "conn_456"); err != nil {
  // handle
}
```

</div>

### GetConnection
<div class="sdk-method-section">

      Runs `GetConnection` and returns the result.

        Request context

        Organization ID.

        Resource ID.

        The response payload for this operation.

```go
conn, err := scalekitClient.Connection().GetConnection(ctx, "org_123", "conn_123")
if err != nil {
  // handle
}
_ = conn.Connection
```

</div>

### ListConnectionsByDomain
<div class="sdk-method-section">

      Runs `ListConnectionsByDomain` and returns the result.

        Request context

        Domain name.

        Paginated connections.

```go
conns, err := scalekitClient.Connection().ListConnectionsByDomain(ctx, "acme.com")
if err != nil {
  // handle
}
_ = conns.Connections
```

</div>

### ListConnections
<div class="sdk-method-section">

      Runs `ListConnections` and returns the result.

        Request context

        Organization ID.

        Paginated connections.

```go
conns, err := scalekitClient.Connection().ListConnections(ctx, "org_123")
if err != nil {
  // handle
}
_ = conns.Connections
```

</div>

### EnableConnection
<div class="sdk-method-section">

      Runs `EnableConnection` and returns the result.

        Request context

        Organization ID.

        Resource ID.

        The updated resource.

```go
resp, err := scalekitClient.Connection().EnableConnection(ctx, "org_123", "conn_123")
if err != nil {
  // handle
}
_ = resp.Enabled
```

</div>

### DisableConnection
<div class="sdk-method-section">

      Runs `DisableConnection` and returns the result.

        Request context

        Organization ID.

        Resource ID.

        The updated resource.

```go
resp, err := scalekitClient.Connection().DisableConnection(ctx, "org_123", "conn_123")
if err != nil {
  // handle
}
_ = resp.Enabled
```

</div>

</div>


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
