Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 26-Oct-2021 | - | 227 | 192 | |
benchmarks/ | H | 26-Oct-2021 | - | 268 | 221 | |
config/ | H | 26-Oct-2021 | - | 348 | 327 | |
guides/ | H | 26-Oct-2021 | - | 781 | 543 | |
lib/ | H | 26-Oct-2021 | - | 1,467 | 1,152 | |
test/ | H | 26-Oct-2021 | - | 1,077 | 836 | |
.formatter.exs | H A D | 26-Oct-2021 | 137 | 6 | 5 | |
.gitignore | H A D | 26-Oct-2021 | 640 | 30 | 20 | |
CHANGELOG.md | H A D | 26-Oct-2021 | 4.2 KiB | 121 | 81 | |
README.md | H A D | 26-Oct-2021 | 2.7 KiB | 67 | 49 | |
coveralls.json | H A D | 26-Oct-2021 | 53 | 6 | 5 | |
mix.exs | H A D | 03-May-2022 | 2.4 KiB | 101 | 88 | |
mix.lock | H A D | 26-Oct-2021 | 6.9 KiB | 29 | 28 |
README.md
1# Joken 2 3[![Build](https://travis-ci.org/joken-elixir/joken.svg?branch=master)](https://travis-ci.org/joken-elixir/joken) 4[![Module Version](https://img.shields.io/hexpm/v/joken.svg)](https://hex.pm/packages/joken) 5[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/joken/) 6[![Total Download](https://img.shields.io/hexpm/dt/joken.svg)](https://hex.pm/packages/joken) 7[![License](https://img.shields.io/hexpm/l/joken.svg)](https://github.com/joken-elixir/joken/blob/master/LICENSE) 8[![Last Updated](https://img.shields.io/github/last-commit/joken-elixir/joken.svg)](https://github.com/joken-elixir/joken/commits/master) 9 10A JSON Web Token (JWT) Library. 11 12Please, do read our comprehensive documentation and guides: 13 14- [Changelog](https://hexdocs.pm/joken/changelog.html) 15- [Joken Overview](https://hexdocs.pm/joken/introduction.html) 16- [Configuration](https://hexdocs.pm/joken/configuration.html) 17- [Signers](https://hexdocs.pm/joken/signers.html) 18- [Asymmetric cryptography signers](https://hexdocs.pm/joken/asymmetric_cryptography_signers.html) 19- [Testing your app with Joken](https://hexdocs.pm/joken/testing.html) 20- [JWT Common use cases](https://hexdocs.pm/joken/common_use_cases.html) 21- [Migrating from Joken 1.0](https://hexdocs.pm/joken/migration_from_1.html) 22- [Custom header arguments](https://hexdocs.pm/joken/custom_header_arguments.html) 23 24## Usage 25 26Add `:joken` to your list of dependencies in `mix.exs`: 27 28``` elixir 29def deps do 30 # .. other deps 31 {:joken, "~> 2.4"}, 32 # Recommended JSON library 33 {:jason, "~> 1.2"} 34end 35``` 36 37All set! (don't forget to take a look at our comprehensive [documentation and guides](https://hexdocs.pm/joken/introduction.html)!) 38 39## Benchmarking 40 41Just run the benchmark script based on the supported algorithm: 42 43``` shell 44mix run benchmarks/hs_benchmark.exs 45mix run benchmarks/jose_hs_benchmark.exs 46mix run benchmarks/pem_rs_benchmark.exs 47mix run benchmarks/rs_benchmark.exs 48``` 49 50## License 51 52Copyright (c) 2014 Bryan Joseph 53 54Licensed under the Apache License, Version 2.0 (the "License"); 55you may not use this file except in compliance with the License. 56You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) 57 58Unless required by applicable law or agreed to in writing, software 59distributed under the License is distributed on an "AS IS" BASIS, 60WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 61See the License for the specific language governing permissions and 62limitations under the License. 63 64## Disclaimer 65 66This library would not be possible without the work of @potatosalad (Andrew Bennet). Specifically his library [erlang-jose](https://github.com/potatosalad/erlang-jose/). 67