Auth0 Home Blog Docs

A library to retrieve RSA public keys from a JWKS (JSON Web Key Set) endpoint. for Ruby??

jwks
api-keys
key

#1

A library to retrieve RSA public keys from a JWKS (JSON Web Key Set) endpoint. for Ruby??


#2

@eliass_56

First of all, have you looked at the Ruby on Rails Quickstart, which shows how to to this in a Rails app:
https://auth0.com/docs/quickstart/backend/rails/01-authorization

Another option could be to use this gem:
https://github.com/nov/json-jwt

See this particular sample code which appears to download the JWKS from the endpoint:
https://github.com/nov/json-jwt/wiki#decode--verify

The JWKS endpoint for your Auth0 tenant is in the format https://your_auth0_tenant_domain/.well-known/jwks.json

If that particular gem does not work for you see your other options under the “Libraries for Token Signing/Verification” section on this page: https://jwt.io/


#3

Yes, however, for nodejs has this package https://github.com/auth0/node-jwks-rsa who has a request rate limit and cache for best performance


#4