1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

HTTP signatures spec no longer requires algorithms field (#7525)

Fix #7520
This commit is contained in:
Eugen Rochko 2018-05-17 04:03:28 +02:00 committed by GitHub
parent 6bed372ad2
commit dfb6907e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,9 +107,7 @@ module SignatureVerification
def incompatible_signature?(signature_params) def incompatible_signature?(signature_params)
signature_params['keyId'].blank? || signature_params['keyId'].blank? ||
signature_params['signature'].blank? || signature_params['signature'].blank?
signature_params['algorithm'].blank? ||
signature_params['algorithm'] != 'rsa-sha256'
end end
def account_from_key_id(key_id) def account_from_key_id(key_id)