Skip to main content

feagi_agent/server/auth/
agent_auth.rs

1use crate::command_and_control::agent_registration_message::RegistrationRequest;
2use crate::FeagiAgentError;
3
4pub trait AgentAuth: Send + Sync {
5    fn verify_agent_allowed_to_connect(
6        &mut self,
7        request: &RegistrationRequest,
8    ) -> Result<(), FeagiAgentError>; // TODO maybe returna  bool instead?
9}