https://github.com/fusionauth/fusionauth-example-ruby-jwt
Example code manipulating JWTs for Ruby
https://github.com/fusionauth/fusionauth-example-ruby-jwt
fusionauth jwt ruby
Last synced: 9 months ago
JSON representation
Example code manipulating JWTs for Ruby
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-example-ruby-jwt
- Owner: FusionAuth
- License: apache-2.0
- Created: 2020-05-11T20:45:16.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T05:55:42.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T17:38:07.172Z (about 1 year ago)
- Topics: fusionauth, jwt, ruby
- Language: Ruby
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Ruby JWT Examples
This code uses the Ruby JWT gem: https://github.com/jwt/ruby-jwt and runs through a couple of different scenarios.
* building a JWT with the 'none' algorithm
* building a JWT with the 'hmac' algorithm
* building a JWT with the 'rsa' algorithm
* building a JWT with the 'hmac' algorithm but verifying additional claims
* decoding an invalid JWT with the 'hmac' algorithm
## To install
`bundle install`
`ruby `
## Environment
Tested on ruby 2.7.1.
JWTs originally built by [FusionAuth](http://fusionauth.io).