--- title: "Configure SAML Authentication" slug: "configure-saml-authentication" updated: 2026-11-23T12:30:38Z published: 2026-11-23T12:30:38Z canonical: "support.gainsight.com/configure-saml-authentication" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure SAML Authentication This article explains how to configure SAML authentication using the Identity Provider (IdP) for Gainsight PX. ## Overview of SAML and Idp Security Assertion Markup Language (SAML) is an Extended Markup language (XML) based open source authentication and authorization mechanism. SAML allows you to log in to multiple applications with just one set of credentials. SAML consists of two main components; IdP and Service Providers (SP). When a user logs in to a SAML enabled device, the service provider requests authorization for the user from the IdP. The IdP authenticates the user’s credentials and returns the authorization for the user to the respective service provider. The user can now use the application. ## Configure SAML in Gainsight PX Gainsight PX supports SAML authentication with Okta, AuthO, and GSuite IdPs. After you configure an IdP, your users can log in to Gainsight PX using the configured IdP. When the user is authenticated on the IdP provider's application, they can access Gainsight PX (and also other apps configured with the IdP). Before setting up IdP, configure the SAML settings in Gainsight PX using the **SSO / SAML** page in the **Administration** menu. To configure SAML settings in Gainsight PX: 1. Navigate to **Administration** **> SSO / SAML**. The *Login Settings* page is displayed. 2. Select an authentication method: - **Saml Only**: If you select this option, users can log in to Gainsight PX only through SAML. However, you can select a few users to log in using Gainsight PX application as well. Gainsight recommends using the **Saml Only** option with multi-factor authentication in your SAML IdP, and not to add any users to the *Allow List*. ![Saml_Only.PNG](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Saml_Only.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=iXl9s6FQ6UiVKdNE0nNLk035z%2F58nTvV511CB8pMWvY%3D) - **Saml And Password**: If you select this option, all the users can log in to Gainsight PX, either from a SAML based IdP or from the Gainsight PX application. ![saml_password.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/saml_password.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=f%2BOmEAZUGKb62wE2ZHLPMK079R2WhhU2VfXCWKqahZ8%3D) **Identity Provider Metadata Url** configurations are explained in the following sections. ### Configure Okta as Identity Provider This section explains how to configure Okta as the IdP for Gainsight PX SAML authentication so that your users can log in to Gainsight PX from Okta. To configure Okta as an IdP: 1. Log in to your Okta developer account. 2. Click **Admin** on the upper-right corner. ![liop.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/liop.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=ngp19PgTUIxPdR71PD3ICKietAikH7ONz7H%2BghkDzlk%3D) 3. On the admin Dashboard, click **Add Applications** in the **Shortcuts** section. 4. Click **Create New App** on the **Add Applications** page. The **Create a New Application Integration** window is displayed. 5. Select **SAML 2.0** as the Sign on method. 6. Click **Create**. ![saml_okta.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/saml_okta.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=vpIa259kWpz4wpCuAgeCyorb6DQ2i4HYreZjHCfs%2FNU%3D) 7. In the **App name** field, enter a name for your application. The name you provide here is the name your users see in Okta for the PX widget. 8. Click **Next**. ![qw_1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/qw_1.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=%2BZNnV9fyhc2OIyiDUhJtfbSKb2HORa%2FNErVhqvPeeLo%3D) 9. Click on the **Configure SAML** tab. 10. In the **Single sign on URL** field, enter [*https://app-be.aptrinsic.com/saml/SSO*](https://app-be.aptrinsic.com/saml/SSO) **Notes**: - For PX-EU users, the single sign-on URL/ACS URL is [*https://app-be-eu.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* - For PX-US users accessing the US2 Data Center, the single sign-on URL/ACS URL is [*https://app-be-us2.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* 11. In the **Audience URI (SP Entity ID)** field, enter com:gainsight:px. ![wert.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/wert.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=GIDUbZKCiDyncO9q4ifDnWdGaXmZCSbERVCLpNg8wQA%3D) 12. Click on the **Feedback** tab. 13. Select the **I’m an Okta customer adding an Internal app** radio button. 14. Click **Finish**. ![px1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/px1.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=iB6eVMFBRwjKVpOoi1%2B3zywUm1AdcNx7cydCsznzt%2BY%3D) 15. In the **Settings** section of the **Sign On** tab on the Gainsight PX details page, copy the link address for **Identity Provider Metadata**. ![saml_okta_metadata.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/saml_okta_metadata.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=8OvL%2BrrXZMmOvdgVvqS43oowG8FKHvKKtqO7625cEpA%3D) 16. Navigate to Gainsight PX and paste the URL in the **Identity Provider Metadata Url** field on the **Login Settings** page. You can paste the URL either in the **Saml Only** section or **Saml And Password** section. The URL is automatically copied to the other section if you change your SAML authentication method later. ![saml_metadata_url.PNG](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/saml_metadata_url.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=AN3hQIDSSSPJ6QKhDXpCTn1ULhaXfe0s0qAy853KISE%3D) 17. Click **Save**. Users can now log in to Gainsight PX from Okta. ### Configure AuthO as Identity Provider This section explains how to configure AuthO as the IdP for Gainsight PX SAML authentication so that your users can log in to Gainsight PX from AuthO. To configure AuthO as an IdP: 1. Log in to AuthO. 2. Click **+ CREATE APPLICATION**. The **Create Application** window is displayed. 3. In the **Name** field, enter a name. 4. Select the **Regular Web Applications** widget. 5. Click **Create**. ![authO_px.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/authO_px.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=F0w8NHZdoHN9xG6W5ndRT5Gal425xzEjcjCynVbPiIY%3D) 6. On the Gainsight PX details page, click on the **Addons** tab. 7. Turn ON the **SAML2 WEB APP** toggle switch. 8. In the **Application Callback URL** field, enter [*https://app-be.aptrinsic.com/saml/SSO*](https://app-be.aptrinsic.com/saml/SSO) **Notes**: - For PX-EU users, the URL is [*https://app-be-eu.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* - For PX-US users accessing the US2 Data Center, the URL is [*https://app-be-us2.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* 9. In the **Settings** section, enter the following code. ```plaintext { "audience": "com:gainsight:px",    "nameIdentifierProbes": [    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"  ] } ``` 10. Click **ENABLE**. 11. Click the **Usage** tab. 12. Copy the URL from the **Identity Provider Login URL** field. 13. Click the **Download** link for the **Identity Provider Metadata**. 14. Navigate to Gainsight PX and paste login URL and the metadata code in the **Identity Provider Metadata Url** field on the **Login Settings** page either in the **Saml Only** section or **Saml And Password** section. The URL is automatically copied to the other section if you change your SAML authentication method later. 15. Click **Save**. Users can now log in to Gainsight PX from AuthO. [Embedded content](https://player.vimeo.com/video/470216688?title=0&byline=0&portrait=0) ### Configure Google Workspace as Identity Provider This section explains how to configure Google Workspace as the Identity Provider (IdP) for Gainsight PX SAML authentication so that your users can log in to Gainsight PX from their Google account. To configure Google Workspace as an IdP: 1. Log in to Google Admin Console. 2. From the *Admin console Home* page, navigate to *Apps* and then *Web and mobile apps*. ![GSuite_Home.PNG](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSuite_Home.PNG?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=z7XWZOU70nl6H7LjtV70NByixALjREqF4ughAwOUPUs%3D) 3. Click **Add App** and then **Add custom SAML app**. ![GSuite_Add App.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSuite_Add_App.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=%2FS9JNwUccwshnvThWJWYH30f4XQxWSS0dKUTIBU0Z%2FM%3D) 4. On the **App Details** page, enter a name for your application (here, Gainsight PX). 5. (Optional) Upload an image for your application. **Note**: If you do not upload an image, the first two letters of the app name are used to create an icon. ![GSuite-App Details.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSuite-App_Details.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=AB67P5LV8M51treB9aJmB1UO3g%2BTyuXhd3zGdnlrGuk%3D) 6. Click **Continue**. 7. From the **Google Identity Provider** details page, download the IdP metadata file. 8. Click **Continue**. ![GSuite_Google Identity Provider.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSuite_Google_Identity_Provider.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=UMsXXNop2RRMAqUF4I6frQzHEdLGEoVwYabRHFfLja8%3D) 9. In the **Service provider details** page, enter the following information: | **Field Name** | **Value** | | --- | --- | | ACS URL | [https://app-be.aptrinsic.com/saml/SSO](https://app-be.aptrinsic.com/saml/SSO) **Notes**: - For PX-EU users, the URL is [*https://app-be-eu.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* - For PX-US users accessing the US2 Data Center, the URL is [*https://app-be-us2.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* | | Entity ID | com:gainsight:px | | Name ID format | UNSPECIFIED | | Name ID | Basic Information > Primary email | 10. Click **Continue**. ![GSuite_Service provider details.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSuite_Service_provider_details.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=yFb6AFOwLw000JlETCDr7WeAb5N8noSVq46cUB53o7Q%3D) 11. Click **Finish**. 12. Log in to Gainsight PX. 13. Navigate to **Administration > SSO/SAML**. 14. In the **Login Settings** page, Select either the **Saml Only** or **Saml And Password** option. 15. Click on the **G Suite** (generic SAML 2.0) option. 16. Paste the xml code in the **Identity Provider Metadata Url** field. ![GSuite_PX.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GSuite_PX.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=%2F2zPwIOanrqrZnQ%2ByFMQ7FtfvhryJ107Y%2BIvT0wKqFo%3D) 17. Click **Save**. ### Microsoft Azure AD as Identity Provider This section explains how to configure Microsoft Azure AD as the IdP for Gainsight PX SAML authentication so that your users can log in to PX from their Microsoft Azure account. To configure Microsoft Azure AD as an IdP: 1. Log in to Microsoft Azure. 2. In the *Azure Services* section, click on **Azure Active Directory**. 3. In the *Manage* section on the left pane, click *Enterprise applications*. ![AzureAD_1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/AzureAD_1.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=vdciM4q%2BygqAKezZpAWxhZ%2B7u5k6FqDACOhX6eDOWYg%3D) 4. In the *All applications* page, click **New application**. 5. In the *Browse Azure AD Gallery* page, click **Create your own application**. **Note**: You need to create the Gainsight PX application in the Azure account as it will not be available in search. 6. Enter the name of the application as Gainsight PX. 7. Select the **Integrate any other application you don't find in the gallery (Non-gallery)** option. 8. Click **Create**. The Gainsight PX application is created. ![Azure_px.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Azure_px.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=dUs5BimPcjI12Sg4cfGdFJd1LmH8uTtRU48qF47%2B1Zs%3D) 9. Click *Single sign-on* on the left pane. The **Set up Single Sign-On with SAML** configuration section is displayed. You can also click on the *Set up single sign on* tile in the *Getting Started* section on the right side of the page. 10. In the *Single sign-on* page, click on the SAML tile. The *Set up Single Sign-On with SAML* page appears. ![Azure_SSO1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Azure_SSO1.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=R%2ButemnPAI1GDlS4QGZIVwKdkUZ91W%2FtbY6Ms2YvNMc%3D) 11. In the **Basic SAML configuration** step, click **Edit** and enter the following information: | **Field Name** | **Value** | | --- | --- | | Identifier (Entity ID) | com:gainsight:px | | Reply URL | Specify the URL of the application to receive the SAML token. The reply URL is also called Assertion Consumer Service (ACS) URL. This is a mandatory field. **Value**: [https://app-be.aptrinsic.com/saml/SSO](https://app-be.aptrinsic.com/saml/SSO) **Notes**: - For PX-EU users, the URL is [*https://app-be-eu.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* - For PX-US users accessing the US2 Data Center, the URL is [*https://app-be-us2.aptrinsic.com/saml/SSO*](https://app-be-eu.aptrinsic.com/saml/SSO)*.* | | Sign-on URL | This value is not required. When a user launches the application from the Azure AD SSO URL, the IdP initiates the log in. | | Relay State | (Optional) The URL to redirect the user after authentication is completed. | | Logout URL | (Optional) Sends the SAML Logout responses to the application. | 12. In the *User Attributes & Claims* step, enter the **Unique User Identifier** value as *user.mail*. 13. In the *SAML Signing Certificate* step, click *Edit* and perform the following: 1. From the **Signing Option** dropdown, select *Sign SAML response and assertion.* 2. From the **Signing Algorithm** dropdown, select *SHA-256*. 3. Click **Save**. 4. In the **Federation Metadata XML** field, click the *Download* link to download the IdP metadata file. #### Configurations in Gainsight PX for Azure AD 1. Log in to Gainsight PX. 2. Navigate to **Administration > SSO/SAML**. 3. In the **Login Settings** page, select either the **Saml Only** or **Saml And Password** option. 4. Click on the **G Suite** (generic SAML 2.0) option. ![Azure_PX.PNG](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Azure_px.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A10%3A07Z&se=2026-11-24T18%3A10%3A07Z&sr=b&sp=r&sig=dUs5BimPcjI12Sg4cfGdFJd1LmH8uTtRU48qF47%2B1Zs%3D) 5. Paste the xml code in the **Identity Provider Metadata Url** field. For more information, refer to the [*Configure SAML in Gainsight PX*](/v1/docs/configure-saml-authentication#configure-saml-in-gainsight-px) section. 6. Click **Save**. ## Login to PX Using Identity Providers Gainsight PX provides you the option to activate login to the PX application using the IdP credentials. The IdP for Gainsight PX SAML authentication must be configured in the *SSO/SAML* page. **Note**: You can also log in to PX using the emailID and password without selecting the IdP. To login using IdP: 1. On the PX login page, enter the username (emailID) of your PX account. 2. Click **Next**. 3. Click on the IdP via which you want to login. PX application navigates you to the IdP login page. 4. Enter credentials of your IdP account. [Embedded content](https://player.vimeo.com/video/579360341)