OpenVPN® with SAML Authentication on Centrify IDP¶
This guide provides an example on how to configure Aviatrix to authenticate against Centrify IDP. When SAML client is used, your Aviatrix controller acts as the Identity Service Provider (SP) that redirects browser traffic from client to IDP for authentication.
Before configuring SAML integration between Aviatrix and AWS SSO, make sure the following is completed:
- Aviatrix Controller is setup and running. Follow the Controller Startup Guide to launch the controller
- Have centrify up and running with administrator access
- Download and install the Aviatrix VPN client.
From the Centrify App->Add New App->Custom, select SAML and clidk on “Add”. Click yes and
close the prompt. This lets you configure the application
- Configure app settingsEnter a name for your application, click Save and go to the next page
Copy the metadata URL from the Trust page.
Now go to your Aviatrix Controller. Create a new SAML endpoint from OpenVPN as paste the URL into the Metadata URL field. Give an Endpoint name and click “OK”
This creates a SAML endpoint at the Aviatrix controller
Here you can retrieve the SP metadata by clicking on the SP metadata
Copy the above metadata as text
Go back to the Centrify app and paste the information into the Metadata XML section. Click on “Save” and go to the next section
You can also use URL method if you have configured signed certificates for the Aviatrix Controller, but not for the initial self-signed certificate.
Configure the following SAML attributes (Email is the unique identifier)
FirstName LoginUser.FirstName LastName LoginUser.LastName LoginUser.Email
Also, the custom logic needs to be set for the attributes to work
You can preview the SAML response and this step and select the user. Make sure that there are no errors.
Click “Save” and go to the next tab
Click “Save” and go the next tab
Add any policies if you require them. Click “Save” and go to the next tab
Use the default “Directory service field” mapping. Click “Save” and go to the next tab
Configure the next pages if you require them, “Linked applications”,”Provisioning”, “App Gateway” if you require them. Click “Save”. The SAML configuration at the IDP is now complete
Test the SAML integration. Go back to your Aviatrix controller, Go to OpenVPN->Advanced->SAMl tab. Click test for the SAML endpoint.
You should get redirected to the Centrify and it may ask for credentials, if you are already logged it redirects you back to the controller page
Ignore the warning since you may not have a VPN client already running
To test the VPN integration, you need to perform 3 steps at the aviatrix controller
- Configure cloud account at Accounts->access account
- Create a VPN Gateway in the Gateway page. Check “VPN Enabled” and “SAML Enabled”
- Add a VPN user in the OpenVPN->VPN users page. To the SAML VPN gateway with the respective endpoint. Certificate is emailed or can be downloaded here
Test VPN connectivity by installing the Aviatrix VPN client. Load the VPN certificate and click connect. The browser should open up and login at Centrify. The client then automatically connects to the VPN Gateway. Test connectivity by doing a ping to the private IP of the gateway.