flare_core/server/auth/
default.rs1use crate::common::device::DeviceInfo;
6use crate::common::error::Result;
7use crate::server::auth::authenticator::{AuthResult, Authenticator};
8use async_trait::async_trait;
9
10pub struct DefaultAuthenticator;
15
16#[async_trait]
17impl Authenticator for DefaultAuthenticator {
18 async fn authenticate(
19 &self,
20 _token: &str,
21 _connection_id: &str,
22 _device_info: Option<&DeviceInfo>,
23 _metadata: Option<&std::collections::HashMap<String, Vec<u8>>>,
24 ) -> Result<AuthResult> {
25 Ok(AuthResult::success(None))
27 }
28}