include loging, timestamp, and salt in auth header

This commit is contained in:
Tevildo 2024-04-16 21:12:08 +01:00
parent 8e6eff3855
commit 9c8aeffea3
No known key found for this signature in database
GPG key ID: 780413157E8C9E35

View file

@ -53,5 +53,5 @@ func GetAuthHeader(login string, apiKey string, url string, body string) (string
} }
bodyHash := ComputeHash(body) bodyHash := ComputeHash(body)
hash := ComputeHash(fmt.Sprintf("%s;%s;%s;%s;%s;%s", login, timestamp, salt, apiKey, url, bodyHash)) hash := ComputeHash(fmt.Sprintf("%s;%s;%s;%s;%s;%s", login, timestamp, salt, apiKey, url, bodyHash))
return hash, nil return fmt.Sprintf("%s;%s;%s;%s", login, timestamp, salt, hash), nil
} }