{"id":18797099,"url":"https://github.com/droidsonroids/auth0_rs256_jwt_verifier","last_synced_at":"2025-10-06T02:18:06.775Z","repository":{"id":62553743,"uuid":"100792981","full_name":"DroidsOnRoids/auth0_rs256_jwt_verifier","owner":"DroidsOnRoids","description":"Ruby gem for verifying Auth0 API JWT access tokens signed using RS256 algorithm.","archived":false,"fork":false,"pushed_at":"2019-08-21T09:13:09.000Z","size":25,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-27T02:01:13.389Z","etag":null,"topics":["auth","auth0","authentication","jwkset","jwt","openssl","rs232","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/auth0_rs256_jwt_verifier","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DroidsOnRoids.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-19T12:31:17.000Z","updated_at":"2020-10-23T17:08:59.000Z","dependencies_parsed_at":"2022-11-03T04:45:34.536Z","dependency_job_id":null,"html_url":"https://github.com/DroidsOnRoids/auth0_rs256_jwt_verifier","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidsOnRoids%2Fauth0_rs256_jwt_verifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidsOnRoids%2Fauth0_rs256_jwt_verifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidsOnRoids%2Fauth0_rs256_jwt_verifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidsOnRoids%2Fauth0_rs256_jwt_verifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DroidsOnRoids","download_url":"https://codeload.github.com/DroidsOnRoids/auth0_rs256_jwt_verifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248743849,"owners_count":21154752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","auth0","authentication","jwkset","jwt","openssl","rs232","ruby"],"created_at":"2024-11-07T22:07:06.727Z","updated_at":"2025-10-06T02:18:01.743Z","avatar_url":"https://github.com/DroidsOnRoids.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/DroidsOnRoids/auth0_rs256_jwt_verifier.svg?branch=master)](https://travis-ci.org/DroidsOnRoids/auth0_rs256_jwt_verifier)\n\n# Auth0 JWT (RS256) verification library \n[Auth0](https://auth0.com) is web service handling users identities which can be easily plugged\ninto your application. It provides [SDKs](https://auth0.com/docs) for many languages which enable you to sign up/in users\nand returns access token ([JWT](https://jwt.io)) in exchange. Access token can be used then to access your's Web Service.\nThis gem helps you to [verify](https://auth0.com/docs/api-auth/tutorials/verify-access-token#verify-the-signature)\nsuch access token which has been signed using the RS256 algorithm.\n\n## Installation\nInstall the `auth0_rs256_jwt_verifier` package from [Rubygems](https://rubygems.org/gems/auth0_rs256_jwt_verifier):\n\n```bash\n    gem install auth0_rs256_jwt_verifier \n```\n\nInstall it using [Bundler](https://bundler.io/) specifying it as dependency in your Gemfile:\n\n```ruby\n    gem \"auth0_rs256_jwt_verifier\"\n```\n\n## Usage\n\n```ruby\n# Verifier caches RS256 certificates fetched from jwks_uri.\n# You should initialize it once and reuse for JWTs verification.\n\nrequire \"auth0_rs256_jwt_verifier\"\n\nAUTH0_JWT_VERIFIER = Auth0RS256JWTVerifier.new(\n  issuer:   \"ISSUER\",\n  audience: \"AUDIENCE\",\n  jwks_url: \"https://YOUR_AUTH0_DOMAIN/.well-known/jwks.json\"\n)\n\nresult = AUTH0_JWT_VERIFIER.verify(\"JWT_ACCESS_TOKEN_SIGNED_USING_RS256_ALGORITHM\")\nif result.valid?\n  p \"Token is valid\"\n  p \"User id: #{result.user_id}\"\nelse\n  p \"Token is invalid\"\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidsonroids%2Fauth0_rs256_jwt_verifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroidsonroids%2Fauth0_rs256_jwt_verifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidsonroids%2Fauth0_rs256_jwt_verifier/lists"}