fabaccess-bffh/bffhd/users/traits.rs

17 lines
449 B
Rust
Raw Permalink Normal View History

2024-04-22 15:30:34 +02:00
//! Core pluggable authentication traits
//!
//! Two traits are central to this module: [`AuthDB`] and [`UserDB`]. `AuthDB` handles identification
//! and authentication of an user, so is called first on SASL authentcation. It most importantly
//! returns the ID of the (authenticated) user, which is then passed to one or more `UserDB` to
//! look up information on that user.
use super::UserRef;
///
pub trait AuthDB {
}
pub trait UserDB {
}