Tutorial: Authenticate Using SAML with Okta
Overview
Configure Okta as a SAML 2.0 identity provider (IdP) for CloudConnexa using the SAML Setup Wizard. This lets your users authenticate to CloudConnexa with their Okta credentials.
You'll create a SAML application in Okta, exchange configuration details between Okta and CloudConnexa, map user attributes, and test authentication before completing the setup.
Before you begin
You need:
CloudConnexa: The Owner or Administrator role for the WPC you're configuring.
Okta: The Super Administrator or Application Administrator role.
Access to both administration portals: Keep both open while you configure SAML because you'll exchange values between them.
Step 1: Start the SAML Setup Wizard
Start by selecting Okta as your IdP in CloudConnexa.
Sign in to your WPC's Administration portal at your Cloud ID address (for example,
yourcompany.openvpn.com).Navigate to Settings → User Authentication.
Select Edit.
On the SAML Single Sign-On card, select Setup.
Under Select Your Identity Provider, select Okta.
The wizard displays the configuration instructions and default attribute mappings for Okta.
Step 2: Get the service provider values for CloudConnexa
Okta needs service provider (SP) values from CloudConnexa to send SAML authentication responses to the correct WPC.
Under Share CloudConnea Metadata, copy the following values:
CloudConnexa value
Use in Okta
Format
Single Sign-On URL (ACS)
Single sign-on URL, also called the Assertion Consumer Service (ACS) URL
https://sso-backend.openvpn.com/sso/api/v1/saml/acsIssuer Name
Audience URI (SP Entity ID)
<cloud-id>.openvpn.comKeep the wizard open. You'll return to it after configuring Okta.
For more information, refer to SAML and SCIM Service Provider Endpoints for CloudConnexa.
Step 3: Create a SAML application in Okta
Create an application in Okta that uses service provider values from CloudConnexa.
Sign in to the Okta Admin Console.
Navigate to Applications and Resources → Applications.
Select Create App Integration.
Select SAML 2.0, then select Next.
Enter an App name and define any desired general settings.
Select Next.
Configure the SAML Settings with the following values:
Okta field
Value
Single sign-on URL
Single Sign-On URL (ACS) from CloudConnexa from Step 2
Audience URI (SP Entity ID)
Issuer Name from CloudConnexa from Step 2
Name ID format
EmailAddressAfter you've created the app, select its Sign On tab.
Scroll to Attribute statements and select Add expression.
Add the following so Okta sends the user information CloudConnexa expects:
Name
Expression
emailuser.profile.emailusernameuser.profile.loginfirstNameuser.profile.firstNamelastNameuser.profile.lastNameIf you plan to assign CloudConnexa user groups based on Okta group membership, expand Show legacy configuration.
Select Edit.
Under Group attribute statements, enter these values:
Field
Value
Name
groupsName format
Basic
Filter
Matches regex
Filter value
.*Save your changes.
Assign users or groups to the application
Users need access to the Okta application before they can authenticate to CloudConnexa.
Open the application's Assignments tab.
Assign the users or groups who need access to CloudConnexa.
Retrieve Okta's metadata
Select your CloudConnexa application's Sign On tab.
Copy the application's Metadata URL.
Save this to use in the CloudConnexa SAML Setup Wizard.
Step 4: Connect Okta to CloudConnexa
Now provide Okta's SAML configuration to CloudConnexa.
Return to the SAML Setup Wizard in CloudConnexa.
Select Next Step.
Provide Okta Details is displayed.
Paste the Okta Metadata URL.
Wait for CloudConnexa to retrieve the metadata.
Verify that the wizard displays Metadata retrieved, along with the issuer and certificate expiration date.
Leave Advanced Settings at their defaults.
Select Next Step.
Using a Metadata URL lets CloudConnexa retrieve Okta's published configuration without manually entering the endpoint and certificate.
Step 5: Review user attribute mapping
CloudConnexa uses SAML attributes to identify users and retrieve their information from Okta.
The Map User Attributes step displays after you select Next Step. The wizard provides default Okta mappings.
Enable Allow user attributes mapping (Optional).
Review the default mappings for Okta. If your application sends the attribute names configured in Step 3, you don't need to change them.
CloudConnexa field
Okta attribute name
Email Address
emailUsername
usernameGroup
groupsFirst Name
firstNameLast Name
lastNameIf the default values match what your Okta application sends, leave them unchanged.
If your application sends different attributes, update the corresponding fields. Ensure each mapping matches, including capitalization.
For group mapping, the
groupsattribute must match the name of the Group Attribute Statement you configured in Okta.Select Next Step.
Step 6: Test SAML authentication
Test the connection before completing the configuration to confirm that CloudConnexa can authenticate users through Okta.
In the wizard, the Test Okta Connection step displays.
Select Sign in With SAML SSO.
Authenticate using an Okta account assigned to the application.
Review the test results. CloudConnexa checks the SAML response for:
A response received at the ACS endpoint.
A valid signature.
An issuer that matches the configuration.
An audience that matches the SP Entity ID.
An assertion timestamp within the allowed clock skew.
The wizard shows whether each check passed or failed.
Verify the user attributes
The test also displays the user information received from Okta:
Email
First Name
Last Name
IdP Group
Username
If a field displays
-, CloudConnexa didn't receive a value under the expected attribute name. Compare the attribute statements in Okta with the mappings from Step 5.
If the test fails
Review the check.
Correct the configuration.
Select Run Test Again.
Although the wizard allows you to continue after a failed test, we recommend resolving the errors before completing setup. Otherwise, users may be unable to authenticate.
Step 7: Review and complete the configuration
The Configuration Details step summarizes the SAML settings you've configured.
Review the following information:
Setting
What to verify
Metadata Source
How CloudConnexa retrieves Okta's configuration
Attributes Mapped
The number of configured attribute mappings
Issuer
The issuer value received from Okta
Signing Certificate
Certificate validity and expiration date
You can also review the advanced settings, including Data Binding, Authentication Lifetime, Reconnecting, Authentication Context, and Logout URL.
The wizard may display additional setup options for user group mapping and SCIM provisioning.
When you're satisfied with the configuration, select Complete.
Your SAML configuration is now available for users assigned to the CloudConnexa application in Okta.
Optional: Configure user group mapping
If you want CloudConnexa to assign users to user groups based on their IdP group membership, configure SAML user group mapping.
In the CloudConnexa Administration portal, navigate to Settings → User Authentication → SAML Single Sign-On → Configuration → User Group Mapping.
Configure mapping rules for the group information the IdP sends.
For detailed instructions, refer to Set SAML User Group Mapping Rules.
Group mapping is evaluated when users authenticate. If you change a user's group membership in the IdP, the updated mapping takes effect the next time they authenticate to CloudConnexa.
Optional: Configure SCIM provisioning
SAML authenticates users when they access CloudConnexa. You can also configure System for Cross-domain Identity Management (SCIM) 2.0 to automate user provisioning.
With SCIM provisioning, the IdP can create, update, and deactivate users in CloudConnexa without waiting for authentication.
To configure SCIM, navigate to Settings → User Authentication → SAML Single Sign-On → Configuration → SCIM 2.0.
Manage your SAML configuration
After completing the wizard, you can review or change your configuration under Settings → User Authentication → SAML Single Sign-On → Configuration.
Configuration | What you can manage |
|---|---|
IdP Configuration | Okta metadata, SSO endpoint, issuer, and signing certificate |
Attribute Mapping | How Okta's SAML attributes map to CloudConnexa user fields |
User Group Mapping | Rules for assigning CloudConnexa user groups |
SCIM 2.0 | Automatic user provisioning |
Troubleshooting
Use these checks if authentication fails or CloudConnexa doesn't receive the expected user information.
Issue | What to check |
|---|---|
CloudConnexa doesn't receive the SAML response | Verify that Okta's Single sign-on URL matches the ACS URL from CloudConnexa. |
Signature validation fails | Check Okta's signing certificate. Refresh the IdP metadata if the certificate has changed. |
Issuer mismatch | Compare the issuer received from Okta with the issuer configured in CloudConnexa. |
Audience mismatch | Verify that Okta's Audience URI (SP Entity ID) matches the Issuer Name from CloudConnexa |
Assertion timestamp validation fails | Retry the test. If the issue continues, investigate assertion validity and clock synchronization. |
User information is missing | Compare Okta's Attribute Statement names with the CloudConnexa attribute mappings. |
User isn't assigned to the expected group | Verify the Group Attribute Statement, its filter, and your user group mapping rules. |
Authentication previously worked but now fails | Check whether Okta's signing certificate expired or changed. Refresh the metadata if necessary. |
User can't authenticate through Okta | Verify that the user is assigned to the CloudConnexa application in Okta. |
Username doesn't match the expected value | Check the Application username and Name ID settings in Okta. |