Windows application - CACHE TOKEN for subsequent call
Oct 24, 2017 07:11 PM|Selvakumar Ramachandran|LINK
Hi All,
Is it possible to cache token information in windows application or machine?
I am using VS 2015, SQL and C#.
In my windows application we are calling 4 different API's to get data based on the requirement. I have 4 different token for accessing these API's (each token for each API). I need to retain this token for 24 hrs in machine and if it expires then I will
get new token from server again.
So my requirement is - to cache token information in windows application for subsequent API call.
Is there any other approach to maintain the token in windows based application?
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
20 Points
60 Posts
Windows application - CACHE TOKEN for subsequent call
Oct 24, 2017 07:11 PM|Selvakumar Ramachandran|LINK
Hi All,
Is it possible to cache token information in windows application or machine?
I am using VS 2015, SQL and C#.
In my windows application we are calling 4 different API's to get data based on the requirement. I have 4 different token for accessing these API's (each token for each API). I need to retain this token for 24 hrs in machine and if it expires then I will get new token from server again.
So my requirement is - to cache token information in windows application for subsequent API call.
Is there any other approach to maintain the token in windows based application?
Thanks
Selvakumar R
All-Star
36991 Points
14925 Posts
Re: Windows application - CACHE TOKEN for subsequent call
Oct 24, 2017 07:13 PM|mgebhard|LINK
Write the token to disk or a database table.
Star
8650 Points
2882 Posts
Re: Windows application - CACHE TOKEN for subsequent call
Oct 25, 2017 06:40 AM|Cathy Zou|LINK
Hi Selvakumar Ramachandran
From your description, it seems that your problem is not related to Web application.
which technology you used for your windows application, Win forms or wpf or uwp.
Our forum is for web application.
So, I suggest you could post your problem on correspondent forum for professional support.
Win forms: https://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
Wpf: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
Uwp: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?forum=wpdevelop
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.