bindle 0.9.1

An aggregate object storage system for applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::Authenticator;
use crate::authz::always::Anonymous;

/// An authenticator that simply returns an anonymous user
#[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)
    }
}