feat: Centralize axum-login authentication logic in infra and introduce configurable database and session settings.

This commit is contained in:
2026-01-02 23:02:50 +01:00
parent 650baf0d0f
commit 0fe682c737
10 changed files with 212 additions and 122 deletions

7
Cargo.lock generated
View File

@@ -39,14 +39,12 @@ dependencies = [
"anyhow",
"async-trait",
"axum",
"axum-login",
"chrono",
"config",
"domain",
"dotenvy",
"infra",
"k-core",
"password-auth",
"serde",
"serde_json",
"thiserror 2.0.17",
@@ -54,7 +52,6 @@ dependencies = [
"tokio",
"tower",
"tower-http",
"tower-sessions",
"tower-sessions-sqlx-store",
"tracing",
"tracing-subscriber",
@@ -1175,18 +1172,22 @@ dependencies = [
name = "infra"
version = "0.1.0"
dependencies = [
"anyhow",
"async-nats",
"async-trait",
"axum-login",
"chrono",
"domain",
"futures-core",
"futures-util",
"k-core",
"password-auth",
"serde",
"serde_json",
"sqlx",
"thiserror 2.0.17",
"tokio",
"tower-sessions",
"tower-sessions-sqlx-store",
"tracing",
"uuid",