Skip to content
Trustaige Docs

Sign in to AWS Client VPN with Trustaige

Make Trustaige the federated sign-in for an AWS Client VPN endpoint and its self-service portal, and authorize people by their Trustaige groups.

  • Every plan
  • Needs AWS Client VPN
  • Needs AWS VPN Client 1.2.0
  • About 20 minutes
View as Markdown

AWS Client VPN signs people in through a SAML identity provider when the endpoint uses federated authentication. With Trustaige as that provider, AWS VPN Client opens Trustaige in the system browser, the person proves it’s them with their passkey, and the endpoint’s authorization rules admit them by group.

  1. Person to AWS VPN Client: connects
  2. AWS VPN Client to Trustaige: AuthnRequest, in the system browser
  3. Person and Trustaige: passkey
  4. Trustaige to AWS VPN Client: signed assertion to 127.0.0.1:35001
  5. AWS VPN Client to Client VPN endpoint: connects with the assertion
  6. Client VPN endpoint to AWS VPN Client: tunnel up, by authorization rule

AWS fixes both values a service provider usually supplies, so there is nothing to copy from AWS into the hub:

Value
Audience (entity ID)urn:amazon:webservices:clientvpn
Reply URL, AWS VPN Clienthttp://127.0.0.1:35001, where the client listens on the person’s own device
Reply URL, self-service portalhttps://self-service.clientvpn.amazonaws.com/api/auth/sso/saml

The app accepts both reply URLs, so one app serves the client and the portal.

Before you begin

You needWhy
Permission in AWS to create IAM identity providers and Client VPN endpointsYou create both.
AWS VPN Client 1.2.0 or later on every deviceIt opens sign-in in the system browser, where passkeys work.
A first and last name for everyone who connectsTrustaige sends FirstName and LastName from the person’s profile or, when those are empty, their display name split at its first space.
The permission to manage apps in TrustaigeYou 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 AWS Client VPN and click Connect, then Begin setup.
  2. At Create the SAML provider in IAM, 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 the VPN. These are also the groups authorization rules match on.

2. Create the SAML provider in IAM

  1. In the AWS console, go to IAM → Identity providers and click Add provider.
  2. Choose SAML, name the provider, for example Trustaige, and upload the file from Download XML as the metadata document.
  3. Click Add provider.

3. Use it on the Client VPN endpoint

  1. In VPC → Client VPN endpoints, create an endpoint. Under Authentication, choose Use user-based authentication, then Federated authentication, and choose the provider as the SAML provider ARN.
  2. To let people download the client and their configuration themselves, turn on the self-service portal and choose the same provider as the Self-service SAML provider ARN.
  3. Finish the endpoint as you normally would: client CIDR, server certificate, target network associations.

4. Authorize by group

Trustaige sends each assigned group the person belongs to, directly or through a parent group, in memberOf: the group’s slug, or its name when it has none.

On the endpoint’s Authorization rules, click Add authorization rule for each destination network. Choose Allow access to users in a specific access group and enter the Trustaige group as the Access group ID.

5. Use AWS VPN Client 1.2.0 or later

6. Test a connection

Download the client configuration from the endpoint, or sign in to the self-service portal and download it there, and add it as a profile in AWS VPN Client. Connect: the system browser opens your organization’s Trustaige sign-in; prove it’s you with your passkey, and the 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 IDThe person’s email in your organization, format emailAddress
FirstNameFirst name from their profile
LastNameLast name from their profile
memberOfThe app’s assigned groups the person belongs to
SignaturesThe response and the assertion are both signed

Troubleshooting

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

The request asks for a reply URL the app doesn’t have. The app accepts the two in the table at the top of this page; any other comes from a different AWS 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 signs in, but can't reach a network

No authorization rule grants their group that destination. Check the Access group ID against the group exactly as Trustaige sends it.

The browser doesn't return to AWS VPN Client

The client listens on 127.0.0.1:35001. Something else on the device holding that port, or a client older than 1.2.0, stops the hand-back.