Newer Version Available

This content describes an older version of this product. View Latest

Setting Up Authentication for Developer Testing

To set up authorization for developer testing:

This authorization method should only be used for testing and never in a production environment.

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:

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

    For more details, see Step 4: Add the Source Code.