In this video I show how to connect to Salesforce using JWT Bearer Flow and Postman.
JWT Bearer Flow is useful for server-to-server integrations where no user interface is involved.
Instead of using regular OAuth login with a browser approval step, your backend server can authenticate directly and get an access token for Salesforce API calls.
In this demo:
-- Create External Client App in Salesforce
-- Enable JWT Bearer Flow
-- Generate private and public keys
-- Upload certificate to Salesforce
-- Configure scopes
-- Create integration user
-- Assign Permission Set
-- Enable API access
-- Configure Postman JWT request
-- Get access token
-- Get instance URL
-- Query custom Salesforce objects
-- Update records through API
This is useful when you build:
-- Node.js backend integrations
-- Server-to-server Salesforce apps
-- External processing services
-- Custom job workers
-- Middleware between Salesforce and another system
Important notes:
-- Use a dedicated integration user
-- Give only minimal required permissions
-- Store private key securely
-- Use test.salesforce.com for sandbox
-- Use login.salesforce.com for production
-- Use RS256 algorithm
-- Use Consumer Key as issuer
-- Use Salesforce username as subject
After authentication, you can use the access token to call Salesforce REST API and work with custom objects.