Hello,
We are working on a C++ integration with the Milestone SDK and are using Windows authentication (not basic authentication).
Each time our program starts, during the automatic connection to the VMS, a Windows popup appears asking for user credentials.
Our requirement is to be able to store these credentials on the machine so that we don’t have to re-enter them each time we connect.
We have noticed that in a C# environment it is possible to handle the connection using a .NET
CredentialCache
, as shown in the Milestone CameraStreamResolution example, which allows saving and reusing the username and password.
Is there an equivalent approach in the C++ SDK to handle and reuse Windows credentials, in order to avoid this popup?
Thank you in advance for your guidance.
I have been in doubt what you are using and what you are asking.
The CameraStreamResolution sample demands a login, and there is no way to avoid that, the MIP SDK does not come with an ability to store someone’s credentials. When it comes to the sample’s use of current Windows user, which then does not require writing the password again, this is a .NET functionality that the MIP SDK has inherited, and I have unfortunately no knowledge how similar functionality might be implemented if working with C++ instead of .NET.
If the requirement is to use the current Windows user I hope you will be able to find help in other fora on C++ development.
If I did not catch the use case and what you are really asking please elaborate on the question. It might be useful that you include the login currently used from your C++ program towards Milestone XProtect.
Hello,
Thank you for your prompt response.
We are using SDK version C++ 22.3. Is it possible to access the documentation and related samples?
Thank you in advance
The samples are on GitHub and you can access older versions.
If you click the link where it says “release-milestone” you see the older versions.
Example: https://github.com/milestonesys/mipsdk-samples-component/commits?author=release-milestone
The documentation can be reached like this:
https://doc.developer.milestonesys.com/html-2022r3/
Other versions are found by changing the numbers in the URL.
Note the old SDK is out of support and we might not be able to answer your questions. I did not think in the context of this old SDK and its C++ development option when answering above.