function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
osf_teamosf_team 

Streaming API : Security concerns in Production environment

Hi,

As per the Salesforce documentation, it is recommended to use OAuth 2.0 if using Streaming API in Production environment.

User-added image

If instead of using OAuth 2.0 in production environment, if we use the simple authentication, will it cause any issues?
We have verified using simple authentication in Sandbox account, and we are not facing any issues with it.

Thanks
Shalindra Singh
Andy BoettcherAndy Boettcher
*TECHNICALLY* you can use basic auth in Production.

*FOR HEAVENS SAKE* never use basic authentication in Production - basic is non-secure and you're going to be passing your credentials essentially in the clear for anyone to sniff, intercept, and use against your Production environment.  Make the investment now and protect your Production data.

Don't be lazy.  =)