Salesforce JWT OAuth2 Account

Salesforce JWT OAuth2 Account

This page is no longer maintained (August 12, 2026). To access the most current content, go to https://docs.snaplogic.com/snaps/sp-salesforce/salesforce-jwt-oauth2-account.html

In this article

Overview

You can use the Salesforce JWT OAuth2 (JSON Web Token) account to authenticate and integrate Salesforce Snaps with other data sources. This account enables a secure and efficient server-to-server authentication. It eliminates the need for interactive logins, thereby streamlining enterprise integrations.

Prerequisites

  • Generate a Private key and certificate. Learn more.

  • Valid Issuer (Client ID), Subject (Username), and Audience (Server URL)

Account Settings

salesforce-jwt-oauth2-ac-overview.png

 

  • Expression : JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.

  • SnapGPT : Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.

  • Suggestion : Populates a list of values dynamically based on your Account configuration.

  • Upload : Uploads files. Learn more.

Learn more about the icons in the Snap Settings dialog.

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

 

Default Value: N/A
ExampleJWT OAuth2 Account

String

Specify a unique label for the account.

 

Instance URL*

Default Value: N/A
Example: https://na123.salesforce.com

String/Expression

Specify the instance URL to access Salesforce.

Issuer (client ID)*

Default Value: N/A
Example: 3MVG9ZL0ppGP5UrS8.WbXJH5wx.zJD8u_kIUZLh2J7Ejz5x4xgkYzU0TYOaVZlUyL0YTjjs8Jd9Mw7wZ9ZDhC

String/Expression

Specify the client ID (consumer key) of the connected app that is used to access the Salesforce account. This value is generated when you create a connected app in Salesforce. Learn more about creating a connected app in Salesforce.

Subject (Username)*

Default Value: N/A
Example: john.doe@example.com

String/Expression

Specify the username for the Salesforce account.

Audience (Server URL)*

Default Value: N/A
Example:
Production: https://login.salesforce.com
Sandbox: https://test.salesforce.com
Custom domain: https://yourcustomdomain.my.salesforce.com

 

String/Expression

Specify the Salesforce endpoint URL for the Salesforce account. Use https://login.salesforce.com for sandbox accounts, or https://site.force.come/customers when implementing a custom portal.

Keystore*

Default Value: N/A
Example: keystore.jks

String/Expression

Upload the keystore file, which can be in SLDB or any other unauthenticated endpoint such as https://

Keystore password*

Default Value: N/A
Example: StrongJWT_Key$2025

String/Expression

Specify the password for the keystore file.

Key alias*

Default Value: N/A
Example: salesforce-key

String/Expression

Specify the alias of the private key to be used from he keystore.

Private key passphrase

Default Value: N/A
Example: openssl genrsa -aes256 -passout pass:mySecret123 -out private_key.pem 2048

String/Expression

Specify the passphrase for the private key to be used. Leave this field blank if the passphrase is the same as the keystore password.

Snap Pack History

 


Related Links