Copy two more fields when building delegated admin GoogleCredential

The absence of the service account scopes was causing a NullPointerException
when the Google groups syncing action was running.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131870610
This commit is contained in:
mcilwain 2016-08-31 14:05:36 -07:00 committed by Ben McIlwain
parent adf0ce313f
commit a0f1a8b0bc

View file

@ -224,6 +224,8 @@ public final class Modules {
.setJsonFactory(googleCredential.getJsonFactory())
.setServiceAccountId(googleCredential.getServiceAccountId())
.setServiceAccountPrivateKey(googleCredential.getServiceAccountPrivateKey())
.setServiceAccountProjectId(googleCredential.getServiceAccountProjectId())
.setServiceAccountScopes(googleCredential.getServiceAccountScopes())
.setServiceAccountUser(googleAppsAdminEmailAddress)
.build();
}