Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
MIP SDK C++ applications still implement mip::AuthDelegate, but token acquisition is documented through the official sample.
Use the sample repository as the source of truth for the token provider implementation:
The sample demonstrates an MSAL.NET-based token acquisition helper that the C++ auth delegate calls at runtime.
What to implement in your C++ project
Your C++ app should:
- Implement
mip::AuthDelegate::AcquireOAuth2Token(...). - Read the
resource,authority, andclaimsfrom theOAuth2Challengeparameter. - Pass the username or login hint, client ID, resource, authority, and claims to the sample's
AcquireTokenhelper, in that order. The helper converts the resource to the scopes required by MSAL. - Set the returned access token on
OAuth2Token.
Quickstart integration guidance
The C++ quickstarts intentionally do not provide an end-to-end OAuth implementation. For authentication setup:
- Follow Quickstart: Client application initialization (C++).
- Reuse the authentication implementation pattern from MipSDK-File-Cpp-Basic.
- Return to the quickstarts after confirming token acquisition works for your tenant and app registration.
This approach keeps the quickstarts focused on MIP SDK object usage while allowing auth implementation details to evolve in the sample.