Skip to content

Commit

Permalink
Fix typo in when using an API key as access token (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Aug 7, 2023
1 parent b09148a commit 5bfc3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ func setAuthentication(req *http.Request, httpClientsDetails httputils.HttpClien
if httpClientsDetails.AccessToken != "" {
if IsApiKey(httpClientsDetails.AccessToken) {
log.Warn("The provided Access Token is an API key and will be used as a password in username/password authentication.\n" +
"To avoid this message in the future please use it a a password.")
"To avoid this message in the future please use it as a password.")
req.SetBasicAuth(httpClientsDetails.User, httpClientsDetails.AccessToken)
} else {
req.Header.Set("Authorization", "Bearer "+httpClientsDetails.AccessToken)
Expand Down

0 comments on commit 5bfc3aa

Please sign in to comment.