Newer Version Available
Set Up Authentication for Developer Testing
To set up authorization for developer testing:
- Log in using the SOAP API login() and get the session ID.
-
Set up the HTTP authorization header using this session ID:
1Authorization: Bearer sessionIdThe CometD endpoint requires a session ID on all requests, plus any additional cookies set by the Salesforce server.
For more information, see Step 4: Add the Source Code.