Riva Support for Salesforce OAuth Security Requirements: PKCE and Refresh Token Rotation

Grace Wannapongsai
Grace Wannapongsai
  • Updated

Salesforce has introduced updated security requirements for applicable AgentExchange / ISV partner applications that use Salesforce OAuth. These requirements are intended to strengthen OAuth security and help protect mutual customers from unauthorized access or token misuse.

Riva has implemented support for the Salesforce requirements related to Proof Key for Code Exchange (PKCE) and Refresh Token Rotation across the affected Riva product areas, including Riva Sync, Riva Insight, and Riva Sales Engagement.

Maintenance Schedule and Customer Impact

Riva has announced the following scheduled maintenance windows to deploy PKCE and Refresh Token Rotation support across its cloud environments:

Product Maintenance Date Maintenance Window
Riva Insight July 31, 2026 8:00 PM–10:00 PM EST
Riva Sync November 26, 2026 8:00 PM–10:00 PM EST

The expected service interruption is approximately 20 minutes per environment, with the full two-hour maintenance window reserved to allow sufficient time for deployment.

No customer or end-user action is required for the managed cloud rollout. The updates will be completed by the Riva Cloud Operations team, and users are not expected to re-authenticate their Salesforce connections following the upgrade.

What Salesforce Requires

Salesforce's updated requirements include several security controls for applicable Connected Apps and External Client Apps. Two of the key OAuth-related controls are:

  1. Proof Key for Code Exchange (PKCE)

    PKCE helps protect OAuth authorization flows by reducing the risk of authorization code interception.

  2. Refresh Token Rotation

    Refresh Token Rotation improves token security by replacing refresh tokens during the OAuth token renewal process and invalidating previously issued refresh tokens.

These controls are part of Salesforce's broader effort to improve OAuth security for partner applications and reduce the risk of service disruption for customers.

Riva PKCE Support

Riva has updated its Salesforce OAuth connection flows to support PKCE.

This applies to Salesforce OAuth flows used when creating a new connection and when revalidating an existing connection. During the OAuth process, Riva now includes a code_challenge parameter in the initial Salesforce authorization request and uses the corresponding code_verifier during the token exchange.

PKCE uses these parameters to confirm that the same client completes both steps of the OAuth authorization flow.

For more information, see Salesforce's Proof Key for Code Exchange (PKCE) Extension.

The PKCE update is backwards compatible. This means Riva can support the updated OAuth flow while continuing to work with Salesforce configurations that have not yet enforced PKCE.

Riva Refresh Token Rotation Support

Riva has also implemented support for Salesforce Refresh Token Rotation.

With Refresh Token Rotation, Salesforce issues a new refresh token during the token renewal process and invalidates the previously used token. Riva has updated the relevant OAuth handling to support this behaviour so that Riva integrations can continue operating when Refresh Token Rotation is enabled in Salesforce.

When rotation is enabled, reusing an invalidated refresh token also causes Salesforce to invalidate the current refresh token and associated access tokens.

For more information, see Salesforce's OAuth 2.0 Refresh Token Flow for Renewed Sessions.

Similar to PKCE, Riva's Refresh Token Rotation support is designed to work with Salesforce configurations where enforcement has not yet been enabled.

Refresh Token IP Allow List Considerations

Salesforce also includes a Refresh Token IP Allow List control for applicable Connected Apps and External Client Apps. This setting restricts refresh token requests to approved IP ranges.

When Enforce Refresh Token IP Allowlist is enabled, Salesforce blocks OAuth web server and refresh token requests originating outside the configured ranges. This control differs from Salesforce Trusted IP Ranges.

For more information, see Salesforce's Set IP Allowlist Ranges for Refresh Tokens.

Riva has tested this behaviour with Salesforce OAuth flows using external Connected Apps. Testing confirmed that when Refresh Token IP Allow List enforcement is enabled, refresh token requests may be blocked unless the applicable IP address is included in the Connected App's allow list.

Testing also showed that Salesforce org-level security settings may affect the authentication flow. In some configurations, additional Salesforce IP range settings may be required before the OAuth flow can complete successfully.

Refresh Token IP Allow List enforcement depends on Salesforce configuration and trusted IP range management. Customers should review the applicable Salesforce requirements before enabling this setting.

Deployment and Salesforce Configuration Considerations

Riva has implemented PKCE and Refresh Token Rotation support across the affected Salesforce OAuth flows used by:

  • Riva Sync
  • Riva Insight
  • Riva Sales Engagement

Both updates are designed to support Salesforce's updated OAuth security requirements while remaining compatible with Salesforce configurations where enforcement has not yet been enabled.

No customer action is required solely because Riva has implemented these updates. However, customers planning to enable, enforce, or lock Salesforce security controls should review the applicable Salesforce requirements and Riva release guidance before proceeding.

Salesforce notes that certain security controls must be enabled and locked for applicable applications. Whether these settings can subsequently be unlocked depends on the application type, creation date, and applicable enforcement requirements.

For more information, see Salesforce's What to Do When OAuth Security Settings Are Locked in a Connected App or External Client App.

For questions about the maintenance schedule or its impact, contact Riva Technical Support.