Done
Details
Assignee
Jon ZhangJon ZhangReporter
Jon ZhangJon ZhangFix versions
Priority
Medium
Details
Details
Assignee
Jon Zhang
Jon ZhangReporter
Jon Zhang
Jon ZhangFix versions
Priority
Created June 7, 2024 at 6:41 AM
Updated June 11, 2024 at 7:31 AM
Resolved June 11, 2024 at 7:31 AM
When the verify type is set to "jwt", it met the error like below
2024-06-07 05:55:53,537:[o2common.authmw.authmiddleware]:[authmiddleware.py]-[112] [ERROR]:Internal exception happended Signature has expired Traceback (most recent call last): File "/src/o2common/authmw/authmiddleware.py", line 81, in __call__ ret = ad.authenticate(auth_token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/src/o2common/authmw/authprov.py", line 71, in authenticate return self.obj.authenticate(token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/src/o2common/authmw/authprov.py", line 205, in authenticate return self._verify_jwt_token(token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/src/o2common/authmw/authprov.py", line 188, in _verify_jwt_token raise e File "/src/o2common/authmw/authprov.py", line 179, in _verify_jwt_token decoded_token = jwt_decode(token, public_key_string, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/.venv/lib/python3.11/site-packages/jwt/api_jwt.py", line 168, in decode decoded = self.decode_complete( ^^^^^^^^^^^^^^^^^^^^^ File "/.venv/lib/python3.11/site-packages/jwt/api_jwt.py", line 136, in decode_complete self._validate_claims( File "/.venv/lib/python3.11/site-packages/jwt/api_jwt.py", line 199, in _validate_claims self._validate_exp(payload, now, leeway) File "/.venv/lib/python3.11/site-packages/jwt/api_jwt.py", line 237, in _validate_exp raise ExpiredSignatureError("Signature has expired") jwt.exceptions.ExpiredSignatureError: Signature has expired