From f11ff6612c1c2ad000958f8229b64a229813e245 Mon Sep 17 00:00:00 2001 From: Simon Goller Date: Tue, 18 Jun 2024 09:04:26 +0200 Subject: [PATCH] Fix logout endpoint --- rest/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/src/lib.rs b/rest/src/lib.rs index f640d22..684eca6 100644 --- a/rest/src/lib.rs +++ b/rest/src/lib.rs @@ -259,7 +259,7 @@ use http::StatusCode; #[cfg(feature = "oidc")] pub async fn logout(logout_extractor: OidcRpInitiatedLogout) -> Result { if let Ok(logout_uri) = logout_extractor.uri() { - Ok(Redirect::to(logout_uri.path())) + Ok(Redirect::to(&format!("{}", logout_uri.path()))) } else { Err(StatusCode::BAD_REQUEST) }