Skip to content

Commit

Permalink
[chore] add client secret when occur error
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed May 22, 2024
1 parent 7e32f36 commit c396f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vngcloud/services/identity/v2/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c396f22

Please sign in to comment.