From f1d9bd5eabf4d94ad3d9cb8d193cc2f0e4f15ab7 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 6 Feb 2020 10:23:45 -0800 Subject: [PATCH] lib/oauthutil: replace deprecated oauth2.NoContext --- lib/oauthutil/oauthutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.go index a4f5acde8..8a07e1c71 100644 --- a/lib/oauthutil/oauthutil.go +++ b/lib/oauthutil/oauthutil.go @@ -503,7 +503,7 @@ func doConfig(id, name string, m configmap.Mapper, oauthConfig *oauth2.Config, o } // Exchange the code for a token - token, err := oauthConfig.Exchange(oauth2.NoContext, auth.Code) + token, err := oauthConfig.Exchange(context.Background(), auth.Code) if err != nil { return errors.Wrap(err, "failed to get token") }