CaseCloud Help

Set Up Secured Login Sessions for Focus Matters (using External Client Apps)

Updated on

A secured login session enhances the reliability of Focus Matters features within CaseCloud Lightning components.

Setting up a secured login session for Focus Matters is optional, and not all organizations need this configuration. However, if your users frequently encounter errors when using focus matters-based filtering in CaseCloud Lightning components, we recommend enabling the secured login session.

With the secured login session configuration enabled in your organization, the users will be able to utilize focus matter-related features within CaseCloud provided Lightning components, such as Focus MattersMatter CalendarGantt, and Billing Preview.

Expand or collapse content Step 1: Create a New External Client App
  1. Go to Setup.
  2. In Quick Find, enter External Client Apps, and then select External Client App Manager.
  3. Select New External Client App.
  4. Under the Basic Information section, enter the following details:
    • Connected App Name: Enter a name, such as CaseCloud Secured Login Integration.
      (Press Tab to move to the next field.)
    • API Name: This field auto-populates based on the Connected App Name.
    • Contact Email: Enter your email address.
    • Distribution State: Select Local.

Configure API (Enable OAuth Settings)

  1. In the API (Enable OAuth Settings) section, select Enable OAuth Settings. Under App Settings, enter the following information:
    • Callback URL: Enter your Salesforce My Domain URL in this format:
      https://[my-domain-url]/

      Tip: To locate your My Domain URL, go to Setup > Quick Find: My Domain > My Domain.
      Refer to Image A for guidance.

    • OAuth Scopes: From Available OAuth Scopes, select and add the following to Selected OAuth Scopes:
      • Access the identity URL service (id, profile, email, address, phone)
      • Full access (full)
      • Perform requests at any time (refresh_token, offline_access)
    • Introspect all Tokens: Clear this checkbox.
    • Configure ID Token: Clear this checkbox.
    • Under Flow Enablement, configure the following:
      • Enable Authorization Code and Credentials Flow: Select this option.
      • Ensure all other options remain unchecked.
    • Under Security, configure the following:
      • Require secret for Web Server Flow: Select this option.
      • Require secret for Refresh Token Flow: Select this option.
      • Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows: Clear this option.
      • Ensure all other options in this section remain unchecked.
Expand or collapse content Image A
  1. Select Create to save the External Client App.
  2. Navigate to Setup. In Quick Find, enter External Client Apps, and then select External Client App Manager.
  3. Locate the External Client App you just created in the list.
  4. Select the External Client App Name to open the app in detail view.
  1. Select the Settings tab. In the OAuth Settings section, select Consumer Key and Secret.
  1. Copy/Paste the Consumer Key and Consumer Secret displayed into a text file for later use and close the tab.
Expand or collapse content Step 2: Create Auth. Provider
  1. Go to Setup. In Quick Find, enter Identity, and then select Identity > Auth. Providers.
  2. Select New.
  3. Enter the following information:
    • Provider Type: Select Salesforce.
    • Name: Enter a name, such as CaseCloud Secured Login Provider.
      (Press Tab to move to the next field.)
    • URL Suffix: This field auto-populates.
    • Consumer Key: Enter the Consumer Key you saved earlier.
    • Consumer Secret: Enter the Consumer Secret you saved earlier.
    • Use Proof Key for Code Exchange (PKCE) Extension: Clear this checkbox.
    • Default Scope: Enter refresh_token full.
  4. Select Save. 
  1. On the next page, scroll to the Salesforce Configuration section.
  2. Copy the Callback URL value and paste it into your text file for use in the next step.

Update the External Client App Callback URL

  1. Return to Setup.
  2. In Quick Find, enter External Client Apps, and then select External Client App Manager.
  3. Locate your previously created External Client App in the list.
  4. Select the External Client App Name to open the detail view.
  5. Select the Settings tab, and then select Edit.
  6. In the OAuth Settings section, update the Callback URL by pasting the value you copied from the Auth. Provider. Select Save.
Expand or collapse content Step 3: Create Named Credential
  1. Go to Setup. In Quick Find, enter Security, and then select Security > Named Credentials.
  2. From the button menu, select New Legacy.  Enter the following information:
    • Label: Enter a label, such as CaseCloud Secured Login Named Credential.
      (Press Tab to move to the next field.)
    • Name: This field auto-populates.

      ⚠️ Copy and paste this Name into your text file. You will need it as the Named Credential API Name in a later step.

    • URL: Enter your Salesforce My Domain URL in this format:
      https://[my-domain-url]/
    • Identity Type: Select Named Principal.
    • Authentication Protocol: Select OAuth 2.0.
    • Authentication Provider: Search for and select the Auth. Provider you created in Step 2: Create Auth. Provider.
    • Scope: Enter refresh_token full.
    • Start Authentication Flow on Save: Select this option.
    • Generate Authorization Header: Select this option.
    • Allow Merge Fields in HTTP Header: Select this option.
  3. Select Save to continue.

    (If this step is configured correctly, Salesforce will prompt you to log in again.)

Expand or collapse content Step 4: Update AdvoLogix Global Configuration
  1. Go to Setup.
  2. In Quick Find, enter Custom Code, and then select Custom Code > Custom Metadata Types.
  3. To the left of AdvoLogix Global Configurations, select Manage Records.
  1. To the left of My Org Named Credential, select Edit.
  1. In the Named Credential API Name field, enter the API Name you copied from the Named Credential you created in Step 3: Create Named Credential. Select Save.

You have completed all required configuration steps. Focus Matters secured login session setup is now fully configured for your organization.

Previous Article Set Up Secured Login Sessions for Focus Matters
Next Article Focus Matters (legacy)
Still need help? Click here!
AdvoLogix® is a registered trademark of AdvoLogix.com LLC a Texas Limited Liability Company. All references to other trademarks belonging to third parties that appear on this website, documentation, or other materials shall be understood to refer to those registered trademarks owned by others, and not to any trademark belonging to AdvoLogix. Otherwise, all material herein is the copyright of AdvoLogix.com LLC. All Rights Reserved.