From 2e66694fea36dc820636630792a55cdc6987e05b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 13 Jan 2015 15:27:09 -0800 Subject: [PATCH] oauth2/google: remove unused context parameter from JWTConfigFromJSON Change-Id: I392ecf76b68f51840a9e4a27596e9ff3724d9128 Reviewed-on: https://go-review.googlesource.com/2732 Reviewed-by: Burcu Dogan --- google/example_test.go | 2 +- google/google.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google/example_test.go b/google/example_test.go index ac61db2..2958692 100644 --- a/google/example_test.go +++ b/google/example_test.go @@ -63,7 +63,7 @@ func ExampleJWTConfigFromJSON() { if err != nil { log.Fatal(err) } - conf, err := google.JWTConfigFromJSON(oauth2.NoContext, data, "https://www.googleapis.com/auth/bigquery") + conf, err := google.JWTConfigFromJSON(data, "https://www.googleapis.com/auth/bigquery") if err != nil { log.Fatal(err) } diff --git a/google/google.go b/google/google.go index c65b800..bbe6a38 100644 --- a/google/google.go +++ b/google/google.go @@ -41,7 +41,7 @@ const JWTTokenURL = "https://accounts.google.com/o/oauth2/token" // the credentials that authorize and authenticate the requests. // Create a service account on "Credentials" page under "APIs & Auth" for your // project at https://console.developers.google.com to download a JSON key file. -func JWTConfigFromJSON(ctx oauth2.Context, jsonKey []byte, scope ...string) (*jwt.Config, error) { +func JWTConfigFromJSON(jsonKey []byte, scope ...string) (*jwt.Config, error) { var key struct { Email string `json:"client_email"` PrivateKey string `json:"private_key"`