mipTokenCache

Hi I am trying to login with this link in my app

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_environments_login.html&tree=tree_4.html

but i am getting this error {“Value cannot be null.\r\nParameter name: mipTokenCache”}

I have an idea you might do something wrong, but what it could be is not an easy guess. Let me recommend that you try this sample which as first step logs in (without using the login dialog).

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/camerastreamresolution/readme.html&tree=tree_2.html

https://github.com/milestonesys

Thank you I used this link and now I can login and do some actions ,I have another question, Is there any way to login as a basic user? I need to add some generic actions to Client management in my code , I need to add them with Basic user permissions

The sample shows how you can log in as a basic user (and Windows user). Make sure you have created the basic user and put the user in a role with sufficient permissions, the administrator role give all permissions. (Create the user in the Management Client.)

I am in doubt, from your description, whether you need to do setup, rules or similar, in your code, or just need to trigger events that can trigger rules or similar you have set up using the Management Client.

To trigger a user-defined event see the trigger button in the ConfigAccessViaSDK sample:

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configaccessviasdk/readme.html&tree=tree_2.html

To do setup maybe the best place to start is the Config API Client sample:

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configapiclient/readme.html&tree=tree_2.html

You are welcome to elaborate on what you need to do, I might be able to guide.

Thank you for your information, I have a basic user in management client ,I just need to do some actions like adding generic events as ad or basic user ,I thought it’s not possible for basic user to add events but according to info you gave if it has ad permission it can do anything

I have another question, Can I set login as current user? the management client has this option that doesn’t required password or username can I do my actions as current user?

Yes, you can.

The CameraStreamResolution sample shows how you can log in as a basic user, Windows user, and current Windows user (Authorizationmodes.DefaultWindows;)

Note that this works if the Windows user (that is the user’s current user) is added to a role in the Management Client, and the role has sufficient permissions. It might be interesting to know that in addition to adding individual Windows users to a role you can also add AD groups.