FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Ability to inline JSON into GOOGLE_APPLICATION_CREDENTIALS · Issue #828 · googleapis/google-cloud-java · GitHub

Ability to inline JSON into GOOGLE_APPLICATION_CREDENTIALS #828

Description

Some CI systems don't really give you the option to have files. Since we're not sure yet if it would be a good idea to allow the user to configure the default instance of CloudStorageFileSystemProvider with a Storage object that has custom authentication, it would be really nice if the environment variable provided greater flexibility.

I propose that, if the GOOGLE_APPLICATION_CREDENTIALS environment has a value that:

  1. Starts with ^\s*\{
  2. Is valid JSON

Then it will be treated as though it's the contents of the key file, rather than a filename.

@aozarov @jean-philippe-martin

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL