Compare commits

..

3 Commits

Author SHA1 Message Date
a9655edff6 BLOG-85 refactor: enhance configuration management with database, server, session, and storage modules
All checks were successful
Frontend CI / build (push) Successful in 1m9s
2025-07-30 03:00:41 +08:00
14b7d745a1 BLOG-85 feat: logout endpoint 2025-07-30 03:00:41 +08:00
32b3d47715 BLOG-85 feat: implement OIDC authentication flow
- 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-30 03:00:36 +08:00

View File

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