Need a Solace example demonstrating how to use OAUTH using C++ Solace API.

Hi @TestSolace
Just to add to Tamimi’s answer, depending on how the client would be authenticated it can use Access token or ID token. One of these properties must be set for the session properties structure and passed to the session when creating the session.
Information for these parameters definitions can be found here:
CCSMP API: Main Page (API Guide)
A sample code how to set the session properties can be found here (see sessionProps variable):
Publish/Subscribe
Code repo example solace-samples-c/src/intro/QueuePublisher.c at master · SolaceSamples/solace-samples-c · GitHub (line 150 on)
I hope this helps.