# Sign in to Cisco Secure Client on ASA with Trustaige

> Make Trustaige the SAML sign-in for a Cisco ASA tunnel group, so people connect with Cisco Secure Client and their passkey in the system browser.

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

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.

The ASA accepts a SAML identity provider for a tunnel group. With Trustaige as
that provider, Cisco Secure Client opens Trustaige in the system browser, the
person proves it's them with their passkey, and the ASA takes their username
from the assertion.

1. Person → Secure Client: connects to the tunnel group
2. Secure Client → ASA: asks to sign in
3. ASA → Trustaige: AuthnRequest, in the system browser
4. Person ↔ Trustaige: passkey
5. Trustaige → ASA: signed assertion: Name ID
6. ASA → Secure Client: tunnel up

One app serves one tunnel group: the tunnel group's name is part of the ASA's
SAML URLs.

## Before you begin

| You need | Why |
|---|---|
| ASA **9.17(1)** or later, and Cisco Secure Client **4.10.04065** or later | The external browser needs both. |
| The address people connect to, and the tunnel group's name | Trustaige builds the ASA's SAML URLs from them. |
| An identity certificate on the ASA that devices trust | The system browser opens the ASA during sign-in, and refuses an untrusted certificate. |
| The permission to manage apps in Trustaige | You create the app and assign its groups. |

## 1. Set up the app in the hub

1. In the hub, go to **Apps**. Under **Integrations**, find **Cisco Secure
   Client (ASA)** and click **Connect**, then **Begin setup**.
2. At **Enter the ASA's address and tunnel group**, enter the **VPN address**,
   for example `<your-vpn-host>`, and the **Tunnel group** exactly as named on
   the ASA, for example `TRUSTAIGE`. Click **Save**.
3. Check the addresses the hub shows. They match what
   `show saml metadata TRUSTAIGE` prints on the ASA:

   | 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 copy the **Signing certificate** in the PEM tab.

| 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.
Trustaige refuses everyone else before the ASA hears of them.

## 2. Add Trustaige to the ASA

Import Trustaige's signing certificate as a trustpoint, then define Trustaige
under `webvpn`. `ASA-IDENTITY` stands for the trustpoint that holds the ASA's
own identity certificate.

```text title="ASA CLI"
crypto ca trustpoint TRUSTAIGE-IDP
 revocation-check none
 no id-usage
 enrollment terminal
 no ca-check
crypto ca authenticate TRUSTAIGE-IDP nointeractive
! paste the Signing certificate, then a line with: quit

webvpn
 saml idp https://id.trustaige.com
  url sign-in https://id.trustaige.com/o/<your-org-id>/saml/sso
  url sign-out https://id.trustaige.com/o/<your-org-id>/saml/slo
  base-url https://<your-vpn-host>
  trustpoint idp TRUSTAIGE-IDP
  trustpoint sp ASA-IDENTITY
  no signature
```

`no signature` leaves the ASA's requests unsigned, which is what Trustaige
expects unless the app holds the ASA's certificate.

## 3. Sign the tunnel group in with Trustaige

```text title="ASA CLI"
tunnel-group TRUSTAIGE webvpn-attributes
 authentication saml
 saml identity-provider https://id.trustaige.com
```

The ASA takes the username from the Name ID, which is the person's email in
your organization.

## 4. Turn on the external browser

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

Give the ASA Cisco's external browser package, downloaded from Cisco for your
Secure Client version, and turn the external browser on for the tunnel group:

```text title="ASA CLI"
webvpn
 anyconnect external-browser-pkg disk0:/external-sso-<version>-webdeploy-k9.zip
tunnel-group TRUSTAIGE webvpn-attributes
 saml external-browser
```

## 5. Test a connection

On a device with Secure Client, connect to the tunnel group. The system browser
opens your organization's Trustaige sign-in; prove it's you with your passkey,
and Secure Client connects. 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 system browser.

## What Trustaige sends

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

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

## Troubleshooting

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

Secure Client is using its embedded browser. Check `saml external-browser` on
the tunnel group, the external browser package, and the versions under
[Before you begin](#before-you-begin).

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

The entity ID the ASA sends doesn't match the app's **Application
identifier**, often through the tunnel group's name or a port. Compare them
with `show saml metadata`, and correct the hub's side under **Edit app**.

**“failed to resolve ACS endpoint: requested ACS URL not registered”**

The ASA's reply URL differs from the app's **Reply URL**. Make the two the
same.

**“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.
