How to Configure OAuth Authentication for Salesforce in ZappySys (Avoid Legacy SOAP login())

Overview

Salesforce now recommends OAuth authentication instead of the legacy SOAP Login API. This article explains how to create a Connected App, configure OAuth in Salesforce, and connect using ZappySys products.


Applies To


What Is Changing in Salesforce?

Salesforce is retiring the SOAP API login() method for authentication in API versions 31.0 through 64.0, and this method will be fully disabled starting Summer ’27.

Official Salesforce announcement:

What does this mean?

If your integration is still using username + password + security token, Salesforce will block those login requests, which can cause:

  • Connection failures
  • Package execution errors
  • Broken production workflows

To prevent this, Salesforce recommends moving all integrations to OAuth-based authentication.


How Does This Affect ZappySys Users?

If You Are Already Using OAuth

No action is required. Your integrations will continue to work normally.


If You Are Using Username / Password Authentication

If your Salesforce connection in ZappySys is configured using legacy login, you will need to migrate to OAuth to avoid service disruption.

This applies to:

  • Existing SSIS packages
  • Scheduled SQL Agent jobs
  • Power BI refresh workflows using ODBC
  • API Connector jobs

We strongly recommend migrating to OAuth as early as possible.


Why Switch to OAuth?

Besides being required by Salesforce, OAuth also provides:

  • Better security
  • Token-based authentication (no stored passwords)
  • Automatic token refresh
  • Long-term compatibility with Salesforce API changes

In short — OAuth is safer, more reliable, and future-proof.


How to Configure Salesforce OAuth in ZappySys

Below are the recommended steps to configure OAuth authentication for Salesforce connections in ZappySys. Please refer to this blog for detailed steps on How to register Salesforce App and obtain Client ID / Secret (for API Call / OAuth)


Step 1 – Create a Connected App in Salesforce

  1. Log in to Salesforce and go to Setup as shown below (click on the gear icon in the top right corner)

  2. Then in the search bar, input “app” and open App Manager:

  3. Then click New Connected App to create a new OAuth App
    NOTE: In some versions, it may say New External Client App

Look for one of the following buttons:

  1. Enter:
  • Connected App Name
  • API Name
  • Contact Email
  1. Enable: Enable OAuth Settings

  2. Enter Callback URL:
    https://zappysys.com/oauth

  3. Select OAuth Scopes:

  • Full access (full)
  • Perform requests on your behalf (refresh_token, offline_access)
  • Access and manage your data (api)

  1. Click Save
  2. Copy the following values — you will need them in ZappySys:
  • Consumer Key (Client ID)
  • Consumer Secret (Client Secret)


Step 2 – Configure OAuth in ZappySys

  1. Open your SSIS Package
  2. Edit the Salesforce Connection Manager
  3. Set: Authentication Type = OAuth
  4. Enter:
  • Client ID
  • Client Secret
  1. Click Get New Token
  2. Log in to Salesforce and approve the access request
  3. Save the connection


Step 3 – Test Your Connection

Click Test Connection to confirm everything is working correctly.


How to Migrate Existing Packages Safely

If your current packages are using username/password authentication, follow these steps:

  1. Open Salesforce Connection Manager
  2. Change authentication to OAuth
  3. Complete OAuth setup
  4. Test the connection
  5. Redeploy your SSIS packages
  6. Run a test execution

This ensures your workflows continue running without interruption.


When Should You Migrate?

Salesforce will fully disable SOAP login in Summer ’27, but we recommend migrating well before that deadline to avoid last-minute issues.

Best practice: Plan and complete migration as early as possible.


Common Errors & Fixes

1. Invalid URI: The format of the URI could not be determined

Error

While testing the Salesforce connection, you may see the following error:

Test Failed: Invalid URI: The format of the URI could not be determined.

Cause

This issue can occur if a previous OAuth authentication session is cached in the connection manager, especially after making changes to:

  • Client ID
  • Redirect URL
  • OAuth configuration
  • Salesforce Connected App settings

Solution

Follow these steps to reset the authentication session:

  1. Open the Salesforce Connection Manager in SSIS.
  2. Locate the option: Clear previous logins
  3. Enable the checkbox:
    :check_mark: Clear previous logins
  4. Click: Generate Token <<
  5. Complete the Salesforce authorization process again.

Why This Fix Works

Sometimes, previously stored OAuth session information conflicts with the new configuration. Enabling Clear previous logins forces a fresh OAuth authentication flow and resolves the URI formatting error.


2. Redirect URL Mismatch Error

Error

During OAuth authentication, Salesforce may return an error indicating the Redirect URL does not match.

Cause

The Redirect URL configured in ZappySys Connection Manager must match the Callback URL configured in the Salesforce Connected App.

Solution

Ensure the following Redirect URL is configured in both places: https://zappysys.com/oauth
Steps:

  1. Open Salesforce Setup
  2. Go to App Manager
  3. Locate your Connected App
  4. Click Edit
  5. Under API (Enable OAuth Settings) ensure the Callback URL is set to:
    https://zappysys.com/oauth
  6. Save the changes and regenerate the OAuth token.

3. Sandbox Login Issues

Error

Authentication fails or redirects to the wrong Salesforce environment.

Cause

The connection manager may be configured for Production, while the user is trying to authenticate against a Sandbox org.

Solution

In Salesforce Connection Manager → General section, change: Service Type: Sandbox
This will automatically use the correct Salesforce endpoints.


4. invalid_grant or Expired Authorization Code

Error

During OAuth authentication, you may see an error similar to:
invalid_grant
expired authorization code

Cause

This error usually occurs when:

  • The authorization code has expired before being exchanged for a token.
  • The OAuth flow was interrupted or the browser was closed.
  • A previous cached session is interfering with the authentication process.
    Salesforce authorization codes are short-lived, so they must be exchanged quickly during the OAuth flow.

Solution

Follow these steps to regenerate the token:

  1. Open Salesforce Connection Manager in SSIS.
  2. Enable: :check_mark: Clear previous logins
  3. Click: Generate Token <<
  4. Complete the Salesforce login and authorization again.

This will start a fresh OAuth authentication session and generate a new access token.


5. The user hasn’t approved this consumer

Error

During authentication Salesforce may return the error: user hasn’t approved this consumer

Cause

This happens when the Salesforce user has not authorized the Connected App or the OAuth policy requires explicit approval.

Solution

You can resolve this in one of the following ways.

Option 1 – Approve During Login

When the OAuth login page appears:

  1. Log in to Salesforce.
  2. Click Allow when prompted to grant access to the application.

Option 2 – Pre-Authorize the Connected App (Recommended for Teams)

Salesforce administrators can pre-authorize the app so users don’t need to approve it individually.

Steps:

  1. Go to Salesforce Setup
  2. Navigate to App Manager
  3. Find your Connected App
  4. Click Manage
  5. Under OAuth Policies, set:

Permitted Users: Admin-approved users are pre-authorized

  1. Assign the Connected App to the appropriate Profiles or Permission Sets

This allows users to authenticate without seeing the approval prompt.


Frequently Asked Questions

Will my existing integrations stop working?

Only if they are still using legacy username/password authentication. OAuth-based connections are not affected.


Does ZappySys fully support OAuth?

Yes. ZappySys provides native OAuth support with automatic token refresh, suitable for production and scheduled workloads.


Does this affect REST or Bulk APIs?

No. This change only impacts SOAP-based authentication. REST and Bulk APIs continue to work normally with OAuth.


I selected OAuth, but my log still shows SF Login: Connecting to => https://login.salesforce.com/services/Soap/u/XX. Am I still using SOAP login?

No. That log message is misleading in older versions of ZappySys. It was printed before the authentication type was checked, so it appeared for OAuth connections too, even though that URL is never called for OAuth.

When OAuth is selected, ZappySys:

  1. Gets an access token from the OAuth endpoint (https://login.salesforce.com/services/oauth2/token, or test.salesforce.com for Sandbox).
  2. Uses that token to call your org’s API endpoint (https://<your-domain>.my.salesforce.com/...).

The legacy SOAP login() call is not made. You can confirm this with a tool like Fiddler: you’ll see calls to /services/oauth2/token but none to login.salesforce.com/services/Soap/....

Starting in <NEW_VERSION>, the log shows what actually happens:

SF Login: Using OAuth (OAuth) - Token URL => https://login.salesforce.com/services/oauth2/token
SF Login: Success - API Endpoint => https://<your-domain>.my.salesforce.com/services/Soap/u/XX

After login, the log still shows a /services/Soap/u/XX URL. Is that a problem?

No. That is the SOAP API data endpoint used to read and write records, and it’s authenticated with your OAuth token. Salesforce is retiring the SOAP login() operation (username/password + security token). It is not retiring the SOAP API itself. Data calls made with an OAuth token keep working.


Can I enable Salesforce’s setting to disable SOAP API login() in my org?

Yes, if all your ZappySys Salesforce connections use OAuth (OAuth 2.0 (Interactive) or OAuth 2.0 Client Credentials). Those connections never call login(), so the setting doesn’t affect them.

Before you enable it, check every Salesforce connection (in every SSIS package, ODBC DSN and project) and make sure none still uses UserId / Password + SecurityToken (DEPRECATED). Connections on that option will start failing.


Do I need to upgrade ZappySys if I’m already using OAuth?

Not for functionality. OAuth works the same in older versions. Upgrading to <NEW_VERSION> or later only fixes the misleading log message, so your logs and auditors no longer see a SOAP login URL. We recommend upgrading if that log line causes concern during audits or reviews.


I’m still on UserId / Password + SecurityToken. What will happen?

Salesforce is retiring SOAP API login() (API versions 31.0–64.0) in the Summer '27 release. It’s already unavailable in API version 65.0 and later, and an org admin can disable it at any time. When that happens, connections using this option fail with errors such as INSUFFICIENT_ACCESS or UNSUPPORTED_API_VERSION.

To avoid this, switch the connection’s Authentication Type to OAuth using the steps in this article. Starting in <NEW_VERSION>, ZappySys shows a clear message when it detects this situation.


I set API Version to 65 or higher and my username/password connection stopped working. Why?

Salesforce doesn’t support SOAP login() in API version 65.0 and later. Switch the connection to OAuth, which works with any API version. Or, as a temporary workaround only, set the API version back to 64.0 or lower.


How can I check which authentication my connections are using?

  • In ZappySys: open the Salesforce connection and check Authentication Type. Anything other than UserId / Password + SecurityToken is OAuth.
  • In your log (<NEW_VERSION>+): look for SF Login: Using OAuth.
  • In Salesforce: go to Setup → Login History and look at the logins from your integration user. OAuth logins show an OAuth / Remote Access login type instead of a SOAP API login.

Final Notes

Salesforce is making this change to improve security, compliance, and platform stability. Migrating to OAuth ensures your integrations remain reliable and future-proof.

If you need help configuring OAuth or migrating your existing packages, ZappySys Support Team is always happy to help.