kopia lustrzana https://github.com/jointakahe/takahe
run linter on signature.py change
rodzic
4df0508988
commit
26d90a5745
|
@ -162,7 +162,10 @@ class HttpSignature:
|
|||
# Reject unknown algorithms
|
||||
# hs2019 is used by some libraries to obfuscate the real algorithm per the spec
|
||||
# https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12
|
||||
if signature_details["algorithm"] != "rsa-sha256" and signature_details["algorithm"] != "hs2019":
|
||||
if (
|
||||
signature_details["algorithm"] != "rsa-sha256"
|
||||
and signature_details["algorithm"] != "hs2019"
|
||||
):
|
||||
raise VerificationFormatError("Unknown signature algorithm")
|
||||
# Create the signature payload
|
||||
headers_string = cls.headers_from_request(request, signature_details["headers"])
|
||||
|
|
Ładowanie…
Reference in New Issue