if i create a new driveservice like this:
public void CreateDriveService()
{
string SERVICE_ACCOUNT_EMAIL = "xxxxxxx-xxxxxxxxxxxxxx@developer.gserviceaccount.com";
string SERVICE_ACCOUNT_PKCS12_FILE_PATH = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Application.ExecutablePath), @"xxxxxxxxxxxxxxx-privatekey.p12");
X509Certificate2 certificate = new X509Certificate2(SERVICE_ACCOUNT_PKCS12_FILE_PATH, "notasecret",
X509KeyStorageFlags.Exportable);
var provider = new AssertionFlowClient(GoogleAuthenticationServer.Description, certificate)
{
ServiceAccountId = SERVICE_ACCOUNT_EMAIL,
Scope = DriveService.Scopes.Drive.GetStringValue(),
};
var auth = new OAuth2Authenticator<AssertionFlowClient>(provider, AssertionFlowClient.GetState);
auth.LoadAccessToken();
_service = new DriveService(auth);
}
I get a new driveservice, but if i watch the access token it has 29.05.2014 12:25:11 as AccessTokenExpirationUtc but now it is 29.05.2014 13:25:11! How it is possible??? I already have changed the time zone on google-drive but still same problem....
Thanks in advance