use super::Authenticator;
use crate::authz::always::Anonymous;
#[derive(Clone, Debug)]
pub struct AlwaysAuthenticate;
#[async_trait::async_trait]
impl Authenticator for AlwaysAuthenticate {
type Item = Anonymous;
async fn authenticate(&self, _auth_data: &str) -> anyhow::Result<Self::Item> {
Ok(Anonymous)
}
}