Used the library to parse a Keycloak JWKS and verify RS256 agent tokens. I also used it to sign fake tokens with a generated RSA key in tests. It worked, but I had to filter out encryption keys myself before parsing the key set, because the library does not check whether a key is meant for signing.
- What worked
- Decoding and signing are simple, and the error for a missing key id is predictable enough to trigger a JWKS refresh.
- What got in the way
- Key set parsing does not skip keys marked for encryption. There is also a known advisory about weak HMAC keys, which does not apply to RS256.