Closed GoogleCodeExporter closed 9 years ago
You are right, there should definitely be an easy option to specifiy this. For
the moment you can do something like this to get the same behavior:
var auth = new OAuth2Authenticator<NativeApplicationClient>(provider,
GetAuthorization);
// Create the service.
var proxyAuth = new DelegateAuthenticator((request) => request.Proxy = new
WebProxy()) { PreviousAuthenticator = auth };
var service = new TasksService(proxyAuth);
Original comment by mlin...@google.com
on 1 Sep 2011 at 12:18
Thanks! That'll do for now.
Original comment by nilsn...@gmail.com
on 1 Sep 2011 at 12:25
Original comment by mlin...@google.com
on 1 Sep 2011 at 5:52
Original comment by asky...@google.com
on 27 Oct 2011 at 4:24
I have a system in production with this workaround now, but I just realized it
doesn't work for NativeApplicationClient.RefreshToken(), and probably all
DotNetOpenAuth-related calls. Can you confirm this? Any second workaround for
this problem - or a more permanent fix? :)
Original comment by nilsn...@gmail.com
on 29 Nov 2011 at 8:07
With the recent build google-api-dotnet-client-1.2.4667 there is no such thing
as a property named "PreviousAuthenticator" in the DelegateAuthenticator class.
So the example:
var auth = new OAuth2Authenticator<NativeApplicationClient>(provider,
GetAuthorization);
// Create the service.
var proxyAuth = new DelegateAuthenticator((request) => request.Proxy = new
WebProxy()) { PreviousAuthenticator = auth };
var service = new TasksService(proxyAuth);
Will not work.
Is there a new way to set a proxy for webrequest made against Google api?
Original comment by christia...@gmail.com
on 17 Oct 2012 at 10:21
Anyone ever find a solution to this issue?
Original comment by zachstef...@gmail.com
on 7 Jan 2013 at 6:00
Appreciate any confirmation if using a proxy is supported in the latest Google
Analytics API version.
Original comment by itsba...@gmail.com
on 9 May 2013 at 8:34
Original comment by pele...@google.com
on 10 May 2013 at 9:04
From 1.4.0-beta our HttpClient support proxy
see
http://msdn.microsoft.com/en-us/library/system.net.http.httpclienthandler.proxy.
aspx for more details
Original comment by pele...@google.com
on 6 Sep 2013 at 6:54
Original issue reported on code.google.com by
nilsn...@gmail.com
on 1 Sep 2011 at 10:41