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
31
32
33
34
35
36
37
38
//! # sui-id-core
//!
//! Domain layer: password hashing, JWT signing/verification, OIDC Discovery,
//! JWKS, Authorization Code + PKCE, token issuance, sessions, and the setup
//! state machine.
//!
//! This crate has no knowledge of HTTP. It speaks in terms of the storage
//! layer and pure data; the wiring to Axum lives in `sui-id-bin`.
#![forbid(unsafe_code)]
pub mod cache;
pub mod errors;
pub mod password;
pub mod tokens;
pub mod jwt;
pub mod jwks;
pub mod discovery;
pub mod authorize;
pub mod session;
pub mod setup;
pub mod admin;
pub mod dashboard;
pub mod me_security;
pub mod step_up;
pub mod time;
pub mod totp;
pub mod mfa;
pub mod webauthn;
pub mod oauth_token;
pub mod events;
pub mod mail;
pub mod forgot_password;
pub mod i18n;
pub mod hibp;
pub mod key_rotation;
pub use errors::{CoreError, CoreResult};