1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 07:11:44 +00:00

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();
}