AzureAD: Fix missing context (#71717)

fix missing context
This commit is contained in:
Jo
2023-07-18 09:48:58 +02:00
committed by GitHub
parent 31d3f7fd83
commit 1d6b9625b8
+1 -1
View File
@@ -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
}