EMA C++ Developers Guide : 6 Consuming Data from the Cloud : 6.5 Version 2 Authentication Using oAuth Client Credentials : 6.5.1 Configuring and Managing Version 2 Credentials
 
6.5.1 Configuring and Managing Version 2 Credentials
The client ID and client secret or private JWK must be set on the OmmConsumer object as described in Section 6.10.2.1 of the Enterprise Transport API C++ Edition Value Added Developers Guide. The OmmOAuth2ConsumerClient will handle the credentials the same way as Version 1, with an OmmOAuth2ConsumerClient callback for credentials if the user does not wish for the OmmOAuth2ConsumerClient to store them.