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,5 +1,6 @@
use askama::Template;
use oxide_auth::frontends::simple::request::{Body, Status};
use axum::http::StatusCode;
use oxide_auth::frontends::simple::request::Body;
use super::{AuthorizationQuery, ConsentPageTemplate, OidcResponse, encode};
@ -15,11 +16,11 @@ pub fn oidc_consent_form(hostname: &str, query: &AuthorizationQuery) -> OidcResp
let body = Some(Body::Text(consent_page(hostname, query, route, &nonce)));
OidcResponse {
status: Status::Ok,
status: StatusCode::OK,
location: None,
www_authenticate: None,
body,
nonce,
nonce: Some(nonce),
}
}