Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyjwt decode --verify CLI hang #298

Closed
willow2014 opened this issue Oct 12, 2017 · 1 comment · Fixed by #304
Closed

pyjwt decode --verify CLI hang #298

willow2014 opened this issue Oct 12, 2017 · 1 comment · Fixed by #304
Labels

Comments

@willow2014
Copy link

willow2014 commented Oct 12, 2017

$ pyjwt -v
pyjwt 1.5.3

$ pyjwt decode --no-verify eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg
^CTraceback (most recent call last):
File "/usr/local/bin/pyjwt", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/jwt/main.py", line 157, in main
output = arguments.func(arguments)
File "/usr/local/lib/python2.7/dist-packages/jwt/main.py", line 58, in decode_payload
token = sys.stdin.read()

$ pyjwt decode --no-verify eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg
^CTraceback (most recent call last):
File "/Users/v612996/anaconda/bin/pyjwt", line 11, in
sys.exit(main())
File "/Users/v612996/anaconda/lib/python3.6/site-packages/jwt/main.py", line 157, in main
output = arguments.func(arguments)
File "/Users/v612996/anaconda/lib/python3.6/site-packages/jwt/main.py", line 58, in decode_payload
token = sys.stdin.read()
KeyboardInterrupt
$ python --version
Python 3.6.0 :: Anaconda custom (x86_64)

But the same token decoded perfectly under python 2.6 interpreter:

jwt.decode(encoded,verify=False)
{u'some': u'payload'}

What is the work around of "pyjwt decode --no-verify" hang in the CLI?

@jpadilla
Copy link
Owner

jpadilla commented Nov 5, 2017

Will be fixed via #304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants