The goal of this article is to implement the Salesforce OAuth 2.0 JWT Bearer flow using the HTTP connector. This functionality is available in the Salesforce connector but you may have a requirement to connect to Salesforce using JWT with the HTTP connector.
If you require guidance on how to create a certificate and associated connected app in Salesforce, you can use the following guide up to step 3:
Salesforce Connector - How to authenticate using JWT
https://help.salesforce.com/s/articleView?id=Salesforce-Connector-How-to-authenticate-using-JWT&type=1&language=en_US
RSASHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), Private Key )The private can be exported from your .jks file you created (if you followed the guide Salesforce Connector - How to authenticate using JWT).
<http:request-config name="HTTPS_Request_configuration" doc:name="HTTP Request configuration" doc:id="8e2bb8c4-4dfa-4846-ba34-70588045811f" > <http:request-connection host="login.salesforce.com" protocol="HTTPS"/> </http:request-config>
<http:request method="POST" doc:name="Request" doc:id="997d9f45-7ea9-4800-9be9-7ceb5e3e121c" config-ref="HTTPS_Request_configuration" path="/services/oauth2/token">
<http:body ><![CDATA[#[%dw 2.0
output application/x-www-form-urlencoded
---
{
grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",
assertion: "<insert JWT token here>"
}]]]></http:body>
</http:request>
payload.'access_token'
001114399

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.