Overview
This guide configures Salesforce OAuth JWT authentication for Kolleno, enabling automated API access using:
Consumer Key (Client ID)
Salesforce Username
Private Key
No user interaction or password sharing is required.
Prerequisites
Admin Access: To create certificates and Connected Apps in Salesforce.
Integration User: A dedicated Salesforce user account for Kolleno (e.g.,
api@yourcompany.com).Profile Permissions
The integration user's profile must have the following:
• API Enabled
• At minimum, Read access to the Account object. This permission is necessary because Salesforce may validate object visibility during authentication or during initial requests.
Step 1: Generate a Certificate & Private Key
Choose one method below:
Method A: Generate in Salesforce (Recommended)
Go to Setup → Certificate and Key Management → Create Self-Signed Certificate.
Name it (e.g.,
Kolleno_JWT_Cert).Save → Salesforce generates a certificate and private key.
Export the Private Key:
In Certificate and Key Management, click your certificate → Export to Keystore → Download the
.jksfile.Use KeyStore Explorer (GUI) or
keytool(CLI) to extract the private key as key file, must be in pem format.
Method B: Generate via OpenSSL
Generate private key (PEM format)
openssl genpkey -algorithm RSA -out kolleno.key -pkeyopt rsa_keygen_bits:2048
Generate self-signed certificate
openssl req -new -x509 -key kolleno.key -out kolleno.crt -days 365`
Use
kolleno.keyas your private key.Upload
kolleno.crtto Salesforce in Step 2.
Step 2: Create a Connected App
Go to Setup → App Manager → New Connected App.
Configure settings:
Connected App Name:
Kolleno IntegrationContact Email: Your email
Callback URL:
http://localhost(doesn’t matter for this integration, but the url is still required by Salesforce)
Under API (Enable OAuth Settings):
Save → Copy the Consumer Key (Client ID).
Step 3: Assign Permissions
In your Connected App → Manage → Edit Policies:
Permitted Users: Set to Admin approved users are pre-authorized.
Assign the app to the integration user’s Profile or Permission Set:
Go to Manage Profiles → Add the integration user’s profile.
Step 4: Gather Credentials for Kolleno
Credential | How to Obtain |
Consumer Key | From the Connected App details (Step 2). |
Username | Salesforce login email of the integration user (e.g., |
Private Key | Exported from Salesforce ( |

