feat: improve authentication flow

authentication now works either with sessionid or basic auth, with basic
auth not creating a session
This commit is contained in:
Jef Roosens 2025-03-04 20:04:44 +01:00
parent 2f974fd1ff
commit 648921837b
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
6 changed files with 69 additions and 39 deletions

View file

@ -9,6 +9,7 @@ axum = { version = "0.8.1", features = ["macros"] }
axum-extra = { version = "0.10", features = ["cookie", "typed-header"] }
chrono = { version = "0.4.39", features = ["serde"] }
clap = { version = "4.5.30", features = ["derive", "env"] }
cookie = "0.18.1"
diesel = { version = "2.2.7", features = ["r2d2", "sqlite", "returning_clauses_for_sqlite_3_35"] }
diesel_migrations = { version = "2.2.0", features = ["sqlite"] }
libsqlite3-sys = { version = "0.31.0", features = ["bundled"] }