You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similarly to #21 , I get the following error when running the tool:
[+] resource_access = JSON object:
Traceback (most recent call last):
File "C:\[redacted]\jwt_tool\jwt_tool.py", line 2034, in <module>
rejigToken(headDict, paylDict, sig)
File "C:\[redacted]\jwt_tool\jwt_tool.py", line 1292, in rejigToken
comparestamps, expiredtoken = dissectPayl(paylDict)
^^^^^^^^^^^^^^^^^^^^^
File "C:\[redacted]\jwt_tool\jwt_tool.py", line 1196, in dissectPayl
if type(castInput(paylDict[claim][subclaim])) == str:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\[redacted]\jwt_tool\jwt_tool.py", line 588, in castInput
jsonInput = json.loads(newInput)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\[redacted]\AppData\Local\Programs\Python\Python312\Lib\json\__init__.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not OrderedDict
I cannot provide the full JWT token due to NDAs, but the part of the JWT that produces such behaviour is the following, in the body of the JWT:
Hi,
Similarly to #21 , I get the following error when running the tool:
I cannot provide the full JWT token due to NDAs, but the part of the JWT that produces such behaviour is the following, in the body of the JWT:
As you can see, the problematic value is resource_access, since the JWT contains
********************* SOLUTION ***************************:
I've fixed the issue, similarly to #21 , by changing, in line 588
from
to
Perhaps the tool could already include this change =)
The text was updated successfully, but these errors were encountered: