0

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?

1 Answer 1

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .