OneDrive / onedrive-sdk-csharp

OneDrive SDK for C#! https://dev.onedrive.com
Other
295 stars 145 forks source link

How to get refresh token using the GraphServiceClient uaing code flow #251

Open yChakradhar opened 5 years ago

yChakradhar commented 5 years ago

We have a WPF application in production and want to consume the onedrive API from the application. Now we are using the C# graph SDK tp connect with onedrive and we are able to upload and download files with token-based authentication which is expiring in one hour. But we want to implement code-based authentication to get a refresh token so that when the access token expires we will get the token again using a refresh token. Please provide a way to do that so that we can proceed with other functionality. I would be very thankful if you provide a sample application

Thanks, Chakradhar