We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69c6e7c commit 64cff8aCopy full SHA for 64cff8a
1 file changed
agrirouter/auth/response.py
@@ -48,6 +48,7 @@ def verify(self, public_key) -> None:
48
unquoted_signature = unquote(self.signature)
49
encoded_signature = base64.b64decode(unquoted_signature.encode("utf-8"))
50
51
+ self._is_valid = True
52
try:
53
verify_signature(encoded_data, encoded_signature, public_key)
54
except InvalidSignature:
@@ -56,7 +57,6 @@ def verify(self, public_key) -> None:
56
57
finally:
58
self._was_verified = True
59
- self._is_valid = True
60
61
@staticmethod
62
def decode_token(token: Union[str, bytes]) -> AuthorizationToken:
0 commit comments