An open API service indexing awesome lists of open source software.

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

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).