Compare commits

..

3 Commits

Author SHA1 Message Date
62803debee BLOG-85 refactor: enhance configuration management with database, server, session, and storage modules
All checks were successful
Frontend CI / build (push) Successful in 1m8s
2025-07-29 08:38:52 +08:00
8bacf74c9e BLOG-85 feat: logout endpoint
All checks were successful
Frontend CI / build (push) Successful in 1m7s
2025-07-29 08:10:54 +08:00
02417b40a4 BLOG-85 feat: implement OIDC authentication flow
All checks were successful
Frontend CI / build (push) Successful in 1m9s
- Added OIDC authentication support with new modules for handling OIDC login and callback.
- Introduced `AuthController`, `AuthOidcService`, and related DTOs for managing authentication state and user responses.
- Implemented session management using `actix-session` with Redis for storing authentication state.
- Created configuration management for OIDC settings, including provider metadata and client credentials.
- Updated server configuration to initialize OIDC services and session management.
- Refactored existing code to integrate new authentication features and ensure proper dependency management.
2025-07-29 06:10:28 +08:00

View File

@ -75,9 +75,10 @@ async fn oidc_callback_handler(
log::error!("{e:?}");
return HttpResponse::InternalServerError().finish();
}
HttpResponse::Found()
.append_header((header::LOCATION, "/"))
.finish()
// HttpResponse::Found()
// .append_header((header::LOCATION, "/"))
// .finish()
HttpResponse::Ok().finish()
}
Err(e) => match e {
AuthError::InvalidAuthCode | AuthError::InvalidIdToken | AuthError::InvalidNonce => {