mozilla / mozilla-django-oidc

A django OpenID Connect library
https://mozilla-django-oidc.readthedocs.io
Mozilla Public License 2.0
449 stars 168 forks source link

Add support for Elliptic Curve JWT algorithms #506

Closed atanunq closed 10 months ago

atanunq commented 11 months ago

This small patch checks if the algorithm starts with ES and if it does, correctly sets the key value. Fixes #442

Added a test that:

Decided to go for a more complex test case because the django-oidc-provider library referenced in the local development guide does not support ES algorithms. Please let me know if you this that is not okay.

Also tested end-to-end with a locally hosted IdP that has support setting ES256 as the signing algorithm - Authentik

akatsoulas commented 10 months ago

Closing in favor of #513. It's the same PR rebased against main and squashed into a single commit.