]> cat aescling's git repositories - mastodon.git/commit
Tweak signature verification (#15069)
authorThibG <thib@sitedethib.com>
Sun, 1 Nov 2020 22:38:31 +0000 (23:38 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 22:38:31 +0000 (23:38 +0100)
commitfa929d8b81002c95f729517d3ce3985f090c5980
tree5de28d5bee342617d44482597c022062d9f17699
parent9d023ed4f6d8a69699d14479d5e12132ea4f4cd2
Tweak signature verification (#15069)

* Add more specific error message when request body digest is invalid

This may help other implementors debug their implementation.

* Relax Host parameter requirement to GET requests

The only POST requests processed by Mastodon need objects/actors (including
their host) to be explicitly mentioned in the request's body, so replaying
a legitimate request to another host should not be a security issue.

* Support Digest headers using multiple algorithms or lowercase alogirthm names
app/controllers/concerns/signature_verification.rb