Skip to main content

sui_id_core/
lib.rs

1//! # sui-id-core
2//!
3//! Domain layer: password hashing, JWT signing/verification, OIDC Discovery,
4//! JWKS, Authorization Code + PKCE, token issuance, sessions, and the setup
5//! state machine.
6//!
7//! This crate has no knowledge of HTTP. It speaks in terms of the storage
8//! layer and pure data; the wiring to Axum lives in `sui-id-bin`.
9
10#![forbid(unsafe_code)]
11
12pub mod cache;
13pub mod errors;
14pub mod password;
15pub mod tokens;
16pub mod jwt;
17pub mod jwks;
18pub mod discovery;
19pub mod authorize;
20pub mod session;
21pub mod setup;
22pub mod admin;
23pub mod dashboard;
24pub mod me_security;
25pub mod step_up;
26pub mod time;
27pub mod totp;
28pub mod mfa;
29pub mod webauthn;
30pub mod oauth_token;
31pub mod events;
32pub mod mail;
33pub mod forgot_password;
34pub mod i18n;
35pub mod hibp;
36pub mod key_rotation;
37
38pub use errors::{CoreError, CoreResult};