Describe the problem/error/question
I’am currently facing an issue with Salesforce OAuth integration when using n8n to manage authentication and API calls, and would really appreciate your guidance.
bserved Behavior:
-
Able to list data and run SOQL queries using the same n8n credential without issues
-
However, when performing custom field updates, we receive HTTP 302 responses
-
The integration works perfectly for a single user/session
-
When multiple users authenticate concurrently, the issue starts appearing
-
The 302 response seems to indicate a redirect (possibly session/token invalidation)
We are testing this setup using a single Salesforce org with two System Admin users (different login IDs/passwords).
Our backend system dynamically creates n8n credentials per user, storing each user’s OAuth tokens. The corresponding n8n credential ID is stored in our backend database, and workflows are executed using that credential to perform actions on behalf of the authorized user.
Please share your workflow
Share the output returned by the last node
For same n8n credential id getting 302 response
Information on your n8n setup
- n8n version: 1.105.3
- Database (default: SQLite): no
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
- Operating system: Ubuntu 24 LTS