Commit Graph

307 Commits

Author SHA1 Message Date
Vincent Prouillet 323eb37b34 Merge pull request #34 from mike-engel/master
Make the `TokenData` struct public
2017-07-03 11:36:06 +09:00
Mike Engel 5758c0008c
Make the `TokenData` struct public 2017-07-02 15:49:14 -06:00
Vincent Prouillet ff6e8a3490 Update changelog and base64 2017-06-24 15:18:07 +09:00
Jacob Chang 8b4228cba1 Update dependencies (#33)
* Update ring to 0.11.0

* Update chrono to 0.4

* Bump to version 2.0.2
2017-06-24 15:15:45 +09:00
Vincent Prouillet 0faa2419d6 Merge pull request #32 from Kerollmops/doc
Correct markdown visual errors
2017-06-13 19:03:18 +09:00
Vincent Prouillet e86f7c26b3 Merge pull request #31 from Kerollmops/master
Better usage of the Default Trait
2017-06-13 18:12:18 +09:00
Clement RENAULT e5f518a860 doc: Correct markdown visual errors 2017-06-13 10:51:10 +02:00
Clement RENAULT eda92188c9 default: Better usage of the default Trait 2017-06-13 10:25:21 +02:00
Vincent Prouillet 1becc239e4 Update changelog 2017-05-09 15:49:39 +09:00
Vincent Prouillet b6aa457bd6 Merge pull request #30 from briansmith/update-ring
Update *ring* to 0.9.4.
2017-05-09 15:41:43 +09:00
Brian Smith 610a2cbfdb Bump version to 2.0.1. 2017-05-08 18:38:19 -10:00
Brian Smith 58899486bc Update to *ring* 0.9.4. 2017-05-08 18:37:56 -10: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 8c492f1413 Update base64 crate 2017-04-23 14:16:38 +09:00
Vincent Prouillet 07b6ee2a19 Remove unused import 2017-04-23 13:29:07 +09:00
Vincent Prouillet bed07c3488 Merge pull request #29 from Keats/decode
No need to pass an algorithm to decode
2017-04-22 23:55:36 +09:00
Vincent Prouillet fc9f83b837 No need to pass an algorithm to decode 2017-04-22 15:21:44 +09:00
Vincent Prouillet d8439b1053 Merge pull request #28 from mike-engel/serde-1.0
Update Serde to 1.0
2017-04-22 15:01:02 +09:00
Mike Engel cbd9b236da
Remove trait from `TokenData` struct 2017-04-21 23:41:25 -06:00
Mike Engel 56e2f97c3b
Update the readme to suggest serde 1.0 over 0.9 2017-04-21 23:27:27 -06:00
Mike Engel 0932f14bc2
Migrate `Deserialize` trait to `DeserializeOwned` for Serde 1.0 2017-04-21 23:21:04 -06:00
Mike Engel ca59ac1f02
Update serde, serde_json, and serde_derive to 1.0 2017-04-21 15:16:52 -06:00
Vincent Prouillet d343e9c8b6 V2 Beta 1 2017-04-20 12:33:33 +09:00
Vincent Prouillet b1b2094cbe Merge pull request #23 from Keats/v2
V2
2017-04-20 12:32:23 +09:00
Vincent Prouillet 57c513c757 Actually take a ref to Validation
Seems like I updated the docs but not the code...
2017-04-14 20:32:40 +09:00
Vincent Prouillet 64ad3187eb Cleanup crypto nesting and remove error-chain default features 2017-04-14 20:23:28 +09: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 35fd9d63cc Add some docs 2017-04-13 10:08:07 +09:00
Vincent Prouillet 50d676865f Add test for decode without validating signature 2017-04-12 18:03:28 +09:00
Vincent Prouillet 410499e6b6 Add validation 2017-04-12 17:51:05 +09:00
Vincent Prouillet bdeefe5ed7 Fix bench and docs 2017-04-11 12:58:50 +09:00
Vincent Prouillet c244e835e0 Take ref to Header, not by value 2017-04-11 12:54:32 +09:00
Vincent Prouillet 67497950c6 RSA working 2017-04-11 12:41:21 +09:00
Vincent Prouillet f7d0a7a002 Work on RSA 2017-04-11 12:40:55 +09:00
Vincent Prouillet e3a4294e85 Move to serde + base64
Remove Part trait
Move tests to tests directory
Reorganise code
2017-04-11 12:40:40 +09:00
Vincent Prouillet e60cb57f0f Release 1.1.7 2017-04-02 15:31:22 +09:00
Vincent Prouillet adea68b8c9 Merge pull request #26 from celaus/master
updated ring dependency to 0.7
2017-04-02 15:32:20 +09:00
Claus Matzinger 8de24e2a63
updated ring dependency to 0.7 2017-04-01 21:02:08 +02:00
Vincent Prouillet f9d6d9d685 Release 1.1.6 2017-02-13 14:18:43 +09:00
Vincent Prouillet 634d75e8fa to_owned -> to_string 2016-12-26 13:24:18 +09:00
Vincent Prouillet e715eb4930 Fix example 2016-12-26 13:20:18 +09:00
Vincent Prouillet 75ce72e4ce Update ring 2016-12-26 13:19:15 +09:00
Vincent Prouillet c55e4770c0 Update ring 2016-10-11 16:13:21 +02:00
Vincent Prouillet d423550209 Release v1.1.5 2016-08-24 12:50:32 +01:00
Vincent Prouillet 2ba03d6f06 Update ring to 0.3 2016-08-24 12:49:07 +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 257218bc14 Remove silly match 2016-08-23 18:03:33 +01:00
Vincent Prouillet b00a28e9c9 Release 1.1.4 2016-08-23 17:46:37 +01:00
Vincent Prouillet 1fdd84f0ec Merge pull request #16 from Keats/ring
rust-crypto -> ring
2016-08-23 17:43:28 +01:00
Vincent Prouillet 3f986f54a8 rust-crypto -> ring 2016-08-23 17:39:18 +01:00
Vincent Prouillet ea5506d8d8 Release 1.1.3 2016-04-25 11:34:14 +01:00
Vincent Prouillet 0f3b26c27f Merge pull request #12 from passcod/patch-1
Expose sign() and verify()
2016-04-25 11:12:14 +01:00
Félix Saparelli 1b7ec1057a Expose sign() and verify() 2016-04-24 19:18:26 +12: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 9b622d873e Merge pull request #11 from WartsWerdna/more-tests
More tests
2016-04-02 12:33:02 +01:00
Warts Werdna 6d50f5bcd1 test if header.alg matches algorithm passed to decode() 2016-04-02 12:44:34 +02:00
Warts Werdna 58b617bbcb add a test for completely normal decoding 2016-04-02 12:44:34 +02:00
Vincent Prouillet 92bc6b8dd4 Release 1.1.1 2016-03-29 16:28:57 +01:00
Vincent Prouillet 60b511a97a Print token on claims example 2016-03-23 13:27:46 +00:00
Vincent Prouillet 529c523d6d Merge pull request #10 from WartsWerdna/do-not-serialize-none
custom json encoder omits None when serializing
2016-03-23 13:27:12 +00:00
Warts Werdna 412ed97389 custom json encoder omits None when serializing 2016-03-19 20:21:11 +01:00
Vincent Prouillet 498fc7eb05 1.1.0 2016-02-29 10:32:13 +00:00
Vincent Prouillet c49ccb02a1 Update clippy 2016-02-29 10:26:36 +00:00
Vincent Prouillet 1b8bc3395a Merge branch 'master' of github.com:Keats/rust-jwt 2016-02-29 10:19:56 +00:00
Vincent Prouillet 22f89ddac5 Merge pull request #8 from jonfk/master
Implemented std::error::Error for jwt::errors::Error
2016-02-29 10:19:39 +00:00
Jonathan Fok kan 438d264fa9 Implemented std::error::Error for jwt::errors::Error 2016-02-28 12:30:39 -05:00
Vincent Prouillet 7d1b17e877 Update description and clippy version 2016-01-07 14:01:07 +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 0ea17b5bd9 Merge pull request #6 from Keats/header
Add all params of header from RFC
2015-12-22 17:07:17 +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 f7e87663e2 More examples + fix header struct access 2015-12-20 01:17:10 +00:00
Vincent Prouillet 3930338105 Move macro out of decode + some docstring changes 2015-12-20 01:03:20 +00:00
Vincent Prouillet e7d856efb3 Update docs a bit 2015-12-20 00:58:46 +00:00
Vincent Prouillet 275c95281f Use bytes for secret on encode as well for symmetry 2015-12-20 00:41:22 +00:00
Vincent Prouillet 1179eb8b55 Add all params of header from RFC 2015-12-18 21:07:48 +00:00
Vincent Prouillet 9c75b10abb Merge pull request #3 from untitaker/arbitrary-bytes
Allow non-UTF8 keys for decoding too
2015-12-16 20:51:31 +00:00
Markus Unterwaditzer d6d0ce058b Allow non-UTF8 keys for decoding too 2015-12-16 18:40:28 +01: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 a3f30e2b9c Merge pull request #1 from Ryman/patch
Improve user ergonomics, performance and deny a timing attack
2015-11-07 20:55:09 +00:00
Kevin Butler 3dc9295a54 Allow custom encoded types for Part 2015-11-06 22:45:47 +00:00
Kevin Butler 0f41c31687 Precompute headers 2015-11-06 22:45:47 +00:00
Kevin Butler 4ebcfca049 Rewrite decode 2015-11-06 22:45:47 +00:00
Kevin Butler 486c4a87f9 Use constant time comparison for hmacs, see MacResult::code for warning 2015-11-06 17:23:29 +00:00
Kevin Butler 6138bf3dce Minor test cleanup 2015-11-06 17:23:29 +00:00
Kevin Butler 09c4d14609 Weaken parameter requirements for encode 2015-11-06 17:23:29 +00:00
Kevin Butler b1c10c7085 Weaken parameter requirements for Part::from_base64 2015-11-05 17:11:48 +00:00
Vincent Prouillet 4c6fa49450 Add a bit about validation 2015-11-03 18:38:41 +00:00
Vincent Prouillet fb229e1425 Better example 2015-11-03 16:00:52 +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 6ae77c0b06 Make Algorithm encodable/decodable rather than using String 2015-11-02 23:12:01 +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