- Introduced `RepositoryError` and `ServiceError` enums in both IAM and CMS domains for better error management. - Updated domain traits and services to return specific error types instead of `anyhow::Result`. - Enhanced session and OAuth repository implementations to handle errors more explicitly. - Refactored session service methods to return `Result<T, ServiceError>` for improved error handling. - Updated HTTP handlers to utilize the new error types. - Modified password hashing functions to run in a blocking context using `tokio::task::spawn_blocking`. - Added tests for new error handling mechanisms and async password functions.
24 lines
581 B
TOML
24 lines
581 B
TOML
[package]
|
|
name = "zesdex-iam"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
|
|
[dependencies]
|
|
thiserror.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
anyhow.workspace = true
|
|
chrono.workspace = true
|
|
uuid.workspace = true
|
|
zesdex-entities = { path = "../zesdex-entities" }
|
|
zesdex-utils = { path = "../zesdex-utils" }
|
|
reqwest.workspace = true
|
|
libc.workspace = true
|
|
tracing.workspace = true
|
|
url.workspace = true
|
|
base64.workspace = true
|
|
sha2.workspace = true
|
|
hex.workspace = true
|
|
rand_core = { version = "0.6", features = ["getrandom"] }
|