Simple Token handler for back-end ruby micro-services.
Include jwt_handler in your application_controller.rb and put links for authorization server and default referer and also name of domain (if needed) into your environment variables(application.yml):
include 'JWThandler'
development:
jwt_referer_link: "http://training.api.oblako.com:3002/api/v1/room/1"
jwt_auth_service_path: "http://auth.oblako.com:3001"
jwt_domain_name: ".oblako.com"
Add this line to your application's Gemfile:
gem 'jwt_handler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jwt_handler
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.