- error.rs: AuthError with proper HTTP status mapping - service/password.rs: Argon2 hash/verify with tests - service/token_service.rs: JWT sign/validate, token DB storage with SHA-256 hash - service/auth_service.rs: login/refresh/logout flows with event publishing - service/user_service.rs: user CRUD with soft delete and tenant isolation - Added sha2 dependency to workspace for token hashing
24 lines
518 B
TOML
24 lines
518 B
TOML
[package]
|
|
name = "erp-auth"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
erp-core.workspace = true
|
|
erp-common.workspace = true
|
|
tokio.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
axum.workspace = true
|
|
sea-orm.workspace = true
|
|
tracing.workspace = true
|
|
anyhow.workspace = true
|
|
thiserror.workspace = true
|
|
jsonwebtoken.workspace = true
|
|
argon2.workspace = true
|
|
sha2.workspace = true
|
|
validator.workspace = true
|
|
utoipa.workspace = true
|