Closed ftang001 closed 10 months ago
Were you able to get this same thing working with P256? I tried adding self.OIDC_RP_SIGN_ALGO.startswith('PS')
in those same places, but josepy refused to verify the signatures even though the RSA keys stayed the same.
josepy did successfully parse the RSA signing key from the JWKS endpoint, and recognized that the signature was PS256
.
Fixed in v4.0.0
I have been working with a provider that prefers ES256, so did some quick tests to see how hard it would be to extend support in mozilla-django-oidc. As the flow is similar to RS*** and it's supported by josepy, it turns out to be very easy indeed - just 2 lines in auth.py and it seems to work:
Is anyone keen to review / add this?
Thanks.