potree-auth 0.1.0

Authentication and project management for `potree` point clouds.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::super::application::error::AuthenticationServiceError;
use crate::common::utils::http::render_error::RenderError;

impl From<AuthenticationServiceError> for RenderError {
    fn from(value: AuthenticationServiceError) -> Self {
        match value {
            AuthenticationServiceError::Infrastructure { message }
            | AuthenticationServiceError::IdpExchange { message }
            | AuthenticationServiceError::Validation { message } => {
                Self::AuthenticationFlow { message }
            }
        }
    }
}