Hi,
I am developing a program that is communicating whith Dynamics 365 Online. I wrote a piece of code that is authenticating using OAuth to Dynamics 365.
I am using the latest version of package Microsoft.CrmSdk.XrmTooling.CoreAssembly.
Here are the results of a test program that sends WhoAmI request every 30 seconds through new instace of CrmServiceClient. If token is different from previous one it is printed out.
I am using RequireNewInstance=false in Connection string. Shouldn't token be valid for 60 or more minutes, I get new one every 5 minutes?
When I run this piece of code:
and inspect token it says it is valid for an hour.
Is there a problem in CrmServiceClient or I need configure something?
Thanks in advance.
Daniel