Compare commits

...

5 Commits

Author SHA1 Message Date
Lennart
83f4506578 bump version to 0.8.5 2025-08-12 17:19:36 +02:00
Lennart
a5bbb82712 dav_push: Add TTL header to notifcation requests (thanks @drift8797)
see #108
2025-08-12 17:19:16 +02:00
Lennart
6a26f44dd7 bump version to 0.8.4 2025-08-10 14:01:25 +02:00
Lennart
f8a660c222 rename session cookie to rustical_session
To prevent possible clashes with other services, #105
2025-08-10 14:01:00 +02:00
Lennart
a991baaf7d Update version to 0.8.3 2025-08-10 13:51:09 +02:00
4 changed files with 14 additions and 12 deletions

22
Cargo.lock generated
View File

@@ -3026,7 +3026,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical" name = "rustical"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"argon2", "argon2",
@@ -3069,7 +3069,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_caldav" name = "rustical_caldav"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"async-std", "async-std",
"async-trait", "async-trait",
@@ -3109,7 +3109,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_carddav" name = "rustical_carddav"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
@@ -3141,7 +3141,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_dav" name = "rustical_dav"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
@@ -3166,7 +3166,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_dav_push" name = "rustical_dav_push"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
@@ -3191,7 +3191,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_frontend" name = "rustical_frontend"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"askama", "askama",
"askama_web", "askama_web",
@@ -3224,7 +3224,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_ical" name = "rustical_ical"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"axum", "axum",
"chrono", "chrono",
@@ -3242,7 +3242,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_oidc" name = "rustical_oidc"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"axum", "axum",
@@ -3257,7 +3257,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_store" name = "rustical_store"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
@@ -3291,7 +3291,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_store_sqlite" name = "rustical_store_sqlite"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"chrono", "chrono",
@@ -3312,7 +3312,7 @@ dependencies = [
[[package]] [[package]]
name = "rustical_xml" name = "rustical_xml"
version = "0.8.1" version = "0.8.5"
dependencies = [ dependencies = [
"quick-xml", "quick-xml",
"thiserror 2.0.12", "thiserror 2.0.12",

View File

@@ -2,7 +2,7 @@
members = ["crates/*"] members = ["crates/*"]
[workspace.package] [workspace.package]
version = "0.8.1" version = "0.8.5"
edition = "2024" edition = "2024"
description = "A CalDAV server" description = "A CalDAV server"
repository = "https://github.com/lennart-k/rustical" repository = "https://github.com/lennart-k/rustical"

View File

@@ -183,6 +183,7 @@ impl<S: SubscriptionStore> DavPushController<S> {
header::CONTENT_TYPE, header::CONTENT_TYPE,
HeaderValue::from_static("application/octet-stream"), HeaderValue::from_static("application/octet-stream"),
); );
hdrs.insert("TTL", HeaderValue::from(60));
client.execute(request).await?; client.execute(request).await?;
Ok(()) Ok(())

View File

@@ -126,6 +126,7 @@ pub fn make_app<AS: AddressbookStore, CS: CalendarStore, S: SubscriptionStore>(
router router
.layer( .layer(
SessionManagerLayer::new(session_store) SessionManagerLayer::new(session_store)
.with_name("rustical_session")
.with_secure(true) .with_secure(true)
.with_same_site(SameSite::Strict) .with_same_site(SameSite::Strict)
.with_expiry(Expiry::OnInactivity( .with_expiry(Expiry::OnInactivity(