Skip to main content

allowthem_core/
core.rs

1pub mod api_tokens;
2pub mod audit;
3pub mod auth_client;
4pub mod db;
5pub mod email;
6pub mod error;
7pub mod handle;
8pub mod jwt;
9mod mfa_encrypt;
10pub mod oauth;
11pub mod oauth_github;
12pub mod oauth_google;
13pub mod password;
14pub mod password_reset;
15pub mod permissions;
16pub mod roles;
17pub mod sessions;
18pub mod totp;
19pub mod types;
20pub mod users;
21
22pub use audit::{AuditEntry, AuditEvent};
23pub use auth_client::{AuthClient, AuthFuture, EmbeddedAuthClient};
24pub use db::Db;
25pub use email::{EmailMessage, EmailSender, LogEmailSender};
26pub use error::AuthError;
27pub use handle::{AllowThem, AllowThemBuilder, BuildError};
28pub use jwt::{Claims, JwtConfig, generate_token as generate_jwt, validate_token};
29pub use oauth::{OAuthAccountInfo, OAuthProvider, OAuthStateInfo, OAuthUserInfo};
30pub use oauth_github::GitHubProvider;
31pub use oauth_google::GoogleProvider;
32pub use sessions::{
33    SessionConfig, generate_token, hash_token, parse_session_cookie, session_cookie,
34};
35pub use types::*;
36
37#[cfg(test)]
38mod db_tests;