EventSpark Home

Step 4 (External Credentials) - Salesforce Configuration

Video Tutorial:

https://youtu.be/I-QD2UlCz2U

Salesforce supports two approaches to external authentication: the older Named Credentials model, and the newer enhanced model, which separates identity into External Credentials.

In the following set-up steps, we will be demonstrating how to configure the Zoom integration using External Credentials.

Follow Steps 1-3 and decide on whether your organization will make use of the Named Credentials model, or the newer External Credentials model.

First, we will need to create an “External Credential”.

  • Navigate to Salesforce Setup by clicking on the cog in the top right hand corner.

  • In the quick find box, search for and click on "Named Credentials".

  • Click on "External Credentials" and click "New"

  • Populate the following information:

    • Label

    • Name (this is the label with underscores between each word)

    • Authentication Protocol: OAuth 2.0

    • Authentication Flow Type: Browser Flow

    • Scope: Leave blank as this is defined in the Zoom Marketplace App and was done in Step 3.

    • Identity Provider: Auth Provider, and add the Auth Provider you created in Step 2.

    • Callout Options: Leave blank

  • Click “Save”

Scroll down to “Principals” and click “New”

Populate the following information:

  • Parameter Name: For this demonstration, “All Access” was used as a name because we wanted all users to have access to all scopes. Should you wish to update scope access on a user basis, you will need to list the scopes in the “Scopes” section that the user will have access to.

  • Identity Type: Named Principal

  • Scope: Leave blank if all access will be given to all users. If you want to restrict access, list the scopes the users will have access to here.

  • Click “Save”

What makes this new way of using External Credentials so powerful, is that you can have as many Named Principals as you'd like and could restrict access for certain users. So, you can still use an "Admin-Managed" app in Zoom, but restrict access at a Salesforce User Level by defining principal scopes.

Next, click on the drop-down arrow under the “Actions” coloumn, and click “Authenticate”. This will authenticate all users that use this Named Credential.

Click “Allow” on the pop-up which is logged in against the Zoom User, and then click “Confirm” to confirm “External Access”



Next, we need to create a “Named Credential”.

  • Navigate back to Salesforce setup

  • In the quick find box, search for and click on “Named Credentials”

  • Click “New”

Provide the following information:

  • Label: for this Named Credential. E.g. EventSpark NC Zoom

  • Name: Copy this label into the “Name” field and use an underscore (_) between each word. E.g. EventSpark_NC_Zoom

  • Navigate to “Step 4 - Salesforce Configuration” of the EventSpark Installation and Configuration Guide, and copy and paste the URL into the “URL” field. (https://api.zoom.us/v2/)

  • Authentication

    • External Credential: Insert the External Credential you created earlier

    • Client Certificate: Leave blank

  • Callout Options

    • Check the checkbox for the following:

      • Generate Authorization Header

      • Allow Formulas in HTTP Header

      • Allow Formulas in HTTP Body

    • Outbound Network Connection: Leave blank

  • Managed Package Access

    • Allowed Namespaces for Callouts: Insert “evsprk”. This is the package namespace for “EventSpark”.

  • Click “Save”

Next, you need to grant permission in order to use this External Credential you have created, and you need to authorize the use of the Principal you created. To use an External Credential, a Salesforce user must be authorized for its associated Principal.

  • Navigate back to Salesforce setup

  • In the quick find box, search for and click on “Permission Sets” (you’ll need to add a minimum of 1 for Zoom Integrations).

  • Click “New”

  • Label: Provide a label for this Permission Set. E.g. “EventSpark Zoom Integration”

  • API Name: Click away so the “API Name” field can populate.

  • Description: Provide a meaningful description to explain the use of this Permission Set. You can have 1 Permission Set for all your integrations, or have 1 Permission Set per Virtual Integration.

In the “Find Settings Box” found on the “Permission Set”, search for and click on “User External Credentials”

Click “Edit” and provide Read Access by checking the checkbox next to “Read” and click “Save”

Navigate back to your created “Permission Set” and scroll down to “External Credential Principal Access”

Click “Edit”

Move the “External Credential Principal” you previously created over to the “Enabled External Credential Principals” section and click “Save”.

Now that we have created a Permission Set, we need to grant access to the Site Guest User.

  • Navigate back to Salesforce setup

  • In the quick find box, search for and click on “Sites”

  • Click on the “EventSpark Registration Site” by clicking on the Site Label

Click on “Public Access Settings”

Click on “Assigned Users”

Click on the “Site Guest User”

Scroll down to “Permission Set Assignments” and click “Edit Assignments”

Find the “Permission Set” you created previously under the “Available Permission Sets” picklist and add it to the “Enabled Permission Sets” picklist. Click “Save”

Similarly, you need to assign the “Permission Set” that grants access to the External Credential and Principal(s) to internal users who need to Create and Wrap Up Virtual Events in EventSpark.

  • Navigate back to Salesforce setup

  • In the quick find box, search for “Users” and click on “Permission Sets” in the menu

  • Find the “Permission Set” you created previously, and click on it.

Click on “Manage Assignments”

Click “Add Assignment”

Select which users you would like to assign permissions for. Once you are done, click “Next”, “Assign” and “Done”.

You can now see a list of which Salesforce Users have been assigned this Permission Set.

You can now head over to “EventSpark Set Up” and create a “Virtual Platform Connection” and a “Virtual Venue” to use for your virtual events.