0
votes

I'm trying to give my users an option to add data to their Salesforce organization account without using their username and password from salesforce.

I'm already doing the same thing with Hubspot API through an API Key Hubspot provide.

From what I read so far, salesforce has two authentication options:

OAuth: https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_server_flow.htm&type=5

SOAP API Login: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm

I'm using NodeJS so I also checked JSForce library: https://jsforce.github.io/

but again, in all of them the user needs to provide his username and password. Does this option exist through the Salesforce API?

Tnx!

1

1 Answers

0
votes

It would seem that all API access is done as a specific user and you must provide credentials to log in as such. See here.

You can use a scheduled apex job to make a callout to an external service from within your org at intervals using one of several workarounds.