oauth2/google
Jonathan Amsterdam 7af32f14d0 google: add CredentialsFromJSON
Support obtaining a DefaultCredentials value from JSON data.

Also, add an example, and write more package doc.

For Go 1.9 and higher, rename DefaultCredentials to
Credentials and make the former an alias for the latter.

Updates google/google-api-go-client#247.

Change-Id: I9f9e234ed79f8e08fa13914d9c6c60e0154a06e5
Reviewed-on: https://go-review.googlesource.com/99795
Reviewed-by: Ross Light <light@google.com>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-12 23:58:49 +00:00
..
testdata/gcloud oauth2/google: fix decode error in Cloud SDK config 2015-02-12 05:35:05 +00:00
appengine.go google: remove code duplication, note appenginevm case 2017-03-02 20:00:26 +00:00
appengine_hook.go google: remove code duplication, note appenginevm case 2017-03-02 20:00:26 +00:00
appengineflex_hook.go google: remove code duplication, note appenginevm case 2017-03-02 20:00:26 +00:00
default.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
doc_go19.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
doc_not_go19.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
example_test.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
go19.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
google.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
google_test.go google: make JWTConfigFromJSON set TokenURL from the JSON's token_uri 2016-09-02 05:03:02 +00:00
jwt.go google: support key ID in JWTAccessTokenSourceFromJSON 2016-07-02 01:08:09 +00:00
jwt_test.go google: fix warnings from go vet 2016-07-19 16:36:24 +00:00
not_go19.go google: add CredentialsFromJSON 2018-03-12 23:58:49 +00:00
sdk.go internal: move ParseINI into google 2018-01-02 15:01:02 +00:00
sdk_test.go internal: move ParseINI into google 2018-01-02 15:01:02 +00:00