Skip to content

Commit f01548e

Browse files
committed
jwt: Fix breakage on unified token aud claim
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent a500809 commit f01548e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/storjwt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn verify_with_key_str(
1717
let mut validation = Validation::default();
1818
validation.required_spec_claims.clear();
1919
validation.validate_exp = false;
20+
validation.validate_aud = false;
2021
let token_data = decode::<Claims>(token_str, &key, &validation)?;
2122
let mut claims = BTreeMap::new();
2223
claims.insert("email".to_string(), token_data.claims.email);

0 commit comments

Comments
 (0)