MyOwnClone / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
1 stars 0 forks source link

Refresh autorization token while a large file is uploading #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there any way to refresh authorization token while a file is uploading with 
a specified ChunkSize?
It seems I must add this code to 
FilesResource.InsertMediaUpload.ProgressChanged event handler and update 
Authenticator property of an instance of FilesResource.InsertMediaUpload.

Currently is looks like there is no ability to upload a file if this action 
takes more than token expiration time (1 hour).

---

Current release: 20121011-1.2.4667-beta

Original issue reported on code.google.com by passm...@gmail.com on 15 Oct 2012 at 6:27

GoogleCodeExporter commented 9 years ago
Release google-api-dotnet-client-1.2.4737-beta still causes exception 
System.Exception: Invalid Credentials ---> System.Net.WebException: The remote 
server returned an error: (401) Unauthorized. after one hour.

Original comment by ksbum...@gmail.com on 18 Feb 2013 at 5:03

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 6 May 2013 at 6:03

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 14 Aug 2013 at 3:27

GoogleCodeExporter commented 9 years ago
The Auth library contains UserCredentials which implements an interceptor which 
will refresh the token automatically, It also implements unsuccessful response 
handler
https://codereview.appspot.com/13972043/

Original comment by pele...@google.com on 3 Oct 2013 at 6:27

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 3 Oct 2013 at 7:28