1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! No-op credential registry for anonymous-only access. use multistore::error::ProxyError; use multistore::registry::CredentialRegistry; use multistore::types::{RoleConfig, StoredCredential}; /// Credential registry that always returns `None`. /// /// Used for anonymous-only deployments where no authentication is supported. #[derive(Clone)] pub struct NoopCredentialRegistry; impl CredentialRegistry for NoopCredentialRegistry { async fn get_credential( &self, _access_key_id: &str, ) -> Result<Option<StoredCredential>, ProxyError> { Ok(None) } async fn get_role(&self, _role_id: &str) -> Result<Option<RoleConfig>, ProxyError> { Ok(None) } }