Browse Source

fix(azure-keyvault): remove incorrect suffix from provider URL (#4136)

Signed-off-by: Igor Beliakov <demtis.register@gmail.com>
Igor Beliakov 1 year ago
parent
commit
96921ee131
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/provider/azure/keyvault/keyvault.go

+ 1 - 1
pkg/provider/azure/keyvault/keyvault.go

@@ -956,7 +956,7 @@ func NewTokenProvider(ctx context.Context, token, clientID, tenantID, aadEndpoin
 	cred := confidential.NewCredFromAssertionCallback(func(ctx context.Context, aro confidential.AssertionRequestOptions) (string, error) {
 	cred := confidential.NewCredFromAssertionCallback(func(ctx context.Context, aro confidential.AssertionRequestOptions) (string, error) {
 		return token, nil
 		return token, nil
 	})
 	})
-	cClient, err := confidential.New(fmt.Sprintf("%s%s/oauth2/token", aadEndpoint, tenantID), clientID, cred)
+	cClient, err := confidential.New(fmt.Sprintf("%s%s", aadEndpoint, tenantID), clientID, cred)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}