Open OverdueCEO opened 11 months ago
'bytes' object has no attribute 'verify'
usually means that the key was not parsed properly and ended being a JWKOct
(instead of a JWKRSA
or JWKEC
key).
Are you using the OIDC_RP_IDP_SIGN_KEY
parameter ? If you do be sure to provide a proper PEM format, with the header, the 64 char width, the footer and the necessary line feeds, like :
-----BEGIN RSA PUBLIC KEY-----
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-----END RSA PUBLIC KEY-----
It's quite common to loose the line feeds when dealing with envs and settings.
I set all settings that were described in the documentation and no matter what i cannot get past callback. When using HS256 i get
JWS Token verification failed
, when using RS256 i get this:Do I need to downgrade some packages maybe ?