DpopProofHeader

Specifies the DPoP proof for a request that uses a DPoP-bound access token. Demonstrating Proof-of-Possession (DPoP) binds an OAuth access token to the client that requested it. Even if a threat actor steals the token, they can’t use it without the client’s private key.

DPoP is optional. It applies only when the external client app or connected app has the Require DPoP (Demonstrating Proof-of-Possession) setting enabled. For setup steps and proof generation, see OAuth 2.0 DPoP Guide in Salesforce Help.

Pass the DPoP-bound access token in SessionHeader without a DPoP prefix, and pass the proof in this header.

API Calls 

All calls, including utility calls.

Fields 

proof 

Type: string

Description: A signed DPoP proof JWT for this request. Generate a new proof for each request.

Sample Code 

This sample shows a SOAP request with a DPoP-bound access token in SessionHeader and a DPoP proof in DpopProofHeader.

1<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
2  xmlns:urn="urn:partner.soap.sforce.com">
3  <soapenv:Header>
4    <urn:SessionHeader>
5      <urn:sessionId>00DSG00000slUEr!AQEA...</urn:sessionId>
6    </urn:SessionHeader>
7    <urn:DpopProofHeader>
8      <urn:proof>eyJ0eXAiOiJkcG9wK2p3dCIs...</urn:proof>
9    </urn:DpopProofHeader>
10  </soapenv:Header>
11  <soapenv:Body>
12    ...
13  </soapenv:Body>
14</soapenv:Envelope>

Errors 

If DpopProofHeader is missing or invalid, or the proof doesn’t match the access token, the call returns an INVALID_AUTH_HEADER fault. The same fault is returned whether SessionHeader contains a JWT-based access token or a session ID.