I'm trying to connect to Salesforce using the salesforcer package by Steven Mortimer.
It works fine on my local machine, but can't get it to work on Posit Cloud.
Instead of getting the browser window saying authentication was successful it has an error saying localhost refused to connect. I think this is because the response is being listened for at my local machine on port 1410. I don't know how to redirect this properly to Posit Cloud? I know next to nothing about authorisation flows.
Also the Posit Cloud connector for Salesforce only takes a username and password as the authentication method which Salesforce no longer supports if I'm not mistaken?
On the browser screen where it says localhost refused to connect the URL will look something like this http://localhost:1410/?code=aPrxqJ8A8kLOza8QYWB1MJ37.7lD7AxUZ5nbMy9PlJ1zcYI.JkbdF5ev8h1bPg9C6mkLNKS75A%3D%3D
I had to copy this code and input it into the R Console but I had to replace the "%3D%3D" at the end with a double equals sign == e.g. aPrxqJ8A8kLOza8QYWB1MJ37.7lD7AxUZ5nbMy9PlJ1zcYI.JkbdF5ev8h1bPg9C6mkLNKS75A==
I don't know if that %3D%3D will be there every time and at the end of the code, in my case it was. Potentially other strange URL character encodings might result?
This allowed me to authenticate and could use salesforcer like I normally would be able to on my local machine.