-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RestSharp Access/Refresh Token #1015
Comments
This looks like a question. What is your issue exactly? Have you found a bug? |
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) |
I think questions are better asked on StackOverflow, which has much wider audience than the Github repository. |
It is already done, but I have had no return. |
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. |
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.
The text was updated successfully, but these errors were encountered: