# Salesforce OAuth Error

**URL:** <https://community.n8n.io/t/salesforce-oauth-error/184150>\
**Category:** Questions\
**Created:** [September 8, 2025, 2:36pm UTC](https://community.n8n.io/t/salesforce-oauth-error/184150 "2025-09-08T14:36:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Humphrey](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jason_humphrey/32/58811_2.png) [@Jason\_Humphrey](https://community.n8n.io/u/Jason_Humphrey)\
**Post date:** [September 8, 2025, 2:36pm UTC](https://community.n8n.io/t/salesforce-oauth-error/184150/1 "2025-09-08T14:36:58Z")

</div>

## Describe the problem/error/question

Trying to connect n8n cloud to salesforce via oauth2, after authenticating on salesforce getting the error below

## What is the error message (if any)?

We can’t authorize you because of an OAuth error. For more information, contact your Salesforce administrator.

OAUTH\_APPROVAL\_ERROR\_GENERIC : An unexpected error has occured during authentication. Please try again.

## Please share your workflow

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:** 1.109.2
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app): cloud**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![eip](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eip/32/45097_2.png) [@eip](https://community.n8n.io/u/eip)\
**Post date:** [October 16, 2025, 1:07pm UTC](https://community.n8n.io/t/salesforce-oauth-error/184150/3 "2025-10-16T13:07:20Z")

</div>

Hey @Jason_Humphrey , did you find a solution to this? Running into the same error with my Salesforce sandbox when trying to authenticate to my locally running n8n instance.

---

<div class="post-metadata">

**Author:** ![eip](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/eip/32/45097_2.png) [@eip](https://community.n8n.io/u/eip)\
**Post date:** [October 17, 2025, 11:49am UTC](https://community.n8n.io/t/salesforce-oauth-error/184150/4 "2025-10-17T11:49:36Z")

</div>

In case anyone else is having similar issues, didn’t find a solution for this exactly. But when I switched my Salesforce External Client App to use JWT authentication, I got the connection working.

Note on that, when copying the JWT secret in n8n authentication form to the “Private Key“ field, check that key breaks correctly for new lines/rows. I had to edit mine to structure it correctly.

It was:  
blaa123XYZ blaa123XYZ blaa123XYZ  
blaa123XYZ blaa123XYZ

Should have been:  
blaa123XYZ  
blaa123XYZ  
blaa123XYZ  
blaa123XYZ  
blaa123XYZ

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 15, 2026, 11:50am UTC](https://community.n8n.io/t/salesforce-oauth-error/184150/5 "2026-01-15T11:50:06Z")

</div>

Closed on January 15, 2026, 11:50am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
