Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

2

Below s what your POST request should look like.Please note the password might need the password+token concatenated: Endpoint: https://XXXXX.my.salesforce.com/services/oauth2/token Request Body: client_id: lorem-ipsum-a client_secret: lorem-ipsum-b username: lorem-ipsum-c password: lorem-ipsum-d //**NOTE YOU MIGHT NEED TO DO PASSWORD+TOKEN** grant_type:...


3

The request parameters (grant_type, client_id and so on) must be sent in the request body . The docs mention this (note the phrase example request body) but they aren't very explicit about this requirement.


0

You will need to: Provide the consumer key/secret from the connected app Ensure that the vendor is setup as a user in your environment The vendor then utilizes one of the flows to authenticate themselves, get the access token and then invoke the api.


0

You can use the Connected App from your production org, but to avoid the user hasn't approved this consumer error, I've found that you need to authenticate using the password and the Connected App's Client Id first. Then you'll be able to authenticate with JWT using the key.


0

You use OpenSSL for that. On Linux/macOS, a script like this will generate multiple certificates, if you need them (for multiple environments in a CI/CD context, for example). if [ -z "$1" ] then echo "Missing #1 argument (password)." exit 1 fi echo "This script will output multiple certificates (canary, uat and production)." echo "...


0

You can use SOAP login API to authenticate with username/password, it does not require a connected app. The SOAP call will return a session ID.


1

Now, I want to remove dependency of Connected App because of some reasons. So I want to know is there any way to get new access token without using Connected App? No. You will always need to provide the Client Id/Secret along with the refresh token to get the new access token. And for that purpose you will need your Connected App to be active. Take a look ...


0

If you are just hard coding the user's password for testing ONLY you could, after the user is inserted add another line as below: insert u; System.setPassword(u.Id, 'yourpasswordhere'); return u;


3

The Saleforce CLI as you have it listed there no longer exists, and has been superseded by the newer CLI, which will be listed as the Force CLI instead. The first time you authenticate successfully, it will automatically be available in this list. To authenticate to a Sandbox, make sure you use the -r parameter: sfdx force:auth:web:login -r https://test....


0

Setup --> Apps Manager --> From the apps list, choose the dropdown for your app and click View, then on the view click the delete button, and once more click delete to confirm.


0

Marketing Cloud and Sales Cloud are 2 different instances, so even if you have integrated both the clouds, you need to login separately unless you have enabled Single sign on for both the clouds on your network.


Top 50 recent answers are included