# Connections

> Sign in once to another system that offers OAuth, then use that connection from a workflow HTTP step. The workflow never sees the secret.

A connection lets a workflow call a system that signs you in with OAuth. You sign in under **Settings**. The workflow names the connection. SAPUGO stores the client secret and the tokens, and refreshes the access token when it is about to expire.

A connection is not a built-in integration for a named product. It works with any system that offers OAuth. A static API key stays a [secret](/docs/workflows/nodes/other-systems#keep-credentials-safe).

## Create a connection

1. Open **Settings**, **Developer Tools**, **Connections**, then **New connection**.
2. Choose **Sign in once** when a person approves access, or **App credentials** when the other system issues access to the application itself.
3. Enter the authorize address (sign in once only), the token address, the client id, the client secret, and any scopes the other system asks for.
4. Copy the **redirect address** shown on the page into the other system. Every connection uses the same address.
5. For **Sign in once**, choose **Sign in** and approve access in the other system. For **App credentials**, choose **Test**.

The status is **Connected**, **Needs sign-in**, or **Failing**. A failing connection shows the last error. **Reconnect** starts sign-in again. **Disconnect** forgets the tokens and keeps the connection.

## Use it in a workflow

On **HTTP Request** or **New HTTP Client**, set authentication to **Connection** and pick the connection on the pin. The step sends the current access token. If sign-in has expired, the step fails and a [Try / Catch](/docs/workflows/nodes/flow) can record it. Sign in again under **Connections**.

  - [Other systems steps](/docs/workflows/nodes/other-systems): Call a web API, a file server, or an EDI partner.
  - [Webhooks](/docs/webhooks): Tell another system about every change to a table.

---

Source: https://community.sapugo.app/docs/connections
