- Added JWT authentication with token generation and validation. - Introduced user registration functionality with email and password. - Integrated Argon2 for password hashing. - Created SQLite user repository for user data persistence. - Updated application context to include user repository and configuration settings. - Added environment variable support for JWT secret and registration allowance. - Enhanced error handling for unauthorized access and validation errors. - Updated presentation layer to handle login and registration requests.
32 lines
845 B
TOML
32 lines
845 B
TOML
[package]
|
|
name = "presentation"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.8.8", features = ["macros"] }
|
|
tower-http = { version = "0.6.8", features = ["fs", "trace", "tracing"] }
|
|
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
tokio = { workspace = true }
|
|
dotenvy = { workspace = true }
|
|
uuid = { workspace = true }
|
|
chrono = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
|
|
domain = { workspace = true }
|
|
application = { workspace = true }
|
|
auth = { workspace = true }
|
|
sqlite = { workspace = true }
|
|
sqlx = { workspace = true }
|
|
template-askama = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tower = { version = "0.5", features = ["util"] }
|
|
http-body-util = "0.1"
|