# Sign in to Cisco Secure Client on Threat Defense with Trustaige

> Make Trustaige the SAML sign-in for a Threat Defense connection profile, and choose each person's group policy from their roles in Trustaige.

Source: https://docs.trustaige.com/manage/vpn-cisco-ftd

Replace these placeholders with your organization's own values:

- `<your-vpn-host>`: VPN gateway address, for example `vpn.example.com`. The address people connect to, as entered when setting up the VPN app in the hub.
- `<your-org-id>`: Organization short ID, for example `a1B2c3D4e5F6`. The part after /o/ in your hub’s address.

Secure Firewall Threat Defense accepts a SAML identity provider for a remote
access connection profile. With Trustaige as that provider, Cisco Secure
Client opens Trustaige in the default browser, the person proves it's them
with their passkey, and Threat Defense applies the group policy their role in
Trustaige names.

1. Person → Secure Client: connects to the connection profile
2. Secure Client → Threat Defense: asks to sign in
3. Threat Defense → Trustaige: AuthnRequest, in the default browser
4. Person ↔ Trustaige: passkey
5. Trustaige → Threat Defense: signed assertion: Name ID and cisco_group_policy
6. Threat Defense → Secure Client: tunnel up, with that group policy

One app serves one connection profile: the profile's name is part of Threat
Defense's SAML URLs.

## Before you begin

| You need | Why |
|---|---|
| Threat Defense **7.1** or later, managed by the management center | The default OS browser needs it. |
| The address people connect to, and the connection profile's name | Trustaige builds the SAML URLs from them. |
| An identity certificate on the device that devices trust | The default browser opens the device during sign-in, and refuses an untrusted certificate. |
| The permission to manage apps in Trustaige | You create the app, its roles and its groups. |

## 1. Set up the app in the hub

1. In the hub, go to **Apps**. Under **Integrations**, find **Cisco Secure
   Client (Threat Defense)** and click **Connect**, then **Begin setup**.
2. At **Enter the address and connection profile**, enter the **VPN address**,
   for example `<your-vpn-host>`, and the **Connection profile** exactly as
   named in the management center, for example `TRUSTAIGE`. Click **Save**.
3. Check the addresses the hub shows:

   | Hub label | Value |
   |---|---|
   | **Application identifier** | `https://<your-vpn-host>/saml/sp/metadata/TRUSTAIGE` |
   | **Reply URL** | `https://<your-vpn-host>/+CSCOE+/saml/sp/acs?tgname=TRUSTAIGE` |

   Click **I've done this**.

The next step shows Trustaige's own values. Open **Need to enter values
manually?** to see them, and save the **Signing certificate**.

| Hub label | Value |
|---|---|
| **Identity provider URL** | `https://id.trustaige.com` |
| **Sign-in endpoint** | `https://id.trustaige.com/o/<your-org-id>/saml/sso` |
| **Sign-out endpoint** | `https://id.trustaige.com/o/<your-org-id>/saml/slo` |

**Choose who can connect.** On the app's page, in the **Access** section,
click **Assign groups** and choose the groups whose people use the VPN.

## 2. Choose group policies in Trustaige

Trustaige sends the person's roles in this app in the `cisco_group_policy`
attribute, and Threat Defense applies the group policy it names.

1. On the app's page, in the **Roles** section, click **Add role**.
2. Set **Key** to the name of a group policy, for example `engineering-vpn`.
   Role keys are lowercase letters, digits, dots, hyphens and colons, so name
   the group policies in the management center to match.
3. Open the role, and under **Held by**, choose the groups whose members get
   that group policy.
4. Repeat for each group policy. Give each person one role in this app.

## 3. Add Trustaige as a single sign-on server

1. In the management center, go to **Objects → Object Management → AAA Server
   → Single Sign-on Server**, and add a server.
2. Fill it in:

   | Field | Value |
   |---|---|
   | **Identity Provider Entity ID** | `https://id.trustaige.com` |
   | **SSO URL** | `https://id.trustaige.com/o/<your-org-id>/saml/sso` |
   | **Logout URL** | `https://id.trustaige.com/o/<your-org-id>/saml/slo` |
   | **Base URL** | `https://<your-vpn-host>` |
   | **Identity Provider Certificate** | Trustaige's signing certificate |
   | **Service Provider Certificate** | The device's identity certificate |
   | **Request Signature** | No signature |

## 4. Sign the connection profile in with Trustaige

1. Go to **Devices → Remote Access**, edit the policy, and edit the
   `TRUSTAIGE` connection profile.
2. On **AAA**, set **Authentication Method** to **SAML** and choose the server.
3. Add the group policies your roles name to the policy, under **Advanced →
   Group Policies**, so they're deployed to the device.

## 5. Turn on the default OS browser

> **Important:** This step is required. Secure Client opens SAML sign-in in an embedded browser
> unless the connection profile uses the default OS browser, and passkeys are not
> reliable there. In the default browser, passkeys and the device's own sign-in
> work as everywhere else.

On the connection profile's **AAA** tab, set **SAML Login Experience** to
**Default OS Browser**. The management center asks for Cisco's external
browser package for your Secure Client version if the policy doesn't have one
yet. Save and deploy.

## 6. Test a connection

On a device with Secure Client, connect to the connection profile. The default
browser opens your organization's Trustaige sign-in; prove it's you with your
passkey, and Secure Client connects with the group policy your role names.
Each sign-in appears in the hub's **Audit log**.

Policies on the app apply to this sign-in like any other, device trust
included, because it happens in the default browser.

## What Trustaige sends

| | |
|---|---|
| Name ID | The person's email in your organization, format `emailAddress` |
| `cisco_group_policy` | The keys of the person's roles in this app |
| Signatures | The response and the assertion are both signed |

Trustaige also sends `email`, `uid`, `givenName`, `surname`, `displayName`,
`groups` and `deviceId` under their own names.

## Troubleshooting

**The sign-in window says passkeys aren't available**

Secure Client is using its embedded browser. Set **SAML Login Experience** to
**Default OS Browser** and deploy.

**“no application is configured for this service provider”**

The entity ID Threat Defense sends doesn't match the app's **Application
identifier**, often through the connection profile's name. Correct the hub's
side under **Edit app**, or the name in the hub's setup.

**“Access denied: you are not assigned to this application”**

The person isn't in any group assigned to the app. Add them to one, or assign
a group they're in.

**The person connects with the wrong group policy**

Their role's key doesn't match a deployed group policy, or they hold no role or
several. Check the role under **Roles → Held by**, and that the group policy
is under **Advanced → Group Policies** with exactly that name.
