Keats / jsonwebtoken

JWT lib in rust
MIT License
1.62k stars 252 forks source link

How to deserialize certs endpoint in Keycloak? #306

Closed SamTV12345 closed 1 year ago

SamTV12345 commented 1 year ago

I have the problem that one algorithm in the certs endpoint is not recognized by your library. Could you please give a sample on how to get around this? I am fine with RS256 algorithm I just need to get rid of RSA-OAEP that is also deserialized from serde.

Keats commented 1 year ago

Duplicate of https://github.com/Keats/jsonwebtoken/issues/252

SamTV12345 commented 1 year ago

Found it out on my own. Just create a new model, drop everything that is not RSA256 and then serialize and deserialize it.