Configure Single Sign On

Business Background

Configure SSO to invoke access to an external Titan Web project. Users in your Salesforce community can use the Titan Web project. You can bring custom variable attributes from Salesforce to your project.

Titan Solution

  • Any Salesforce Push or Get will run on the logged-in user’s profile. For instance, if a community user creates a new contact in Salesforce, the contact will be created with that user’s profile details. 
  • Ensure the user’s permission in the Titan Web project is the same as the permission level in Salesforce.

How to Video

  • 0:08 Introduction.
  • 0:38 Learn how to set SSO.
  • 0:59 We will show you how to configure my account.
  • 1:35 Learn how to create a certificate.
  • 2:11 Learn how to create a new connected app.
  • 4:20 We show you how to create custom attributes.
  • 7:15 Learn how to select a profile.
  • 8:21 We show you how to download a certificate.
  • 8:55 Learn how to configure the SSO.
  • 10:40 We show you how to add parameters.
  • 12:33 Learn how to set pages private or public.
  • 14:11 We show you how to create a case.
  • 16:33 We show you how to view debug mode.
  • 18:50 Learn how to do community mapping.

How to Guide

Prerequisites:

  1. Click the Settings tab.
  2. Click the Integrations subtab. The Integrations Status screen opens.
Integration Status screen
Integration Status screen
  1. Scroll down the list to find the SSO option and click the Authenticate button. The SSO Auth screen opens.
SSO option
SSO option

To complete the following screen, do the configuration in Salesforce.

SSO Auth screen
SSO Auth screen

Configure a Certificate in Salesforce

  1. Click the Setup icon in Salesforce and navigate to Certificate and Key Manager.
  2. Click the Create Self-Signed Certificate button. The Certificate and Key Edit screen opens.
Certificate and Key Manager
Certificate and Key Manager
  1. Type the Label and Unique Name in the relevant fields.
  2. Click the Save button and click the Download Certificate button. A certificate will be generated.
Certificate and Key Manager
Certificate and Key Manager
  1. Browse to the file location where the certificate was downloaded.
  2. Right-click on the certificate and open the file with an app, such as Notepad.
Certificate
Certificate
  1. Keep this app open. You will need to copy all the text (including —–BEGIN CERTIFICATE—– and —–END CERTIFICATE—–) and later paste it into the Certificate field on the SSO Auth screen in Titan.
Certificate in Notepad
Certificate in Notepad

Configure New Connected App in Salesforce

  1. Click the Setup icon in Salesforce and navigate to App Manager.
  2. Click the New Connected App button. The Create a Connected App screen.
  3. Click the Create a Connected App option and click the Continue button.
Lightning Experience App Manager
Lightning Experience App Manager
  1. Type the Connected App Name and the API Name in the relevant fields.
  2. Type the Contact Email address and Enable the SAML checkbox.
  3. Add the Subject Type in the field and click the subject type, for instance, username.
  4. Select the Name ID Format from the drop-down list, for instance, SAML: 1.
  5. Select the IDP certificate from the drop-down list, for instance, the one you are generating or an existing one.
    • In this example, the new connected app is selected.
App Manager
App Manager
  1. Navigate to the Titan Dashboard, and copy the Service provider Entity ID and the Access URL from the SSO Auth screen.
SSO Auth screen
SSO Auth screen
  1. Navigate to Salesforce and paste the Service provider Entity ID in the Entity ID field.
  2. Paste the Access URL in the ACS URL field.
  3. Click the Save button.
App Manager screen
App Manager screen

Create Custom Attributes in Salesforce

  1. Click the New button on the Custom Attributes option on the Manage Connected App screen.
Manage Connected App
Manage Connected App
  1. Type the SF Session in the Key field.
  2. Click the Insert Field button.
Create Custom Attribute
Create Custom Attribute
  1. Insert fields, for instance, label or API Session ID.
  2. Click the Insert button.
Insert field
Insert field
  1. Click the Save button.
Create Custom Attribute
Create Custom Attribute
  1. Click the Manage button
Manage Connected Apps
Manage Connected Apps
  1. Copy the IdP-Initiated Login URL from the SAML Login Information.
App Manager
App Manager
  1. Scroll down, and under Profiles, click the Manage Profiles button. The Application Profile Assignment screen opens.
  1. Click the relevant checkbox/es to select profile/s and then click the Save button.
Note:

When you authenticate a community, make sure to select a valid community and log in on the community screen.

Give Profile Access to the Connected App

  1. In Titan, paste the URL in the SSO Login URL field.
SSO Auth screen
SSO Auth screen
  1. Navigate to the Notepad app where the Certificate code is.
  2. Copy everything on the Notepad.
Certificate in Notepad
Certificate in Notepad
  1. Paste it in the Certificate field on the SSO Auth screen.
  2. Click the Test button. You will see a “Thank you for authenticating” message when the authentication is successful.
    SSO Auth screen
    SSO Auth screen
    1. Click the Apply button.
    SSO Auth screen
    SSO Auth screen
    1. Navigate to Titan Web to configure the SSO.

    Configure SSO in Titan Web

    1. In Titan Web, click the Gear icon to open the Project settings screen.
    2. Click the User Access option and enable the SSO toggle.
    3. Click the Gear icon next to the SSO option.
    SSO Gear icon
    SSO Gear icon
    1. Click the Use Salesforce session checkbox. Any Salesforce Push or Get will run on the logged-in user’s profile.
      • For instance, if a community user creates a new contact in Salesforce, the contact will be created with that user’s profile details. 
      • Ensure that the users with access to the Web project in Salesforce have all the necessary permissions to use all the objects.
    2. Click the drop-down list to choose where you want to get the Session ID from Salesforce.
    3. Map a parameter that you want from SSO. The portal user email and user ID are shown from Salesforce by default.
    Configure SSO screen
    Configure SSO screen
    1. If necessary, click the Override SSO logout checkbox and click the Apply button. When someone logs out, you can override them with your URL.
    Configure SSO screen
    Configure SSO screen
    1. Save the project.

    You will be asked to log in first to access your project. A verification code will be sent to your email address to verify your account. You can also set pages in your project to public (available to anyone) or SSO enabled (authenticate verification).

    You can edit the SSO settings by clicking the Edit button.

    SSO Authenticated
    SSO Authenticated

    Hidden Title

    Need more help?