jwks

Version, currently 0.2.14 versions

github.com/place-labs/jwks

Simple library that validates JWT against RS256 JWKS URI

4 stars
1 dependent
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  jwks:
    github: place-labs/jwks
    version: ~> 0.2.1

Then run:

shards install

shard.yml

Crystal
~> 1.0
License
MIT
Author
Duke Nguyen

Dependencies

Runtime Dependencies

  • jwt*github: crystal-community/jwt
  • tasker*github: spider-gazelle/tasker
  • openssl_ext*github: spider-gazelle/openssl_ext
  • simple_retry*github: spider-gazelle/simple_retry

Development Dependencies

  • ameba*github: veelenga/amebadev
  • webmock*github: manastech/webmock.crdev

README

jwks

Simple library that validates JWT against RS256 JWKS URI

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      jwks:
        github: place-lab/jwks
  2. Run shards install

Usage

require "jwks"

Development

Docker

docker build . -t jwks && docker run jwks

Without Docker

  • You need to have openssl@1.1.1
  • For MacOS users, if Crystal has not installed this for you
brew install openssl@1.1.1

shards install
crystal spec
crystal tool format --check
bin/ameba

Contributing

  1. Fork it (https://github.com/dukeraphaelng/jwks/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors