Hello, After upgrading to N8N version 1.24.1, we are currently encountering an “Unauthorized” error when trying to establish a connection to Salesforce CRM using Salesforce OAuth2 API credentials. Notably, these credentials worked seamlessly in our previous N8N version. Are there any changes in the authentication process?
Ah that is a real old so going back to that version isn’t going to be an option because of the database changes.
Nothing should have changed in the node but it could be that another recent has broken it, I will do some testing in the morning and see if I can work out what is going on.
Is the app you are connecting to in Salesforce new or old and does it have PKCE enabled?
I am still looking into this one, I am having issues with getting oauth working at all in my local environment but once that is resolved I should be able to get this sorted fairly quickly.
Could you please provide an update on the progress regarding the issue? Were you able to reproduce it? The inability to connect to Salesforce CRM is a significant concern as it’s currently preventing us from proceeding with the upgrade of n8n in our Production environment. Any insights or updates you can provide would be greatly appreciated.
I have managed to reproduce it but I have not yet found a cause. For now the older version remains the best option until I can work this one out, I also plan on adding support for PKCE soon as well.
Oddly enough while I was digging into it the connection just started working without me changing anything, This is on 1.28.0 I am not sure why it has started working again though as there has been no changes.
Are you able to try and connect again to see if that helps?
None at the moment as it is still working for me, One thing to check is what format is your url and have you configured the allow list for IPs for your salesforce connection?
Do you also know which version you upgraded from and what version you are on now? I am currently on 1.29.1 and things are still working.
Hey @Jon,
Its not working in the cases where we are trying to connect it via the unofficial api. Making the call on /rest/oauth2-credential endpoint to get the authorization url for salesforce. Passing the similar pattern of params to the endpoint but the issue still persists.
Currently I am on version 1.25.0.