Skip to content

Fix id_token generation with EdDSA alg#800

Merged
lepture merged 1 commit intoauthlib:mainfrom
azmeuk:799-create-half-hash
Aug 23, 2025
Merged

Fix id_token generation with EdDSA alg#800
lepture merged 1 commit intoauthlib:mainfrom
azmeuk:799-create-half-hash

Conversation

@azmeuk
Copy link
Member

@azmeuk azmeuk commented Aug 22, 2025

Fixes #799.

This simply adds an exception case to use hashlib.sha512 with EdDSA algorithms, and avoid trying to load the unexisting hashlib.shaDSA.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes

  • No

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

@azmeuk azmeuk requested a review from lepture August 22, 2025 11:09
@azmeuk azmeuk added the bug label Aug 22, 2025
@lepture lepture merged commit 746eb32 into authlib:main Aug 23, 2025
8 checks passed
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.

id_token generation does not work with EdDSA

2 participants