Delete redundant checks in verifiesSignature()

This commit is contained in:
jorgectf
2021-11-16 15:08:18 +01:00
parent 3fe2a08376
commit 9ad8a85f4d
2 changed files with 0 additions and 5 deletions

View File

@@ -86,8 +86,6 @@ private module PyJWT {
}
override predicate verifiesSignature() {
this.hasNoVerifyArgumentOrOptions()
or
not this.hasVerifySetToFalse() and
not this.hasVerifySignatureSetToFalse()
}

View File

@@ -87,9 +87,6 @@ private module PythonJose {
}
override predicate verifiesSignature() {
// jwt.decode(token, "key", "HS256")
this.hasNoOptions()
or
// jwt.decode(token, key, options={"verify_signature": False})
not this.hasVerifySignatureSetToFalse()
}