Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to configure credentials using a JSON file (#1424)
* Added property that allows configuration of credentials using a JSON file instead of using the default credentials. This is necessary to support GCP instances where the configured service account cannot be granted the logging.logWriter role. * As requested in review, turned the ToChannelCredentials call into an extension method, split the line that creates the LoggingServiceV2Client into multiple lines to limit its length, and changed the TryGetCredentialFromFile method in a GetCredentialFromFile method that returns null if no file is configured. Change-Id: I02327a980ee7f08cf323d8ab653bdf34ff6278f8 * Switched the credential file loading to use the new GoogleCredential.FromFile() method instead of creating a FileStream. Change-Id: I5a75c6fb2577b42b09c0279d2ac76e19d9ad9d45
- Loading branch information
1 parent
3d8de4d
commit a7dbff3
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters