Skip to content

RestSharp Access/Refresh Token #1015

Closed
Closed

Description

@YassIlhem

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.

Activity

  1. alexeyzimarev commented on Sep 29, 2017

    @alexeyzimarev
    Member

    This looks like a question. What is your issue exactly? Have you found a bug?

  2. YassIlhem commented on Sep 29, 2017

    @YassIlhem
    Author

    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)

  3. alexeyzimarev commented on Sep 29, 2017

    @alexeyzimarev
    Member

    I think questions are better asked on StackOverflow, which has much wider audience than the Github repository.

  4. YassIlhem commented on Sep 29, 2017

    @YassIlhem
    Author

    It is already done, but I have had no return.
    I said, maybe, there will be someone here who has already done it

  5. rcollette commented on Jan 9, 2018

    @rcollette

    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).

  6. alexeyzimarev commented on Mar 25, 2018

    @alexeyzimarev
    Member

    @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.

  7. YassIlhem commented on Mar 26, 2018

    @YassIlhem
    Author

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions