Skip to content

Add support for Salesforce OAuth 2.0 DPoP #1867

Open

Description

@crumpstar

Please add support for Salesforce’s OAuth 2.0 Demonstrating Proof-of-Possession (DPoP) extension.

Starting March 30, 2027, Salesforce will restrict new installations into other orgs of connected apps and external client apps that haven’t enabled and locked PKCE, refresh-token rotation, and a proof-of-possession control. The latter can currently be satisfied by either a refresh-token IP allowlist or DPoP, making DPoP necessary for integrations that can’t use the IP-allowlist option. Existing connections continue working under this general installation restriction.

JSforce currently assumes Bearer tokens: OAuth2.TokenResponse.token_type is typed as 'Bearer', and HttpApi.beforeSend sets Authorization: Bearer <accessToken>. Token requests also lack DPoP proof generation and nonce-challenge handling.

The requested support would cover:

  • Configuring a signing key or proof signer.
  • Sending fresh DPoP proofs for token acquisition, refreshes, and API requests.
  • Handling Salesforce’s DPoP-Nonce / use_dpop_nonce challenge.
  • Recognizing DPoP-bound tokens and using the appropriate authorization scheme.

#1864 addresses refresh-token rotation separately. I couldn’t find an existing issue or PR covering DPoP.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions