fix OidcResponse: reimplement IntoResponse

This commit is contained in:
lafleur 2025-05-11 15:17:14 +02:00 committed by nexy7574
commit fbf190b5d9
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F
3 changed files with 43 additions and 38 deletions

View file

@ -1,9 +1,10 @@
use std::str::FromStr;
use askama::Template;
use axum::http::StatusCode;
use oxide_auth::{
endpoint::QueryParameter,
frontends::simple::request::{Body, Status},
frontends::simple::request::Body,
};
use url::Url;
@ -93,11 +94,11 @@ pub fn oidc_login_form(hostname: &str, query: &AuthorizationQuery) -> OidcRespon
let body = Some(Body::Text(login_page(hostname, query, route, &nonce)));
OidcResponse {
status: Status::Ok,
status: StatusCode::OK,
location: None,
www_authenticate: None,
body,
nonce,
nonce: Some(nonce),
}
}