mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-22 10:12:11 +00:00
drop date (#2969)
This commit is contained in:
parent
5dcc954072
commit
131020faeb
|
@ -44,8 +44,8 @@ GoToSocial request signing is implemented in [internal/transport](https://github
|
|||
|
||||
When assembling signatures:
|
||||
|
||||
- outgoing `GET` requests use `(request-target) host date`
|
||||
- outgoing `POST` requests use `(request-target) host date digest`
|
||||
- outgoing `GET` requests use `(request-target) (created) host`
|
||||
- outgoing `POST` requests use `(request-target) (created) host digest`
|
||||
|
||||
GoToSocial sets the "algorithm" field in signatures to the value `hs2019`, which essentially means "derive the algorithm from metadata associated with the keyId". The *actual* algorithm used for generating signatures is `RSA_SHA256`, which is in line with other ActivityPub implementations. When validating a GoToSocial HTTP signature, remote servers can safely assume that the signature is generated using `sha256`.
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
// http signer preferences
|
||||
prefs = []httpsig.Algorithm{httpsig.RSA_SHA256}
|
||||
digestAlgo = httpsig.DigestSha256
|
||||
getHeaders = []string{httpsig.RequestTarget, "host", "date"}
|
||||
postHeaders = []string{httpsig.RequestTarget, "host", "date", "digest"}
|
||||
getHeaders = []string{httpsig.RequestTarget, "(created)", "host"}
|
||||
postHeaders = []string{httpsig.RequestTarget, "(created)", "host", "digest"}
|
||||
)
|
||||
|
||||
// NewGETSigner returns a new httpsig.Signer instance initialized with GTS GET preferences.
|
||||
|
|
Loading…
Reference in a new issue