Skip to content

Switch jwt library from 'jwt' to 'PyJWT' #30

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

Merged
merged 1 commit into from
Apr 1, 2025
Merged

Switch jwt library from 'jwt' to 'PyJWT' #30

merged 1 commit into from
Apr 1, 2025

Conversation

gbip
Copy link
Collaborator

@gbip gbip commented Apr 1, 2025

jwt and PyJWT libraries are both incompatible, as their package are both named jwt. A project relying on PyJWT to perform jwt operations will not be able to used django_pyoidc. This MR solves this issues by migrating from jwt to PyJWT as it seems more maintained.

There should be no security impact as JWT decoding is only performed for backchannel logout, and validation is then performed by pyoidc.

@gbip gbip force-pushed the switch_to_pyjwt branch 2 times, most recently from 3901680 to 55bf9e7 Compare April 1, 2025 13:24
@gbip gbip force-pushed the switch_to_pyjwt branch from 55bf9e7 to d1cdb85 Compare April 1, 2025 13:27
@gbip gbip merged commit e4a9603 into main Apr 1, 2025
12 of 13 checks passed
@gbip gbip deleted the switch_to_pyjwt branch April 1, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant