use super::authentication_settings::{AuthSetup, IAuthenticationSettings};
use crate::{
AclError,
auth::{GarnetAuthenticator, GarnetNoAuthAuthenticator},
};
pub struct NoAuthSettings;
impl IAuthenticationSettings for NoAuthSettings {
fn create_authenticator(&self, _setup: &AuthSetup) -> Result<GarnetAuthenticator, AclError> {
Ok(GarnetAuthenticator::NoAuth(GarnetNoAuthAuthenticator))
}
}