-
Notifications
You must be signed in to change notification settings - Fork 17
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
Replace python-jose
with pyjwt
#59
Conversation
As `python-jose` seems to be unmaintained and has multiple vulnerabilities raised against it, I've replaced this with `pyjwt`. The implementation is like-for-like, as `pyjwt` seems to implement most of the methods used from `python-jose` identically. Updated unit test mock paths to new `pyjwt` locations. Updated `requirements.txt` to include `pyjwt` Would resolve okta#54
Create a `PyJWK` object from the `okta_jwk` parameter when verifying the token signature
@bretterer or @bryanapellanes-okta perhaps? For many companies using this library, we need this to be patched for compliance reasons, or we will need to move off of this library. Can we prioritize this security fix? |
Cheers,
Obviously not an ideal solution, and it'll vary depending on your base image, but I've had this running in production this week with no issues. |
Can a maintainer please take a look at this pr? This pr is an absolute requirement for enterprises looking to use Python to integrate with okta. My expectation would be that a project like this would be maintained and kept up to date. |
We went ahead and replaced okta-jwt-verifier with joserfc entirely. |
Sorry for the delay on this PR. I have merged into the main branch and will be releasing a new version to PyPi soon Thank you for the PR! |
hi @bretterer - do you have an ETA for releasing the new version that includes this change? my team is eager for the update to resolve failing vulnerability checks. thanks! |
You can already download 0.2.6 that has the change to remove the My issue is the latest version changed the version range of several other dependencies. Such that if you are using the latest of those dependencies you'll have to revert back to older version of the dependencies, some of which have their own vulnerabilities. So upgrading to 0.2.6 is problematic as well. I created #64 to hopefully address, but the maintainers have disappeared again. I had to have our organization reach out to Okta support to get some attention to the python-jose issue. Might have to do this again. |
As
python-jose
seems to be unmaintained and has multiple vulnerabilities raised against it, I've replaced this withpyjwt
.The implementation is like-for-like, as
pyjwt
seems to implement most of the methods used frompython-jose
identically.Updated unit test mock paths to new
pyjwt
locations.Updated
requirements.txt
to includepyjwt
Haven't been able to run integration tests as I'm not entirely sure how I get an ID token via Postman, but that should run in CI.
Also didn't bump the version, but let me know and I'll update it.
Would resolve #54, #60