-
Notifications
You must be signed in to change notification settings - Fork 238
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
jwk construct with hs256 returns 'k' as binary #137
Labels
Comments
This is indeed a bug. |
Is there any way that I can help to solve this? I don't know much about this topic but two possible solutions would be i) change the |
zejn
pushed a commit
to zejn/python-jose
that referenced
this issue
Apr 14, 2019
The first option:
makes the most sense to me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if this is expected behavior or a minor bug, but when
jwk.construct
is used and the jwk is converted to a dict using.to_dict
, the 'k' attribute is returned as a binary string. This is not an issue until the dict is used to decode a JWT and an AttributeError is raised because 'k' does not have aencode
method ('bytes' object has no attribute 'encode'). To reproduce:The text was updated successfully, but these errors were encountered: