diff --git a/Cargo.toml b/Cargo.toml index 598670c..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"] @@ -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)