From 1d6b9625b8253667d672ac66c2af635b3b8862ce Mon Sep 17 00:00:00 2001 From: Jo Date: Tue, 18 Jul 2023 09:48:58 +0200 Subject: [PATCH] AzureAD: Fix missing context (#71717) fix missing context --- pkg/login/social/azuread_jwks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/login/social/azuread_jwks.go b/pkg/login/social/azuread_jwks.go index e758fbb6541..74113a84271 100644 --- a/pkg/login/social/azuread_jwks.go +++ b/pkg/login/social/azuread_jwks.go @@ -56,7 +56,7 @@ func (s *SocialAzureAD) cacheJWKS(ctx context.Context, jwks *keySetJWKS, cacheEx func (s *SocialAzureAD) retrieveGeneralJWKS(ctx context.Context, client *http.Client, authURL string) (*keySetJWKS, time.Duration, error) { keysetURL := strings.Replace(authURL, "/oauth2/v2.0/authorize", "/discovery/v2.0/keys", 1) - resp, err := s.httpGet(context.Background(), client, keysetURL) + resp, err := s.httpGet(ctx, client, keysetURL) if err != nil { return nil, 0, err }