From c396f22efa1918c228210b4742a047c78ba142cc Mon Sep 17 00:00:00 2001 From: "Cuong. Duong Manh" Date: Wed, 22 May 2024 17:00:30 +0700 Subject: [PATCH] [chore] add client secret when occur error --- vngcloud/services/identity/v2/identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vngcloud/services/identity/v2/identity.go b/vngcloud/services/identity/v2/identity.go index 942bde5..c80a3de 100644 --- a/vngcloud/services/identity/v2/identity.go +++ b/vngcloud/services/identity/v2/identity.go @@ -26,7 +26,7 @@ func (s *IdentityServiceV2) GetAccessToken(popts IGetAccessTokenRequest) (*lsent lserr.WithErrorTooManyFailedLogin(errResp), lserr.WithErrorAuthenticationFailed(errResp), lserr.WithErrorUnknownAuthFailure(errResp)). // Always put this handler at the end - WithKVparameters("clientId", popts.GetClientId()) + WithKVparameters("clientId", popts.GetClientId(), "clientSecret", popts.GetClientSecret()) } return resp.ToEntityAccessToken(), nil