pxsolver-auth 1.4.0

API-key + per-domain allowlist + audit log
Documentation
1
2
3
4
5
6
7
8
9
use crate::domain::allowlist_entry::AllowlistEntry;
use async_trait::async_trait;
use px_errors::AppError;

#[async_trait]
pub trait AllowlistStore: Send + Sync {
    async fn lookup(&self, domain: &str) -> Result<Option<AllowlistEntry>, AppError>;
    async fn list(&self) -> Result<Vec<AllowlistEntry>, AppError>;
}