Skip to main content

Prerequisites

Preview

The Salesforce Shield integration is in preview and is not yet enabled on standard DuoKey Cockpit tenants. This guide describes how it works and how it is set up. Contact DuoKey to discuss access for your project.

Applies to:
Salesforce SetupConnected AppNamed Credential

Overview​

The prerequisites include:

  1. Creating a Connected App in Salesforce
  2. Noting your Salesforce org ID and region
  3. Preparing a Named Credential to call DuoKey's Cache-Only Key Service

Step 1: Create Connected App​

A Connected App establishes secure communication between DuoKey and Salesforce via REST API.

1

Navigate to App Manager

  1. Login to your Salesforce account
  2. Click the Setup gear icon
  3. In Quick Find, search for "App Manager"
  4. Navigate to Apps → App Manager
2

Create New Connected App

  1. Click New Connected App button
  2. Fill in basic information:
FieldValue
Connected App NameDuoKey BYOK Integration
API Name(auto-populated)
Contact Email[email protected]
3

Configure OAuth Settings

  1. Check Enable OAuth Settings
  2. Set Callback URL: sfdc://oauth/restapi/success
  3. In Selected OAuth Scopes, add: Full access (full)
  4. Click Save
Note

The callback URL sfdc://oauth/restapi/success is standard for Salesforce REST API integrations.

4

Get Consumer Key and Secret

  1. From App Manager, find your newly created Connected App
  2. Click the dropdown arrow (▼) and select View
  3. In API (Enable OAuth Settings) section, click Manage Consumer Details
  4. Enter the verification code sent to your email
  5. Copy and save securely:
    • Consumer Key (Client ID)
    • Consumer Secret (Client Secret)
Warning

Keep these credentials secure. You'll need them when configuring the DuoKey application.

Step 2: Prepare the Named Credential​

DuoKey never logs into your Salesforce org and never needs your Salesforce username, password, or security token. Instead, Salesforce Shield calls DuoKey's Cache-Only Key Service (COKS) endpoint directly through a Named Credential, authenticated with a bearer connector secret that DuoKey generates for you during app creation.

1

Navigate to Named Credentials

  1. In Salesforce Setup, search for "Named Credentials" in Quick Find
  2. Navigate to Security → Named Credentials
2

Plan the Named Credential

You'll create the Named Credential (and its External Credential) after DuoKey generates the COKS endpoint URL and connector secret in the app creation wizard — note that you'll need to come back to this step once those values are available.

Salesforce Domain/Instance​

  1. Navigate to Setup Home → Company Settings → My Domain
  2. Note your domain name (e.g., yourcompany.develop.lightning.force.com)
  3. Extract the instance alias (e.g., yourcompany)

Credential Summary​

CredentialDescriptionExample
Consumer KeyFrom Connected App OAuth settings3MVG9... (long string)
Consumer SecretFrom Connected App OAuth settings12345... (numeric string)
Domain/InstanceYour Salesforce domain aliasyourcompany
Connector SecretGenerated by DuoKey when you create the app (shown once)<connector-secret>
Tip

Consider using a secure password manager to store these credentials safely.

Verification Checklist​

Prerequisites Complete

Connected AppCreated with OAuth enabled
Consumer CredentialsKey and Secret obtained

Troubleshooting​

Next Steps​