Currently the implementation does not verify that a 200 response is received
before attempting to parse the JSON response.
This PR updates the behaviour to fail with an authorization error, similar to
how other auth library implementations.
- if the ServiceAccountCredentials#apply is called when the scope is not set,
authentication with the equivalent ServiceAccountJwtHeaderCredentials instance
is attempted.
- supports two initial scenarios
- 2LO with service accounts
- Compute Engine
- performs all 3 'sniffs' for the service account credentials
- from environment
- from a well known file
- from GCE
- adds no new functionality beyond the initial attempt at providing
Usable Auth constructors.
- adds enough packaging metadata to be able to export this library as a gem.
- next steps:
complete usable auth implemntation of Application Default Credentials.