0
I made an application that has the function of backing up to Google Drive, but it does not work when I put in some server, works only in localhost
.
What happens is that it doesn’t open the consent screen on the servers, it follows the code:
var credencial = GoogleWebAuthorizationBroker.AuthorizeAsync(
new ClientSecrets
{
ClientId = clienteID,
ClientSecret = clienteSenha
},
scopes,
NomeUsuario,
CancellationToken.None,
new FileDataStore("C:\\temp\\items/" + empresaAtiva, true)).Result;
var servico = new DriveService(new BaseClientService.Initializer
{
HttpClientInitializer = credencial,
ApplicationName = "items",
});
Take a look here -> http://stackoverflow.com/questions/27573272/googlewebauthorizationbroker-authorizeasync-hangs
– PauloHDSousa