Another try to fix the logout

This commit is contained in:
Simon Goller 2024-06-18 09:19:49 +02:00
parent f11ff6612c
commit 17e16d35a7

View file

@ -259,7 +259,7 @@ use http::StatusCode;
#[cfg(feature = "oidc")]
pub async fn logout(logout_extractor: OidcRpInitiatedLogout) -> Result<Redirect, StatusCode> {
if let Ok(logout_uri) = logout_extractor.uri() {
Ok(Redirect::to(&format!("{}", logout_uri.path())))
Ok(Redirect::to(&format!("{}", logout_uri)))
} else {
Err(StatusCode::BAD_REQUEST)
}