1
I’m trying to connect in Google drive through Google.But here in my service has proxy and when I try to get the credential it gives error requesting proxy authorization. (opened browser accessed a page it asks password, if close the browser and open again it will ask again). I’ve tried proxy config but it doesn’t work. so much so that I can’t even log into my Visual Studio account it asks for email and password but then gives error that proxy authentication is required. Has anyone been through this? Do you have a solution? Already looked at several cases in stackflow pt and en and nothing solved. Releasing in proxy is not an option unfortunately.
It follows a piece of code that error occurs. occurs when it goes into Googlewebauthorizationbroker.Authorizeasync to connect. ...
using (var stream = new FileStream(@"D:\client_secret.json", FileMode.Open, FileAccess.Read))
{
String FolderPath = @"D:\";
String FilePath = Path.Combine(FolderPath, "DriveServiceCredentials.json");
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
GoogleClientSecrets.Load(stream).Secrets,
Scopes,
"user",
CancellationToken.None,
new FileDataStore(FilePath, true)).Result;
}
and the proxy logs ?
– Rovann Linhalis
I don’t have access to the logs.
– Leandro Lopes
but if it’s even authenticated in the proxy, and it’s blocking, it won’t work...
– Rovann Linhalis
I found a solution. I used this solution: https://blogs.msdn.microsoft.com/rido/2010/05/06/how-to-connect-to-tfs-through-authenticated-web-proxy/ I created the DLL place and configured web.config to use the dll. The problem is that you have to keep proxy user and password in the file.
– Leandro Lopes