Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Set Up Authentication for Developer Testing

To set up authorization for developer testing:

This authorization method is simple to use and recommended for testing your code quickly. However, we recommend that you use OAuth 2.0 in a production environment for more robust security. The OAuth authentication method with a connected app provides restricted access and other benefits.

Important

  1. Log in using the SOAP API login() and get the session ID.
  2. Set up the HTTP authorization header using this session ID:
    1Authorization: Bearer sessionId

    The CometD endpoint requires a session ID on all requests, plus any additional cookies set by the Salesforce server.

    For more information, see Step 4: Use the Connector with Username and Password Login.