mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-17 02:12: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)
|
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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue