Thanks for your time and patience, PFB answer to your queries :
- What is the name of getting credentials with that popup style? How should I search it? (Is it WAM - Web Account Manager) ?
prompt Indicates the type of user interaction that is required.
Valid values are login, none, consent, and select_account.
prompt=login forces the user to enter their credentials on that request, negating single-sign on.
prompt=none is the opposite. It ensures that the user isn't presented with any interactive prompt. If the request can't be completed silently by using single-sign on, the Microsoft identity platform returns an interaction_required error.
prompt=consent triggers the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app.
prompt=select_account interrupts single sign-on providing account selection experience listing all the accounts either in session or any remembered account or an option to choose to use a different account altogether.
- Which API/libraries provide that functionality to my native console application?
You need to integrate the app with Azure SDK for C++ library and could follow Microsoft identity platform and OAuth 2.0 authorization code flow
- If it is not possible with C++ way, what would be the best alternative? Can I call PowerShell or any alternative to authenticate and get structured response?
Even the PowerShell module is built using same prompt.
- You may use https://github.com/Azure/azure-sdk-for-cpp/tree/azure-identity_1.5.0/sdk/identity/azure-identity/samples for sample code.
Please do let me know if you have any further queries.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.