# Sign in to GlobalProtect with Trustaige

> Make Trustaige the SAML sign-in for the GlobalProtect portal and its gateways, so people connect with their passkey in the default browser.

Source: https://docs.trustaige.com/manage/vpn-globalprotect

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.

PAN-OS accepts a SAML identity provider for GlobalProtect. With Trustaige as
that provider, the GlobalProtect app opens Trustaige in the default browser,
the person proves it's them with their passkey, and the portal and gateways
admit them by username and group.

1. Person → GlobalProtect app: connects
2. GlobalProtect app → Portal or gateway: asks to sign in
3. Portal or gateway → Trustaige: AuthnRequest, in the default browser
4. Person ↔ Trustaige: passkey
5. Trustaige → Portal or gateway: signed assertion: username and groups
6. Portal or gateway → GlobalProtect app: connected

The portal and each gateway are separate SAML service providers, named by
their address. A gateway at the portal's address shares the portal's app. A
gateway at another address needs an app of its own: create it as an in-house
SAML app (see [Set up a SAML app](/sign-in/saml)) with that gateway's address
in the same two URLs.

## Before you begin

| You need | Why |
|---|---|
| The portal's address | Trustaige builds the portal's SAML URLs from it. |
| A certificate on that address that devices trust | The default browser opens the portal 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 **Palo Alto
   GlobalProtect** and click **Connect**, then **Begin setup**.
2. At **Enter the portal address**, enter the **Portal address**, for example
   `<your-vpn-host>`, and click **Save**.
3. Check the addresses the hub shows:

   | Hub label | Value |
   |---|---|
   | **Application identifier** | `https://<your-vpn-host>:443/SAML20/SP` |
   | **Reply URL** | `https://<your-vpn-host>:443/SAML20/SP/ACS` |

   Click **I've done this**.
4. At **Import Trustaige into PAN-OS**, click **Download XML** and keep the
   file for the next section.

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

## 2. Import Trustaige into PAN-OS

1. Go to **Device → Server Profiles → SAML Identity Provider** and click
   **Import**. Name the profile and choose the file from **Download XML**.
2. Trustaige's signing certificate is self-signed. If you keep **Validate
   Identity Provider Certificate** on, add the certificate to the certificate
   profile the authentication profile uses.
3. In the imported profile, leave **Sign SAML Message to IdP** cleared.
   Trustaige checks the signature of any request that carries one, against a
   certificate it would need first.

## 3. Create the authentication profile

1. Go to **Device → Authentication Profile** and add a profile with **Type**
   **SAML** and the server profile you imported.
2. Set **Username Attribute** to `username` and **User Group Attribute** to
   `groups`.
3. On **Advanced**, add the users or groups that may connect to the **Allow
   List**.
4. In **Network → GlobalProtect → Portals**, open the portal, and under
   **Authentication**, choose the profile for client authentication. Do the
   same on each gateway at the portal's address under **Network →
   GlobalProtect → Gateways**.

## 4. Turn on the default browser

> **Important:** This step is required. The GlobalProtect app opens SAML sign-in in an embedded
> browser unless the portal tells it otherwise, and passkeys are not reliable
> there. In the default browser, passkeys and the device's own sign-in work as
> everywhere else.

1. In **Network → GlobalProtect → Portals**, open the portal, go to
   **Agent**, and open the agent configuration.
2. On the **App** tab, set **Use Default Browser for SAML Authentication** to
   **Yes**.
3. Commit the configuration. The app picks it up at its next connection to the
   portal.

## 5. Test a connection

On a device with the GlobalProtect app, connect to the portal. The default
browser opens your organization's Trustaige sign-in; prove it's you with your
passkey, and GlobalProtect 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 default browser.

## What Trustaige sends

| | |
|---|---|
| Name ID | The person's email in your organization, format `emailAddress` |
| `username` | The person's email in your organization |
| `groups` | The app's assigned groups the person belongs to, directly or through a parent group: each group's slug, or its name when it has none |
| Signatures | The response and the assertion are both signed |

To send the groups under another name, open the app's menu, choose **Edit
app**, change it under **Attribute Mappings**, and set the same name as the
**User Group Attribute**.

## Troubleshooting

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

The app is using its embedded browser. Set **Use Default Browser for SAML
Authentication** to **Yes** in the portal's agent configuration, commit, and
reconnect.

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

The entity ID PAN-OS sends doesn't match the app's **Application identifier**,
usually because the request came from a gateway at another address. Give that
gateway an app of its own.

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

The reply URL PAN-OS asks for differs from the app's **Reply URL**. Check the
address entered in the hub.

**“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 signs in, but GlobalProtect refuses them**

The authentication profile's **Allow List** doesn't include them. Add the
group exactly as Trustaige sends it, or **all**.
