I want to build a public Salesforce site where I can share my SF Accounts' details with the public without forcing them to login (I know this can be achieved with a controller/ JavaScript Remoting).

I tried looking for a tutorial but could not find one without a login. Is this even possible with JSForce?


JSforce calls the Salesforce Rest Endpoints to get and post data. The basic requirement to use Salesforce Rest Endpoint is to get API enabled Session-Id.

JSForce uses your username/password to get the session id using username/password flow.

So in JS force, if you provide Username and Password of Salesforce User which is API enabled you will be able to use it.

But....... JSforce gets the Authentication in Javascript. Which means you have to expose the username and password on a public facing site. Which according to me is very very hacky and prone to attacks.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.