From ee07ad74616a398d44858ff14bfb2b6d342176f7 Mon Sep 17 00:00:00 2001 From: Matthew Mauer Date: Wed, 26 Mar 2025 11:20:05 -0400 Subject: [PATCH 1/2] bump jsonwebtoken to 9.3.0 and handle breaking changes --- Cargo.toml | 2 +- src/propelauth/token.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 598670c..67805a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ axum_06 = { package = "axum", version = "^0.6", optional = true } axum_07 = { package = "axum", version = "^0.7", optional = true } axum_08 = { package = "axum", version = "^0.8", optional = true } chrono = "0.4.39" -jsonwebtoken = "8.3.0" +jsonwebtoken = "9.3.0" serde = "^1.0" serde_derive = "^1.0" serde_json = "^1.0" diff --git a/src/propelauth/token.rs b/src/propelauth/token.rs index fcdb96e..7ff8346 100644 --- a/src/propelauth/token.rs +++ b/src/propelauth/token.rs @@ -137,6 +137,7 @@ impl TokenService<'_> { let mut validation = Validation::new(Algorithm::RS256); validation.set_issuer(&[self.issuer]); + validation.validate_aud = false; let decoded_user = decode::(&bearer_token, &decoding_key, &validation) From dd6bdaade7d3a4f667c99e776305b2933793643f Mon Sep 17 00:00:00 2001 From: Matthew Mauer Date: Wed, 26 Mar 2025 11:46:00 -0400 Subject: [PATCH 2/2] bump patch version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 67805a3..0c322a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "propelauth" -version = "0.23.0" +version = "0.23.1" authors = ["support@propelauth.com"] description = "A Rust crate for managing authentication and authorization with support for multi-tenant / B2B products, powered by PropelAuth" keywords = ["authentication", "auth", "authorization", "b2b", "tenant"]