You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an WPF application. Using the RestSharp library, I was able to retrieve an access token and a refresh token. Can you tell me how to save this refresh token and use it to generate a new access token? I am stuck at this stage, if you have an example C# I will be very grateful to be able to advance.
No the Response.Content contains the access_token and the refresh_token .... , but I want to know, for a WPF application, where can I save my refresh token? and how to use it to generate an access token if the first one is expired. (A client application sample)
The OAuth spec doesn't dictate the storage mechanism for tokens. Generally you'll find most frameworks that provide refresh managers will provide some hook/callback to store and retrieve tokens. (ex. the somewhat defunct DotNetOpenAuth).
@YassIlhem RestSharp is just a library to make HTTP calls. You should handle tokens yourself, or as @rcollette mentioned use features of the server-side implementation, if it provides any SDK.
@alexeyzimarev@rcollette thanks for the replay, i used the project's Properties, where i create String and i saved them .. The RestCharp Library works perfectly.
Activity
alexeyzimarev commentedon Sep 29, 2017
This looks like a question. What is your issue exactly? Have you found a bug?
YassIlhem commentedon Sep 29, 2017
No the Response.Content contains the access_token and the refresh_token .... , but I want to know, for a WPF application, where can I save my refresh token? and how to use it to generate an access token if the first one is expired. (A client application sample)
alexeyzimarev commentedon Sep 29, 2017
I think questions are better asked on StackOverflow, which has much wider audience than the Github repository.
YassIlhem commentedon Sep 29, 2017
It is already done, but I have had no return.
I said, maybe, there will be someone here who has already done it
rcollette commentedon Jan 9, 2018
The OAuth spec doesn't dictate the storage mechanism for tokens. Generally you'll find most frameworks that provide refresh managers will provide some hook/callback to store and retrieve tokens. (ex. the somewhat defunct DotNetOpenAuth).
alexeyzimarev commentedon Mar 25, 2018
@YassIlhem RestSharp is just a library to make HTTP calls. You should handle tokens yourself, or as @rcollette mentioned use features of the server-side implementation, if it provides any SDK.
YassIlhem commentedon Mar 26, 2018
@alexeyzimarev @rcollette thanks for the replay, i used the project's Properties, where i create String and i saved them .. The RestCharp Library works perfectly.