This article will walk through the steps for integrating AWS Client VPN with Idira Identity for user authentication via SAML single sign-on. By enabling SAML authentication, users can use the same directory credentials for authentication, manage access based on Idira Roles or AD groups, and optionally secure VPN access with Idira MFA.
If you already have a SAML configuration with AWS Console, you need to create a separate SAML app in Idira Identity for AWS Client VPN. You cannot reuse the SAML configuration for AWS Console for AWS Client VPN, because each uses a special ACS URL For both the VPN client and the VPN client self-service portal.
Steps

- Set name "AWS VPN Portal Self Service", on the bottom of the first page unselect the "show in user app list" option

- Click Trust
- Click Download Metadata File from IDP section

- Scroll to Service Provider Configuration and select "Manual Configuration" and make the following changes:
Save the configuration but continue with the additional configuration changes that may require some tweaking for your particular environment.
Permissions
Select the correct roles for AWS VPN access.

AWS VPN Client SAML Configuration
In your Identity Admin console go to Web Apps and click the Add Web App button.
Click custom tab
Scroll and click Add for "SAML" and click Close.
Perform the following configuration details:
- Set name "AWS VPN Client Authentication", on the bottom of the first page unselect the "show in user app list" option

- Click Trust
- Click Download Metadata File from IDP section

- Scroll to Service Provider Configuration and select "Manual Configuration" and make the following changes:
- Set "SP Entity ID" to this exact value " urn:amazon:webservices:clientvpn"
- Set the ACS URL to this exact url http://127.0.0.1:35001
- Click Close on the warning

- Click "Both" for "Sign Response or Assertion"
- Set NameID Format to "emailAddress"

Save the configuration but continue with the additional configuration changes that may require some tweaking for your particular environment.
Permissions
Select the correct roles for AWS VPN access.


Option 2: Send all Identity Roles
Click "Add" in the attribute section and perform the following configuration
- Type "memberOf" in the Attribute Name column
- Click the down arrow, hover on LoginUser and then pick "RoleNames"


var roleFilter = "AWS_";// create empty array, or start array with default group that all users can havevar attrArray = ['default'];// Attribute: Rolevar roleNames = LoginUser.RoleNames;for (var i=0; i < roleNames.Length; i++){ if (roleNames[i].indexOf(roleFilter)>=0) { attrArray.push(roleNames[i]); } // else { trace(" role not used "+roleNames[i]);}}setAttributeArray('memberOf', attrArray);
AWS VPN Client Connection Setup
In your AWS Admin console go to IAM.You will repeat these instructions for each Metadata file from Identity (you have two if you are choosing the optional Self-Service Portal).
- Click Identity Providers on the left hand menu and click Add Provider.
- Enter a descriptive name-eg, CyberArk_for_Portal, CyberArk_forClientAuth
- Click Choose file and select the Metadata for the appropriate name
- Save/Add Provider

In your AWS Admin console navigate to the VPC dashboard.Scroll the menu and click on Client VPN Endpoints
You can then use these VPC security groups (as assigned via the SAML assertion) to apply different network access filtering rules to your end users.

- Go to Web Apps and click "Add Web Apps"
- Select Custom
- Click "Add" for the Bookmark option, click Yes and click close

- In the URL field paste the following partial URL: https://self-service.clientvpn.amazonaws.com/endpoints/
- Click to your AWS VPC/VPN Endpoints administration page and copy the "Client VPN endpoint ID" to your clipboard

- Return to the Idira Identity admin tab and paste the value to the end of the partial URL already pasted

- Click Description in the left/middle menu and add a good name and description

- Click Permissions and select the same Identity Roles that are used in the AWS client VPN authentication and self-service portal SAML web apps
Click Save.