# SSOConnection.activated

URL: /business/events/SSOConnection.activated · Id: `event:SSOConnection.activated`

> Emitted each time a SSO Connection is activated.

[SSOConnection.activate](/business/nouns/sso-connection/activate) emits `SSOConnection.activated` when it completes on a [SSO Connection](/business/nouns/sso-connection).

| Property | Value |
| --- | --- |
| Emitted by | [SSOConnection.activate](/business/nouns/sso-connection/activate) |
| Noun | [SSO Connection](/business/nouns/sso-connection) |
| Moves | [SSO Connection](/business/nouns/sso-connection) `draft` to `active`; [SSO Connection](/business/nouns/sso-connection) `failing` to `active`; [SSO Connection](/business/nouns/sso-connection) `inactive` to `active` |
| Wakes | None. |

### Payload
Each delivery is an [Event](/business/nouns/event) record. `data` holds what [SSOConnection.activate](/business/nouns/sso-connection/activate) returns, and `previous` holds the state it left.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | `SSOConnection.activated`. |
| `at` | `datetime` | Yes | When it happened. |
| `seq` | `integer` | No | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. |
| `data` | `json` | Yes | The Thing as the Action left it. |
| `data.connection` | [SSO Connection](/business/nouns/sso-connection) | Yes | The SSO Connection, now active. |
| `data.connection.protocol` | `string` | Yes | How sign-in is asserted: `saml` or `oidc`. |
| `data.connection.state` | `string` | Yes | Where it stands; only `active` signs anyone in. |
| `data.connection.certificateExpiresAt` | `datetime` | No | When the signing certificate expires; the Customer’s admin hears 30 days before. |
| `data.connection.testedAt` | `datetime` | No | When the Customer’s admin last completed a test sign-in. |
| `data.previous.state` | `string` | Yes | The `state` before this Event: `draft`. |

### Example
```json
{
  "$id": "https://api.sb/tutorloop.com/events/event_1",
  "$type": "Event",
  "name": "SSOConnection.activated",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "connection": {
      "$id": "https://api.sb/tutorloop.com/sso-connections/sso_connection_1",
      "$type": "SSOConnection",
      "protocol": "saml",
      "state": "active",
      "certificateExpiresAt": "2026-10-22T12:00:00Z",
      "testedAt": "2026-10-22T12:00:00Z"
    },
    "previous": {
      "state": "draft"
    }
  },
  "seq": 1
}
```