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-09-02 13:45:52 -04:00
committed by Ben McIlwain
parent adf0ce313f
commit a0f1a8b0bc
@@ -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();
}