dependency update
This commit is contained in:
parent
2cc33cc3e8
commit
40bd5e5d76
2 changed files with 3 additions and 8 deletions
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue