• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H26-Oct-2021-227192

benchmarks/H26-Oct-2021-268221

config/H26-Oct-2021-348327

guides/H26-Oct-2021-781543

lib/H26-Oct-2021-1,4671,152

test/H26-Oct-2021-1,077836

.formatter.exsH A D26-Oct-2021137 65

.gitignoreH A D26-Oct-2021640 3020

CHANGELOG.mdH A D26-Oct-20214.2 KiB12181

README.mdH A D26-Oct-20212.7 KiB6749

coveralls.jsonH A D26-Oct-202153 65

mix.exsH A D03-May-20222.4 KiB10188

mix.lockH A D26-Oct-20216.9 KiB2928

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