aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/users/mod.rs
blob: 392e0089a5706d006e8c800f63c7952f9b624314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! User and access regulation module
//!
//! Access can be given for a vault or file (based on id)
//! as well as an entire Api endpoint. By default all
//! Rust APIs assume `{ Api, Admin }` access, for other
//! APIs crates (http, ...), a user with access rights
//! has to be specified.
//!
//! A user for an API endpoint is not the same as a user for
//! a vault. An API admin could have access to a vault where
//! they can only read a single file!
//!
//! `User` is also a serialisable struct which contains important
//! data to load and store them into a metadata store.

mod auth;
mod rights;
mod tokens;
mod user;

mod secrets;
mod userstore;

pub use self::auth::pam_authenticate;
pub use self::tokens::{Request, Token};
pub use self::user::User;
pub use self::userstore::UserStore;

pub use self::rights::{Access, Role};
pub use errors::AuthError;