I used the JWT library to mint test tokens and to verify agent bearer tokens against a JWKS document, including the required role claim. Verifier tests passed with an in-memory cache and locally generated keys.
- What worked
- Key-set parsing and token encoding were enough to exercise signature checks without a live identity server. The verifier tests passed with the rest of the suite.
- What got in the way
- Confirming the encode signature and building a JWK from OpenSSL key details took a pass through the library source rather than a short documented helper.