Another try to fix the logout
This commit is contained in:
parent
f11ff6612c
commit
17e16d35a7
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ use http::StatusCode;
|
||||||
#[cfg(feature = "oidc")]
|
#[cfg(feature = "oidc")]
|
||||||
pub async fn logout(logout_extractor: OidcRpInitiatedLogout) -> Result<Redirect, StatusCode> {
|
pub async fn logout(logout_extractor: OidcRpInitiatedLogout) -> Result<Redirect, StatusCode> {
|
||||||
if let Ok(logout_uri) = logout_extractor.uri() {
|
if let Ok(logout_uri) = logout_extractor.uri() {
|
||||||
Ok(Redirect::to(&format!("{}", logout_uri.path())))
|
Ok(Redirect::to(&format!("{}", logout_uri)))
|
||||||
} else {
|
} else {
|
||||||
Err(StatusCode::BAD_REQUEST)
|
Err(StatusCode::BAD_REQUEST)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue