Socket
Book a DemoInstallSign in
Socket

@salto-io/salesforce-adapter

Package Overview
Dependencies
Maintainers
0
Versions
4665
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@salto-io/salesforce-adapter

Salto Salesforce adapter

0.5.2
unpublished
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

Salesforce adapter

Salesforce adapter for salto.io

Configuring your Salesforce account for Salto OAuth Authentication

Salto supports authenticating with Salesforce using either a combination of user-name, password and token, or using OAuth authentication. In order to use OAuth authentication, please follow the steps below as you will need to create a new "Connected App" in your Salesforce account.

  • Go to your salesforce account's setup screen
  • Go to "App Manager", and click "New Connected App"
  • Fill mandatory fields (Connected App Name, Api Name, Contact Email), then check "Enable Oauth Settings"
    • Under "callback URL", write http://localhost:PORT, where PORT is a port you can allow salto to open momentarily on your computer (it will not be open to external connections). Except for PORT, do not change any character in the URL.
    • Under "Selected OAuth Scopes", pick Full access (full) & Perform requests at any time (refresh_token, offline_access)
    • Save the app, and wait as the connected app creation instructs you
  • You can now connect to salesforce with OAuth credentials, by adding the flag '-a oauth' or '--auth-type oauth' to the commands 'salto account add salesforce' or 'salto account login salesforce'
  • You will be asked to provide the consumerKey created in the connected app and the port you provided in the callback URL

E2E tests

E2E tests need real SFDC credentials to run - a free developer account is good enough.

Using a specific set of credentials

Add the following environment variables to bash_profile:

export SF_USER='XXXX'
export SF_PASSWORD='XXXX'
export SF_TOKEN='XXXX'

Using the shared credentials pool

The credentials pool can be used to run the E2E tests concurrently on multiple SFDC accounts.

The pool is used if the SF_ environment variables are not defined. You can also force its use by defining the environment variable USE_CRED_POOL=1.

AWS credentials for the pool

The pool uses Amazon DynamoDB, and needs read/write/list permissions for the e2e_permissions table.

Make sure your AWS credentials are set, e.g, as environment variables:

export AWS_ACCESS_KEY_ID='XXXX'
export AWS_SECRET_ACCESS_KEY='XXXX'

Managing the pool using CLI

To add your credentials to the pool, use the cred-store CLI located at the e2e_test directory of the project:

./e2e_test/cred_store register salesforce 'my-credentials-id' --username='myuser@mydomain.com' --password='MYPASSWORD' --api-token='MYAPITOKEN'

Enter --help to see other uses for the cred-store utility - listing, removing and managing sets of credentials.

FAQs

Package last updated on 10 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.