From 1d04e56e6e1d03c6d738bde081581dbb40dcb9e3 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 24 Jun 2026 12:46:22 -0700 Subject: [PATCH] feat(ai-gateway): send the serving route to the verify endpoint --- litellm-rust/crates/ai-gateway/src/auth/client/python.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm-rust/crates/ai-gateway/src/auth/client/python.rs b/litellm-rust/crates/ai-gateway/src/auth/client/python.rs index 684c1120652..1476020e684 100644 --- a/litellm-rust/crates/ai-gateway/src/auth/client/python.rs +++ b/litellm-rust/crates/ai-gateway/src/auth/client/python.rs @@ -47,12 +47,12 @@ impl PythonAuthClient { #[axum::async_trait] impl KeyAuthenticator for PythonAuthClient { - async fn verify(&self, key: &str) -> Result { + async fn verify(&self, key: &str, route: &str) -> Result { let response = self .http .post(&self.verify_url) .header(DATA_PLANE_KEY_HEADER, &self.data_plane_key) - .json(&serde_json::json!({ "api_key": key })) + .json(&serde_json::json!({ "api_key": key, "route": route })) .send() .await .map_err(|err| AuthError::Upstream(err.to_string()))?;