Commit Graph

70 Commits

Author SHA1 Message Date
Vincent Prouillet 1a46cfa7c9 Add default feature use_pem 2022-02-02 22:10:11 +01:00
Vincent Prouillet 5ed8af440c Rename set_iss to be in line with set_audience 2022-02-02 22:10:11 +01:00
Vincent Prouillet ebef09e9ab Update CI pinned version 2022-02-02 22:10:11 +01:00
Vincent Prouillet a11106faff Add types for JWK/JWKS based on biscuit (#195)
* Add types for JWK/JWKS based on biscuit

* Address comments

* Fix issues
2022-02-02 22:10:11 +01:00
Saber Haj Rabiee da761fe039 checking iss for multiple values (#173) 2022-02-02 22:10:11 +01:00
Piotr Maks 90b9700748
Clippy (#146)
* Bump minimum required Rust version to 1.40

Motivation for this change is use of `#[non_exhaustive]` attribute that
was stabilized in Rust 1.40.0

* Migrate benchmarks to criterion

Remove use of unstable features in favour of criterion benchmarks

* Enable clippy in Github Actions

* Fix clippy::manual_non_exhaustive

Remove manual implementations of the non-exhaustive pattern. Instead
use the `#[non_exhaustive]` attribute.

* Allow reexport of deprecated function

Silence rustc `deprecated` working in function reexport

* Remove redundant clone

* Fix various clippy warnings

* Remove redundant pattern
* Use `unreachable!()` to fail test
* No need to add `&` to all patterns
2020-08-31 12:04:57 +02:00
Vincent Prouillet a2c259588a Mention utc timestamps 2020-06-30 21:26:50 +02:00
Ivan Solovev 98efa500f9
Fix documentation (#142)
* Fix documentation

* Fix types in documentation
2020-06-30 21:25:41 +02:00
Vincent Prouillet cf6ac78714
Update for 7.1.1 (#134) 2020-06-09 22:00:37 +02:00
Jared De La Cruz 179f72155f Add claims and validation to the readme 2020-02-20 22:56:09 -08:00
Vincent Prouillet b9989d14cf Prepare for release 2020-01-28 18:18:21 -08:00
Vincent Prouillet 77ae0effc8 Add DecodingKey 2019-12-29 21:50:06 +01:00
Vincent Prouillet 0abeeac25f Add EncodingKey 2019-12-29 19:33:17 +01:00
Vincent Prouillet 8d678086eb v7 alpha 1 2019-11-15 20:37:47 +01:00
Vincent Prouillet d550c5f318 Add more tests and document SEC1 lack of support 2019-11-15 20:16:38 +01:00
Vincent Prouillet 6121db3d07 Min version is 1.36? 2019-11-14 20:35:20 +01:00
Vincent Prouillet b35719b555 Point to validation example 2019-11-14 20:32:03 +01:00
Vincent Prouillet 3fe0bc1f83 Update README 2019-11-14 20:24:38 +01:00
Vincent Prouillet 51dacd9bc4 Update docs 2019-11-14 19:43:43 +01:00
Levi 571898252f Add PEM decoding support (#106)
* Add PEM support with pem and simple_asn1. Documentation TODO

* Make pkcs1 and pkcs8 versions of the RSA key, confirm they pass tests.

* Add documentation, simplify

* Update readme

* Bump pem version

* Remove extra print
2019-11-03 12:22:51 +00:00
Vincent Prouillet 6e2f461a1b Fix readme wrt exp validation
Closes #104
2019-10-23 13:44:46 +01:00
Vincent Prouillet 20013a4e4f Fixed conflicts 2019-06-16 18:00:00 +02:00
Vincent Prouillet 84ee604e88 trait -> enum 2019-06-16 17:51:43 +02:00
Kan-Ru Chen c26bdf7e06 Support for RSASSA-PSS signing algorithm
As specified in https://tools.ietf.org/html/rfc7518#section-3.5

- PS256 - RSASSA-PSS using SHA-256 hash algorithm
- PS384 - RSASSA-PSS using SHA-384 hash algorithm
- PS512 - RSASSA-PSS using SHA-512 hash algorithm
2019-06-08 03:08:54 +09:00
Vincent Prouillet 0ccb61eea5 Update some things for v6 2019-03-22 09:40:08 +01:00
Vincent Prouillet be27206088 Remove iat validation, it isnt supposed to be done 2019-02-04 18:44:08 +01:00
Vincent Prouillet ab0ab9b48b Update examples and readme for exp use 2018-10-28 19:54:35 +01:00
Vincent Prouillet e725bea1d2 Update docs for RSA signing/verification 2018-10-15 13:26:03 +02:00
Vincent Prouillet c78574aae4 Remove some commented out code 2018-07-26 09:43:21 +02:00
Chinedu Francis Nwafili 8cea7deda4
Add serde to example Cargo.toml 2017-12-31 09:54:59 -05:00
Christoph Wurst 8bfcebbd0e
Fix jwt::decode documentation in readme
Apparently jwt::decode expects the secret to be a slice. Thus blindly copying the example code from the readme gives a compilation error.
2017-11-25 10:38:43 +01:00
Vincent Prouillet 7907b1cd79 Fix readme 2017-11-14 17:18:25 +01:00
Vincent Prouillet eae3743017 Make it mandatory to specify algorithm 2017-10-22 13:23:46 +02:00
Vincent Prouillet 4a656ffda7 Update README.md 2017-09-08 15:36:52 +09:00
Vincent Prouillet 7e36d3f7bb Update ring and fix leeway docs 2017-08-30 18:09:57 +09:00
Vincent Prouillet 43a20030ee Update docs 2017-08-25 17:54:19 +09:00
Vincent Prouillet 337c539dc2 Update README.md 2017-04-26 16:51:44 +09:00
Vincent Prouillet b5f3d53513 Add docs link 2017-04-23 14:27:19 +09:00
Vincent Prouillet fc9f83b837 No need to pass an algorithm to decode 2017-04-22 15:21:44 +09:00
Mike Engel 56e2f97c3b
Update the readme to suggest serde 1.0 over 0.9 2017-04-21 23:27:27 -06:00
Vincent Prouillet 7ebceb1b4a Add notes about RSA in README 2017-04-14 18:15:06 +09:00
Vincent Prouillet d144227256 Reorganise a bit and add more docs 2017-04-13 16:36:32 +09:00
Vincent Prouillet 3e3c752974 Update README 2017-04-13 10:29:30 +09:00
Vincent Prouillet bdeefe5ed7 Fix bench and docs 2017-04-11 12:58:50 +09:00
Vincent Prouillet 67497950c6 RSA working 2017-04-11 12:41:21 +09:00
Vincent Prouillet e60cb57f0f Release 1.1.7 2017-04-02 15:31:22 +09:00
Vincent Prouillet f9d6d9d685 Release 1.1.6 2017-02-13 14:18:43 +09:00
Vincent Prouillet d423550209 Release v1.1.5 2016-08-24 12:50:32 +01:00
Vincent Prouillet ab2c9210bf Update README.md 2016-08-23 21:32:05 +01:00
Vincent Prouillet a2ec047dc1 Update README.md 2016-08-23 21:31:42 +01:00
Vincent Prouillet b00a28e9c9 Release 1.1.4 2016-08-23 17:46:37 +01:00
Vincent Prouillet ea5506d8d8 Release 1.1.3 2016-04-25 11:34:14 +01:00
Vincent Prouillet 86c0889ae3 Update README.md 2016-04-15 21:36:47 +01:00
Vincent Prouillet f606089806 Release 1.1.2 2016-04-11 12:08:21 +01:00
Vincent Prouillet 92bc6b8dd4 Release 1.1.1 2016-03-29 16:28:57 +01:00
Vincent Prouillet 498fc7eb05 1.1.0 2016-02-29 10:32:13 +00:00
Vincent Prouillet 4ce022fca2 Prepare for 1.0 release 2015-12-22 17:17:53 +00:00
Vincent Prouillet 4163dc0441 Update benchmark 2015-12-22 17:10:33 +00:00
Vincent Prouillet 002f8a8c7f Change order of encode method args + make alg field public 2015-12-21 19:24:13 +00:00
Vincent Prouillet e7d856efb3 Update docs a bit 2015-12-20 00:58:46 +00:00
Vincent Prouillet 35b25f096b Update version number in doc 2015-11-10 16:38:41 +00:00
Vincent Prouillet 620eadefb6 Updated docs 2015-11-08 12:08:44 +00:00
Vincent Prouillet 4c6fa49450 Add a bit about validation 2015-11-03 18:38:41 +00:00
Vincent Prouillet 31d99324e2 Remove useless import + improve readme 2015-11-02 23:32:32 +00:00
Vincent Prouillet e11579c604 Rename to jsonwebtoken 2015-11-02 23:27:28 +00:00
Vincent Prouillet 61bbe889f2 Add sha384 and sha512
Thanks to irc user durka42
2015-11-02 23:09:09 +00:00
Vincent Prouillet b3663e90c6 Uncomment alg comparison 2015-11-02 21:22:21 +00:00
Vincent Prouillet 96acf8f143 Move benches to a folder + add license 2015-11-02 21:15:45 +00:00
Vincent Prouillet 2057a0ac1f Start of README 2015-11-02 21:04:58 +00:00
Vincent Prouillet 7585a7f0f9 Initial commit 2015-10-31 15:37:15 +00:00