Hello, Microsoft Identity is a platform made up of serveral components, including libraries such as MSAL .NET. Using C++ you should be able to leverage it. For authorization you will need to retrieve an access token. Please take a look to Desktop and mobile public client apps samples for different scenarios.
Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.