- .. meta::
description: Aviatrix User SSL VPN Okta SAML Configuration keywords: Okta, SAML, user vpn, okta saml, Aviatrix, OpenVPN
.. toctree:: :numbered:
This guide provides an example on how to configure Aviatrix to authenticate against an Okta IDP. When SAML client is used, your Aviatrix Controller acts as the Identity Service Provider (ISP) that redirects browser traffic from client to IDP (e.g., Okta) for authentication.
Before configuring SAML integration between Aviatrix and Okta, make sure the following is completed:
- The Aviatrix Controller is set up and running.
- You have a valid Okta account with admin access.
- You have downloaded and installed the Aviatrix SAML VPN client.
If you haven’t already deployed the Aviatrix Controller, follow the Controller Startup Guide.
A valid Okta account with admin access is required to configure the integration.
All users must use the Aviatrix VPN client to connect to the system. Download the client for your OS here.
Follow these steps to configure Aviatrix to authenticate against your Okta IDP:
- Create an Okta SAML App for Aviatrix.
- Retrieve Okta IDP metadata.
- Launch an Aviatrix Gateway.
- Create Aviatrix SAML SP Endpoint.
- Test the Integration is Set Up Correctly.
- Create Aviatrix VPN User.
- Validate.
Note
This step is usually done by the Okta Admin.
Log in to the Okta Admin portal.
Follow Okta documentation to create a new application.
Field
Value
Platform
Web
Sign on method
SAML 2.0
General Settings
Field
Value
Description
App name
Aviatrix
This can be any value. It will be displayed in Okta only.
App logo
Aviatrix logo:
Aviatrix logo (optional)
App visibility
N/A
Leave both options unchecked
SAML Settings
- General
Field
Value
Single sign on URL
https://[host]/flask/saml/sso/[SP Name]
Audience URI (SP Entity ID)
https://[host]/
Default RelayState
Name ID format
Unspecified
Application username
Okta username
[host]
is the hostname or IP of your Aviatrix Controller. For example, "https://controller.demo.aviatrix.live."[SP Name]
is an arbitrary identifier. This same value should be used when configuring SAML in the Aviatrix Controller.
Note
This step is usually completed by the Okta admin.
After the application is created in Okta, go to the Sign On tab for the application. Then, click View Setup Instructions.
Look for the section titled "Provide the following IDP metadata to your SP provider."
Important
Copy the text displayed. This value will be used to configure the SAML "IDP Metadata URL" field on the Aviatrix Controller.
You need to assign the application to your account. Please follow steps 11 through 14 at Okta documentation.
Note
This step is usually completed by the Aviatrix admin.
- Log in to the Aviatrix Controller.
- Click Gateway on the left sidebar.
- Click + New Gateway.
- Enter a Gateway Name.
- Select the appropriate Account Name, Region, VPC ID, Public Subnet, and Gateway Size.
- Mark the VPN Access.
- Mark the Enable SAML.
- For information on the other settings, please refer to this document.
- Click OK to create the Gateway.
Note
This step is usually completed by the Aviatrix admin.
Login to the Aviatrix Controller.
Click OpenVPN® on the left sidebar.
Select Advanced.
Select the SAML tab.
Click + Add New.
Field
Value
Endpoint Name
SP Name
(Use the same name you entered in the Okta Application previously)IDP Metadata Type
Text
IDP Metadata Text
Value Copied from Okta
(Paste the value copied from Okta SAML configuration)Entity ID
Hostname
Click OK.
Start the Aviatrix VPN Client.
Note
If you don't start the client, you will receive a warning from the browser in the last step of this process
Log in to the Aviatrix Controller.
Click OpenVPN® on the left sidebar.
Select Advanced.
Select the SAML tab.
Click Test next to the "SP Name" created in the previous step.
Tip
You will need to assign the new Okta application to a test user's Okta account before clicking Test.
You should be redirected to Okta. Log in with your test user credentials.
Important
If everything is configured correctly, once you have authenticated you will be redirected back to the Controller and the window will close.
- Log in to the Aviatrix Controller.
- Select OpenVPN® > VPN Users on the left sidebar.
- Click + Add New.
- Select the VPC ID and LB/Gateway Name for your SAML Gateway.
- Enter a name in the User Name field.
- Enter any valid email address in the User Email field (this is where the cert file will be sent). Alternatively, you can download the cert if you do not enter an email address.
- Select the SAML Endpoint.
- Click OK.
- Log in to the Aviatrix Controller.
- Click OpenVPN® > VPN Users on the left sidebar.
- Download the configuration for your test user created in the previous step.
- Open the Aviatrix VPN Client application.
- Click Load Conf and select the file downloaded.
- Click Connect.
Note
SAML VPN supports shared certificates. You can share the certificate among VPN users or create more VPN users.
Once you have successfully configured Okta IDP with Aviatrix SP, you can configure Okta for Multi Factor Authentication.
Please read this article from Okta on Multifactor setup.
See this article if you're interested in using Duo in particular.
OpenVPN is a registered trademark of OpenVPN Inc.
.. disqus::