Loading
PHP Vulnerability Monitoring Read More
Grantmaking
Configure an External Credential for Candid APIs

Configure an External Credential for Candid APIs

Create an external credential that tells Salesforce how to authenticate to Candid APIs. The external credential stores your subscription keys as principals and adds the required subscription key request header.

Required Editions

Available in: Lightning Experience
Available in: Nonprofit Cloud for Grantmaking and Public Sector Solutions. View edition availability.
User Permissions Needed
To turn on and configure external credentials: Grantmaking Manager permission set

Before you begin, obtain your Candid primary and secondary API subscription keys. See Get a Candid API Subscription Key.

  1. From Setup, in the Quick Find box, find and select Named Credentials.
  2. Click External Credentials.
  3. Click New.
  4. Set these fields.
    1. Label: Candid Charity Check
    2. Name: Candid_Charity_Check
    3. Authentication Protocol: Custom
  5. Save your changes.
  6. On the External Credential page, next to Principals, click New.
    A principal contains parameters used to authenticate to an API and links the external credential to permission sets and profiles.
  7. Set these fields.
    1. Parameter Name: Primary Key
    2. Sequence Number: 1
    3. Identity Type: Named Principal
  8. In the Authentication Parameters section, click Add.
  9. Set these fields.
    1. Name: SubscriptionKey
    2. Value: Enter your Candid primary API subscription key.
  10. Save your changes.
  11. Next to Principals, click New.
  12. Set these fields.
    1. Parameter Name: Secondary Key
    2. Sequence Number: 2
    3. Identity Type: Named Principal
  13. In the Authentication Parameters section, click Add.
  14. Set these fields.
    1. Name: SubscriptionKey
    2. Value: Enter your Candid secondary API subscription key.
  15. Save your changes.
  16. Next to Custom Headers, click New.
    A custom header is a key-value pair included in the HTTP request header to provide additional information that the server can use to process the request.
  17. Set these fields.
    1. Name: Subscription-Key
    2. Value: {!$Credential.Candid_Charity_Check.SubscriptionKey}
    3. Sequence Number: 1
    The value is a formula expression that retrieves the subscription key from the principal at run time.
  18. Save your changes.
 
Loading
Salesforce Help | Article