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.
21 lines
433 B
Rust
21 lines
433 B
Rust
use serde::Serialize;
|
|
|
|
use crate::domain::entity::user::User;
|
|
|
|
#[derive(Serialize)]
|
|
pub struct UserResponseDto {
|
|
pub source_id: String,
|
|
pub displayed_name: String,
|
|
pub email: String,
|
|
}
|
|
|
|
impl From<User> for UserResponseDto {
|
|
fn from(user: User) -> Self {
|
|
UserResponseDto {
|
|
source_id: user.source_id,
|
|
displayed_name: user.displayed_name,
|
|
email: user.email,
|
|
}
|
|
}
|
|
}
|