Open michaelschem opened 1 year ago
I also using RS256. I got this error when using "OIDC_RP_IDP_SIGN_KEY". So i commented out it in favor of "OIDC_OP_JWKS_ENDPOINT" to get it works fine. It is important to commented out "OIDC_RP_IDP_SIGN_KEY" beacuse it has precendece on "OIDC_OP_JWKS_ENDPOINT".
I have no idea why "OIDC_RP_IDP_SIGN_KEY" cause exception, but seems to be related to how mozilla-django-oidc pass "key" argument to josepy library.
I'm usin Keycloak, on okta you could see at following link probably: https://developer.okta.com/docs/reference/api/apps/#list-json-web-keys
I'm using following versions: Django==4.2.3 mozilla-django-oidc==3.0.0 josepy==1.13.0
I'm having the same error with Auth0 and using OIDC_RP_IDP_SIGN_KEY
Ditto. Thanks @sixsax for the workaround.
The ̀OIDC_RP_IDP_SIGN_KEY
is meant to contain a public key, not an URL to the key endpoint of your provider.
You get this 'bytes' object has no attribute 'verify'
error because the URL cannot be parsed into a proper public key and defaults to a byte-like key (a bit more context here : https://github.com/mozilla/mozilla-django-oidc/issues/505#issuecomment-2257988592)
I believe I've got everything setup correctly, but I get the error:
Configurations: