Skip to content

fix: Add support for EdDSA and other algorithms in jwt.algorithms.requires_cryptography (#822)#823

Merged
Andrew-Chen-Wang merged 1 commit intojazzband:masterfrom
fossy-dude:master
Jan 2, 2025
Merged

fix: Add support for EdDSA and other algorithms in jwt.algorithms.requires_cryptography (#822)#823
Andrew-Chen-Wang merged 1 commit intojazzband:masterfrom
fossy-dude:master

Conversation

@fossy-dude
Copy link
Copy Markdown
Contributor

Related issue: #822

I have extended the list of ALLOWED_ALGORITHMS to include a few missing algorithms like {'ES256K', 'ES521', 'EdDSA', 'PS256', 'PS384', 'PS512'}

@Andrew-Chen-Wang
Copy link
Copy Markdown
Member

@fossy-dude You can monkeypatch by doing

from simplejwt import backends
backends.ALLOWED_ALGORITHMS.add({"SET", "OF", "NEW", "ALGOS"})

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.

Algorithms like "EdDSA" requiring cryptography are failing with an "Unrecognised algorithm type" error

2 participants