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

EdDSA fails to decrypt JWTs #667

Open
Arzumify opened this issue Aug 5, 2024 · 2 comments
Open

EdDSA fails to decrypt JWTs #667

Arzumify opened this issue Aug 5, 2024 · 2 comments
Assignees
Labels

Comments

@Arzumify
Copy link

Arzumify commented Aug 5, 2024

Describe the bug

No matter which key format I use, I cannot use EdDSA to decode JWTs.

Error Stacks

ValueError: ('Could not deserialize key data. The data may be in an incorrect format, the provided password may be incorrect, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [<OpenSSLError(code=503841036, lib=60, reason=524556, reason_text=unsupported)>])

To Reproduce

Generate a JWT key using EdDSA and then attempt to decode it

Expected behavior

The key to decode

Environment:

  • OS: Fedora Linux 40 x86_64
  • Python Version: Python 3.12.4
  • Authlib Version: 1.3.1

Additional context

It seems to work fine in JoseRFC, but many projects still rely on authlib and both should still work.

@lepture
Copy link
Owner

lepture commented Oct 11, 2024

Did https://jose.authlib.org/en/ work for you?

@Arzumify
Copy link
Author

Did https://jose.authlib.org/en/ work for you?

Yes

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

No branches or pull requests

2 participants