Skip to content

Commit e7bb952

Browse files
authored
Bump version (#334)
* Bump version * Keep criterion at 0.4
1 parent a55b45c commit e7bb952

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 9.0.0 (2023-10-16)
4+
5+
- Update ring
6+
- Rejects JWTs containing audiences when the Validation doesn't contain any
7+
38
## 8.3.0 (2023-03-15)
49

510
- Update base64

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "jsonwebtoken"
3-
version = "8.3.0"
3+
version = "9.0.0"
44
authors = ["Vincent Prouillet <hello@vincentprouillet.com>"]
55
license = "MIT"
66
readme = "README.md"
@@ -15,10 +15,10 @@ rust-version = "1.67.0"
1515
[dependencies]
1616
serde_json = "1.0"
1717
serde = {version = "1.0", features = ["derive"] }
18-
ring = { version = "0.17.3", features = ["std"] }
18+
ring = { version = "0.17.4", features = ["std"] }
1919
base64 = "0.21.0"
2020
# For PEM decoding
21-
pem = {version = "2", optional = true}
21+
pem = {version = "3", optional = true}
2222
simple_asn1 = {version = "0.6", optional = true}
2323

2424
[dev-dependencies]

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ See [JSON Web Tokens](https://en.wikipedia.org/wiki/JSON_Web_Token) for more inf
88
Add the following to Cargo.toml:
99

1010
```toml
11-
jsonwebtoken = "8"
11+
jsonwebtoken = "9"
1212
# If you do not need pem decoding, you can disable the default feature `use_pem` that way:
13-
# jsonwebtoken = {version = "8", default-features = false }
13+
# jsonwebtoken = {version = "9", default-features = false }
1414
serde = {version = "1.0", features = ["derive"] }
1515
```
1616

@@ -157,7 +157,8 @@ openssl pkcs8 -topk8 -nocrypt -in sec1.pem -out pkcs8.pem
157157

158158
## Validation
159159
This library validates automatically the `exp` claim and `nbf` is validated if present. You can also validate the `sub`, `iss` and `aud` but
160-
those require setting the expected value in the `Validation` struct.
160+
those require setting the expected value in the `Validation` struct. In the case of `aud`, if there is a value set in the token but
161+
not in the `Validation`, the token will be rejected.
161162

162163
Since validating time fields is always a bit tricky due to clock skew,
163164
you can add some leeway to the `iat`, `exp` and `nbf` validation by setting the `leeway` field.

0 commit comments

Comments
 (0)