potree_auth/authentication/http/
error.rs1use super::super::application::error::AuthenticationServiceError;
2use crate::common::utils::http::render_error::RenderError;
3
4impl From<AuthenticationServiceError> for RenderError {
5 fn from(value: AuthenticationServiceError) -> Self {
6 match value {
7 AuthenticationServiceError::Infrastructure { message }
8 | AuthenticationServiceError::IdpExchange { message }
9 | AuthenticationServiceError::Validation { message } => {
10 Self::AuthenticationFlow { message }
11 }
12 }
13 }
14}