Sha256: 9dfc2e9475d67d15c306f5147df28a46be8f714fb9579cc1fdf9552c03a3efac
Contents?: true
Size: 879 Bytes
Versions: 3
Compression:
Stored size: 879 Bytes
Contents
# DecodeThis [](https://travis-ci.org/myxaluch/decode_this) Simple decoder JWT token by given key ## Installation Add this line to your application's Gemfile: ```ruby gem 'decode_this' ``` And then execute: $ bundle Or install it yourself as: $ gem install decode_this ## Usage Configuration file scheme: ``` test: algorithm: 'RS256' path: 'paht/to/keys' ``` ```ruby payload = { 'field1' => 'foo', 'field2' => 'bar' } jwt_token = JWT.encode(payload, private_token, true, algorithm: algorithm) ... decoded_token = DecodeThis.decode(jwt_token, config_file: '/path/to/config.yml', env: :my_env, logger: logger) token['field1'] = 'foo' token['field2'] = 'bar' ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/myxaluch/decode_this.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
decode_this-0.1.3 | Readme.md |
decode_this-0.1.2 | Readme.md |
decode_this-0.1.1 | Readme.md |