dependency update

This commit is contained in:
Paul Zinselmeyer 2024-01-16 12:17:53 +01:00
parent 2cc33cc3e8
commit 40bd5e5d76
Signed by: pfzetto
GPG key ID: 9E0E8CD56AB7A89C
2 changed files with 3 additions and 8 deletions

View file

@ -18,8 +18,8 @@ thiserror = "1.0"
rand = "0.8" rand = "0.8"
dotenvy = "0.15" dotenvy = "0.15"
markdown = "0.3" markdown = "0.3"
axum-oidc = "0.2.1" axum-oidc = "0.2.2"
tower-sessions = "0.7.0" tower-sessions = "0.9.0"
tower = "0.4.13" tower = "0.4.13"
log = "0.4" log = "0.4"
env_logger = "0.10" env_logger = "0.10"

View file

@ -125,12 +125,7 @@ async fn main() {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
let session_store = MemoryStore::default(); let session_store = MemoryStore::default();
let session_service = ServiceBuilder::new() let session_service = SessionManagerLayer::new(session_store).with_same_site(SameSite::Lax);
.layer(HandleErrorLayer::new(|e: BoxError| async {
dbg!("{:?}", e);
StatusCode::BAD_REQUEST
}))
.layer(SessionManagerLayer::new(session_store).with_same_site(SameSite::Lax));
let oidc_login_service = ServiceBuilder::new() let oidc_login_service = ServiceBuilder::new()
.layer(HandleErrorLayer::new(|e: MiddlewareError| async { .layer(HandleErrorLayer::new(|e: MiddlewareError| async {