From 9c9191874be3d453ad1739fd9ae32e5f9ed7147d Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 7 Dec 2023 19:48:31 +0900 Subject: [PATCH] Set expected audience to validation in auth0 example --- examples/auth0.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/auth0.rs b/examples/auth0.rs index 2964c3a3..ed9caaea 100644 --- a/examples/auth0.rs +++ b/examples/auth0.rs @@ -27,6 +27,7 @@ fn main() -> Result<(), Box> { Algorithm::from_str(j.common.key_algorithm.unwrap().to_string().as_str()) .unwrap(), ); + validation.set_audience(&["https://dev-duzyayk4.eu.auth0.com/api/v2/"]); validation.validate_exp = false; let decoded_token = decode::>(TOKEN, &decoding_key, &validation)