Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dsferruzza committed Dec 3, 2023
1 parent a79e0bb commit 47fb48f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ license = "MIT"
[dependencies]
actix-web = { version = "4.4.0", default-features = false }
chrono = { version = "0.4.31", features = ["serde"] }
futures-util = { version = "0.3.28", default-features = false, features = ["std"] }
futures-util = { version = "0.3.29", default-features = false, features = ["std"] }
log = "0.4.20"
jsonwebtoken = "8.3.0"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
uuid = { version = "1.4.1", features = ["serde"] }
paperclip = { version = "0.8.1", default-features = false, features = ["actix4"], optional = true }
jsonwebtoken = "9.2.0"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
uuid = { version = "1.6.1", features = ["serde"] }
paperclip = { version = "0.8.2", default-features = false, features = ["actix4"], optional = true }

[dev-dependencies]
actix-web = { version = "4.4.0", default-features = false, features = ["macros"] }
env_logger = "0.10.0"
uuid = { version = "1.4.1", features = ["serde", "v4"] }
env_logger = "0.10.1"
uuid = { version = "1.6.1", features = ["serde", "v4"] }

[features]
default = []
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,13 @@ where
debug!("JWT header was decoded");
debug!("JWT is using {:?} algorithm", &jwt_header.alg);

let mut validation = Validation::new(jwt_header.alg);
validation.validate_aud = false;

match decode::<Value>(
token,
&self.keycloak_oid_public_key,
&Validation::new(jwt_header.alg),
&validation,
) {
Ok(raw_token) => {
debug!("JWT was decoded");
Expand Down

0 comments on commit 47fb48f

Please sign in to comment.