Closed draco2003 closed 4 years ago
Can you check what version you are running? The latest version (v2.0.1) seems to perform these actions fine for me.
Without your original token it's hard to be sure, but I mocked up a token that matches your payload claims and tested that.
$ python3 jwt_tool.py eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGF0dXMiOiJzdWNjZXNzIiwiZGF0YSI6eyJpZCI6dHJ1ZSwidXNlcm5hbWUiOiIifX0.oRdM7Mk90vDkY23hKily8FrY3HahEI3gwl-uiRW56Ks -T
If you are on the latest version please share your token and I can debug further.
Running Version 2.0.1
Example token:
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdGF0dXMiOiJzdWNjZXNzIiwiZGF0YSI6eyJpZCI6MSwidXNlcm5hbWUiOiJ5b3lveW8iLCJlbWFpbCI6ImFkbWluQGp1aWNlLXNoLm9wIiwicGFzc3dvcmQiOiIwMTkyMDIzYTdiYmQ3MzI1MDUxNmYwNjlkZjE4YjUwMCIsInJvbGUiOiJhZG1pbiIsImRlbHV4ZVRva2VuIjoiIiwibGFzdExvZ2luSXAiOiJ1bmRlZmluZWQiLCJwcm9maWxlSW1hZ2UiOiJhc3NldHMvcHVibGljL2ltYWdlcy91cGxvYWRzL2RlZmF1bHQuc3ZnIiwidG90cFNlY3JldCI6IiIsImlzQWN0aXZlIjp0cnVlLCJjcmVhdGVkQXQiOiIyMDIwLTEwLTI3VDE1OjE5OjI2Ljc3OVoiLCJ1cGRhdGVkQXQiOiIyMDIwLTEwLTI3VDE5OjM5OjAwLjQ3MloiLCJkZWxldGVkQXQiOm51bGx9LCJpYXQiOjE2MDM4Mjc1NDAsImV4cCI6MTYwMzg0NTU0MH0.b7icBjhcYFYXdsTo0JoD7QStjnIKgQUWzhYxii7sife6EHPvd3FPtm-9heh3ovSnZBFoAbdExWMz88Wa-I_sVBQx2tHeD0qxg4IR2KBXcZBo3O96se12aiUwtyr3JT0pTJsC3_ekgU7_qxO2as6AiH0dXJotNUHZYzMu4W2pT7o
Don't worry it's not "real data" in the token, in case it looks scary with passwords, etc...
This should now be fixed in v2.0.2.
Let me know if the problem remains.
Works like a champ now. Thanks for the fix and great tool.
Selecting to modify the second element with an intention to modify the username causes an error
Results in: