Overview
This article provides a step-by-step guide for configuring Okta as a Single Sign-On (SSO) identity provider for TrackVia using SAML 2.0. It also covers troubleshooting steps for the most common SSO configuration errors.
Completing this configuration requires access to both your Okta administrator account and your TrackVia account settings.
Before You Begin
Confirm that your TrackVia account has a custom subdomain configured. SSO requires a custom subdomain to redirect users to your identity provider. If you are unsure whether your account has a custom subdomain, contact TrackVia Support before proceeding.
Jump to Section
- Step 1: Download TrackVia's Metadata
- Step 2: Create a New App Integration in Okta
- Step 3: Configure General Settings
- Step 4: Configure SAML Settings
- Step 5: Retrieve Okta's Metadata
- Step 6: Configure TrackVia SSO Settings
- Troubleshooting SSO Configuration Errors
- Related Articles
Step 1: Download TrackVia's Metadata
Before configuring SSO in Okta, you need TrackVia's SAML metadata file and Service Provider Name. Both are available in TrackVia's account settings.
- In TrackVia, open Account Settings and navigate to the Single Sign On tab.
- Note the Service Provider Name value — you will need this in Step 4.
- Click the Download button to download TrackVia's metadata file.
Step 2: Create a New App Integration in Okta
- In your Okta admin console, navigate to Applications in the left sidebar.
- Click Create App Integration.
- When prompted to select a sign-in method, choose SAML 2.0.
Step 3: Configure General Settings
- Enter a name for your application (for example, TrackVia).
- Optionally, upload an app logo.
- Click Next.
Step 4: Configure SAML Settings
Fill in the SAML settings using the values in the table below. You will need the TrackVia metadata file you downloaded in Step 1.
https://go.trackvia.com/saml/SSO.| Field | Value | Notes |
|---|---|---|
| Single sign-on URL | https://go.trackvia.com/saml/SSO |
Reference the location attribute of the AssertionConsumerService section in your metadata file. This value differs by hosting environment. |
| Audience URI (SP Entity ID) | TrackVia | |
| Default RelayState | Leave blank | |
| Name ID format | Unspecified | |
| Application username | Customer Dependent | The value passed in the SAML assertion must match the email address of the user account in TrackVia. Choose a value that allows users to receive emails. |
| Update application username on | Create and Update |
Attribute Statements (optional) — Configure these if you plan to use Just-in-Time (JIT) Provisioning to automatically create TrackVia user accounts from Okta:
| Name | Name Format | Value |
|---|---|---|
| FIRSTNAME | Unspecified | user.firstName |
| LASTNAME | Unspecified | user.lastName |
- Click Next when all fields are complete.
- When prompted for feedback, select This is an internal app that we have created.
- Click Finish.
Step 5: Retrieve Okta's Metadata
- In your newly created Okta application, go to the Sign On tab.
- Under Metadata details, copy the Metadata URL and open it in a browser. You will see XML containing the identity provider configuration.
- In the XML, locate and copy the entityID value — you will paste this into TrackVia in the next step.
- Save the entire XML page as a .xml file — you will upload this to TrackVia in the next step.
Step 6: Configure TrackVia SSO Settings
- Return to the Single Sign On settings page in TrackVia.
- Paste the entityID value you copied in Step 5 into the Identity Provider Entity ID field.
- Upload the .xml file you saved in Step 5 using the metadata upload field.
-
If you are using Just-in-Time Provisioning: Enter
FIRSTNAMEin the First Name Attribute field,LASTNAMEin the Last Name Attribute field, and check the Unknown users will automatically be added to TrackVia box. - Check the Enable Single Sign On option.
- Click Save.
SSO is now configured and ready for testing. Open your TrackVia custom subdomain in a browser to verify that users are redirected to Okta for authentication.
Troubleshooting SSO Configuration Errors
SSO errors appear in two places: as an on-screen message (for example, "User not found for this account"), or as error parameters at the end of the URL. When checking the URL, look for errorCode and errorMessage parameters appended to the address bar after a failed login attempt.
Error: User Not Found
Error code: errorCode=656&errorMessage=User%20not%20found.
Cause: The username passed in the SAML assertion does not match any existing user account in TrackVia. This typically occurs when the Okta application username format does not match the email address on file in TrackVia.
Fix:
- Review the Application username format configured in Okta and confirm it resolves to the user's email address as it appears in TrackVia.
- Alternatively, enable the Unknown users will automatically be added to TrackVia option in TrackVia SSO settings, and confirm that all required JIT Provisioning attributes (FIRSTNAME, LASTNAME) are configured in both Okta and TrackVia.
Error: SAML Configuration is Incorrect
Error code: errorCode=655&errorMessage=SAML%20Configuration%20is%20incorrect.
Cause: The SAML assertion was sent to the wrong URL. This typically occurs when the Single sign-on URL in Okta does not match the value from TrackVia's metadata.
Fix: Open your Okta application's SAML settings and verify that the Single sign-on URL matches the location attribute of the AssertionConsumerService section in TrackVia's metadata file. Update the value if it does not match.
Error: Failed to Decode Assertion Response
Error code: errorCode=654&errorMessage=Failed%20to%20decode%20assertion%20response.
Cause: TrackVia was unable to validate the SAML assertion. This is typically caused by a mismatch between the Identity Provider Entity ID in TrackVia and the entityID in Okta's metadata.
Fix: In TrackVia's Single Sign On settings, check the Identity Provider Entity ID field and confirm it exactly matches the entityID value from Okta's metadata XML. Update the field if there is a discrepancy, then save and re-test.
Issue: Users Cannot Initiate SSO from the TrackVia Login Page
Symptom: When users navigate to your TrackVia custom subdomain, they are prompted for a username and password instead of being redirected to Okta for SSO login.
Cause: The Enable Single Sign On setting in TrackVia is not checked.
Fix: Navigate to Account Settings > Single Sign On in TrackVia, check the Enable Single Sign On option, and click Save.
Related Articles
- Setting Up Single Sign On — Overview of SSO configuration options in TrackVia, including subdomain setup and supported identity providers.
- API Authentication and Access — Explains how TrackVia API authentication works and how to manage access tokens used by integrations.
- Troubleshooting Common API Errors — Reference for common TrackVia API error codes and steps to resolve them.
Comments
0 comments
Please sign in to leave a comment.