mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-16 18:02:51 +01:00
include loging, timestamp, and salt in auth header
This commit is contained in:
parent
8e6eff3855
commit
9c8aeffea3
1 changed files with 1 additions and 1 deletions
|
|
@ -53,5 +53,5 @@ func GetAuthHeader(login string, apiKey string, url string, body string) (string
|
|||
}
|
||||
bodyHash := ComputeHash(body)
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue