Vincent Prouillet
b8627260b2
Update to edition 2018
2019-07-06 20:36:32 +02:00
Vincent Prouillet
22cd4dbb62
Remove unused test key
2019-07-06 20:24:14 +02:00
Vincent Prouillet
3c62b98bd9
Update example to v7 style
2019-06-16 18:15:14 +02:00
Vincent Prouillet
d6d0da7ab9
Merge pull request #83 from rakenodiax/chrono-example
...
Add example of using `chrono::DateTime` in claims
2019-06-16 18:13:43 +02:00
Vincent Prouillet
357eb4c539
Update changelog
2019-06-16 18:03:21 +02:00
Vincent Prouillet
2def25ee87
Merge branch 'kanru-rsa-pss' into next
2019-06-16 18:00:42 +02: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
e2e11b1e56
Merge pull request #89 from EmbarkStudios/key_formats
...
Clarify Key formats
2019-05-25 17:52:16 +02:00
Vincent Prouillet
920d6f6759
Start work on 7.0.0
2019-05-25 17:51:31 +02:00
Jake Shadle
d51a3f632d
Fix benches
2019-05-15 16:20:32 +02:00
Jake Shadle
c5db9fbe32
Fix tests
2019-05-15 16:20:25 +02:00
Jake Shadle
bae7a12a4b
Fix examples
2019-05-15 16:20:09 +02:00
Jake Shadle
6cfb5c7c0e
Add Key trait and the supported formats
2019-05-15 16:19:38 +02:00
Jake Shadle
5d01baea94
Bump ring
2019-05-15 16:16:49 +02:00
Vincent Prouillet
b2d57edc72
Release new version
2019-05-10 16:49:31 -07:00
Vincent Prouillet
cd8bd15234
Merge pull request #88 from maxburke/fix_algorithm_mapping
...
Fix algorithm mapping.
2019-05-10 16:47:48 -07:00
Max Burke
f68210c688
Fix algorithm mapping.
...
RS256/384/512 algorithm strings were mapped to HMAC-SHA256/384/512
enumerators.
2019-05-10 16:36:28 -07:00
Vincent Prouillet
89fbd8f0ce
Merge pull request #75 from Keats/next
...
v6
2019-04-21 10:22:46 +02:00
Vincent Prouillet
88cee37fb9
Add release date
2019-04-21 10:13:32 +02:00
Kellen Frodelius-Fujimoto
6bac1bdbf0
Add example of using `chrono::DateTime` in claims
...
Using `chrono`'s `serde` feature uses ISO 8601 instead of a Unix
timestamp as specified in RFC 7519 section 2, "NumericDate". This
example uses custom de/serialize functions as shown in the [serde.rs
example, "Custom Date
Format"](https://serde.rs/custom-date-format.html ).
NOTE: Currently fractional values are not supported in the example,
though they are in the spec.
2019-04-01 12:11:28 +02:00
Vincent Prouillet
0ccb61eea5
Update some things for v6
2019-03-22 09:40:08 +01:00
Vincent Prouillet
da0f01a64f
Merge pull request #73 from jbg/master
...
ECDSA signing and verification (ES256, ES384)
2019-03-22 09:27:41 +01:00
Vincent Prouillet
b4e0ae5f6d
Merge branch 'next' into master
2019-03-22 09:24:02 +01:00
Vincent Prouillet
be27206088
Remove iat validation, it isnt supposed to be done
2019-02-04 18:44:08 +01:00
Vincent Prouillet
71d5cb19f7
Update base64
2019-02-04 18:39:46 +01:00
Vincent Prouillet
86dce0003e
Merge pull request #72 from endor/master
...
Fix documentation of default values in validation
2019-02-04 18:36:48 +01:00
Vincent Prouillet
cf9908948b
Merge pull request #70 from alex/ring-0.14
...
Upgraded ring to 0.14
2019-02-04 18:36:23 +01:00
Vincent Prouillet
86ba9d3d50
Start on v6
2019-02-04 18:35:39 +01:00
Jasper Bryant-Greene
8a495d3a4e
updated ring dependency
2019-02-01 12:12:33 +08:00
Jasper Bryant-Greene
e10b049d9a
implemented verification of ECDSA signatures and added tests
2019-02-01 12:11:20 +08:00
Frank Prößdorf
2793bc2be4
Fix documentation of default values in validation
2019-01-18 09:31:56 +02:00
Jasper Bryant-Greene
1f6ae28566
ring -> 0.14.1, updated other deps
2019-01-18 10:34:12 +08:00
Alex Gaynor
716fe8b64d
Upgraded ring to 0.14
2019-01-13 00:20:34 +00:00
Jasper Bryant-Greene
9883fab729
implemented ECDSA signing, updated ring to 0.14 alpha
2019-01-09 09:46:06 +08:00
Jasper Bryant-Greene
6768230077
Added ES256/ES384/ES512 Algorithm stubs
2019-01-09 09:18:49 +08:00
Vincent Prouillet
8f0809318d
rustfmt
2018-10-28 19:58:35 +01:00
Vincent Prouillet
d63af8d6e0
clippy
2018-10-28 19:58:06 +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
4a5d69bdc0
Release 5.0.1
2018-09-10 12:43:45 +02:00
Vincent Prouillet
cfdfa29bf3
Merge pull request #61 from himanoa/feat/implement-string-to-algorithm
...
feat: Implement FromStr trait for Algorithm
2018-09-02 21:50:00 +02:00
himanoa
4bd4c8b3de
feat: Implement FromStr trait for Algorithm
2018-08-31 03:53:55 +09:00
Vincent Prouillet
1f9af2e505
Releasing v5 today
2018-08-13 16:06:55 +02:00
Vincent Prouillet
af18ff9230
Merge pull request #59 from Keats/next
...
Next
2018-08-13 16:02:04 +02:00
Vincent Prouillet
c78574aae4
Remove some commented out code
2018-07-26 09:43:21 +02:00
Vincent Prouillet
5528497f5a
Fix validation not working properly
...
Close #51
2018-07-25 15:42:02 +02:00
Vincent Prouillet
109978ab6b
Remove error-chain
...
Fix #52 , #56 , #57
2018-07-25 14:46:30 +02:00
Vincent Prouillet
126ee4b1a3
Merge pull request #58 from matthauck/master
...
Update ring
2018-07-25 13:04:20 +02:00
Matt Hauck
94917bfe2c
Update ring
2018-07-13 15:50:34 -07:00
Vincent Prouillet
9056a2912f
Update base64
2018-03-19 12:31:38 +01:00
Vincent Prouillet
90cad4f7c4
Merge pull request #49 from mike-engel/master
...
Add a method to decode a token without signature validation
2018-03-19 12:24:59 +01:00
Mike Engel
d30a7599a8
Add a method to decode a token without signature validation
...
- Solves #48
- `dangerous_unsafe_decode`
- No docs (aside from cargo) since people probably shouldn't use it
2018-03-13 20:47:43 -06:00
Vincent Prouillet
99e0a2ed01
Merge pull request #47 from chinedufn/complete-toml
...
Add `serde` dependency to example Cargo.toml
2018-01-01 16:59:45 +01:00
Chinedu Francis Nwafili
8cea7deda4
Add serde to example Cargo.toml
2017-12-31 09:54:59 -05:00
Vincent Prouillet
91c55f9623
Merge pull request #43 from ChristophWurst/patch-1
...
Fix jwt::decode documentation in readme
2017-11-25 12:06:12 +01: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
7e394c98e1
v4.0.0
2017-11-22 17:25:46 +01:00
Vincent Prouillet
7a71501798
Merge pull request #42 from Keats/next
...
Make it mandatory to specify algorithm
2017-11-22 17:14:54 +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
b30a2cc5e5
v3.0
2017-09-08 16:23:15 +09:00
Vincent Prouillet
df9449caae
Merge pull request #39 from Keats/v3
...
V3
2017-09-08 15:51:26 +09:00
Vincent Prouillet
4a656ffda7
Update README.md
2017-09-08 15:36:52 +09:00
Vincent Prouillet
3985915da6
Update error-chain and make typ public
2017-09-07 16:46:40 +09:00
Vincent Prouillet
7e36d3f7bb
Update ring and fix leeway docs
2017-08-30 18:09:57 +09:00
Vincent Prouillet
5839cb4552
Don't serialize typ if None
2017-08-26 09:54:20 +09:00
Vincent Prouillet
43a20030ee
Update docs
2017-08-25 17:54:19 +09:00
Vincent Prouillet
983380d1ab
Make typ an Option in Header
2017-08-25 17:51:44 +09:00
Vincent Prouillet
d213fb8a62
Remove validate_signature option and add decode_header
2017-08-25 17:48:53 +09:00
Vincent Prouillet
01d6b906e0
v2.0.3
2017-07-18 20:38:46 +09:00
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