Commit Graph

170 Commits

Author SHA1 Message Date
Lennart
c4f68e2cf1 recurrence rules: We can now just not return a last occurence instead of throwing an error 2024-10-26 21:25:20 +02:00
Lennart
03ce10b6dd CalDateTime: Add timezone guessing from TZID as well as some error handling 2024-10-26 14:43:27 +02:00
Lennart
d87b7dcb8d Refactor: Rename uid to object_id 2024-10-14 10:13:32 +02:00
Lennart
ac0206568d remove debug print 2024-10-13 19:53:25 +02:00
Lennart
7ce0fc53a4 Add authentication with session cookie 2024-10-13 19:05:57 +02:00
Lennart
c2dbd9d0b9 auth: Add tracing around token validation 2024-10-09 00:30:42 +02:00
Lennart
41aa1a2105 Add proper Unauthorized error for user extractor 2024-10-09 00:07:13 +02:00
Lennart
66486a5e27 remove debug statement 2024-10-09 00:04:06 +02:00
Lennart
a75b9f213a Support timezone ids from the Olson database 2024-10-08 18:06:26 +02:00
Lennart
b6d22f218b implement From<CalDateTime> for DateTime<Utc> 2024-10-08 15:57:43 +02:00
Lennart
dd93afebb3 Implement occurence getters for calendar object 2024-10-08 15:06:45 +02:00
Lennart
f91ed0cb5d Rewrite occurence getters for Event 2024-10-08 15:05:07 +02:00
Lennart
b82daeb4e2 remove todo
The annoyance of making sure the stored is ETag is correct is larger
than the cost of just keeping things as they are
2024-10-08 14:33:51 +02:00
Lennart
f7d253de85 Add app tokens (secondary passwords) to afford cheaper hashes 2024-10-06 12:54:19 +02:00
Lennart
c14eddb0b6 Add tracing and restructure the Cargo.tomls 2024-10-04 16:30:59 +02:00
Lennart
4e85d129d1 change user.rs 2024-10-04 11:58:29 +02:00
Lennart
8949506758 CalDateTime: implement Deserialize 2024-10-04 11:58:17 +02:00
Lennart
a47d056df0 Massive refactoring how DAV resources and routes work 2024-10-03 23:02:13 +02:00
Lennart
9c8c05eaca Fix that auth middleware should not actually throw an error when unauthorized 2024-10-03 20:24:14 +02:00
Lennart
4872d67a36 remove comment 2024-10-03 19:55:43 +02:00
Lennart
dd3d05907c Move authentication middleware into the caldav scope 2024-10-03 19:55:05 +02:00
Lennart
6f12a1d80e completely rebuilt the auth implementation to support OIDC in the future 2024-10-03 19:47:50 +02:00
Lennart
235e7b207a Changed CalendarStore put_object interface 2024-10-03 16:08:35 +02:00
Lennart
6eaaae37b3 Rename events to calendar objects 2024-10-03 15:59:19 +02:00
Lennart
eeacbc888d Add first VTODO support 2024-09-30 20:20:32 +02:00
Lennart
b3a7806139 Migrate from Event type to CalendarObject
This is preparation to support other calendar components like VTODO and
VJOURNAL
2024-09-30 19:35:54 +02:00
Lennart
acc47e4e24 Refactor store crate 2024-09-30 18:23:30 +02:00
Lennart
3dd9a048ac Fixes to event timestamps 2024-08-03 16:27:41 +02:00
Lennart
c50485f13d Add sync_changes to CalendarStore 2024-08-02 20:36:37 +02:00
Lennart
33539e8c7a Add basic sync-token implementation 2024-07-28 17:49:15 +02:00
Lennart
21fe841ef1 events: Add updated_at field 2024-07-27 14:38:39 +02:00
Lennart
8afcbccd6a Fix bug where deleted events stay listed 2024-06-30 19:42:26 +02:00
Lennart
9a2173c987 fix typo 2024-06-30 17:21:38 +02:00
Lennart
06d1095c66 Fix data model to fix event collisions with multiple principals 2024-06-21 21:16:31 +02:00
Lennart
aed6bcff63 Add trash bin feature 2024-06-21 19:30:59 +02:00
Lennart
26d2f88d1c Change upsert_event to put_event to match webdav spec 2024-06-21 18:24:06 +02:00
Lennart
9c703673fa Remove toml store 2024-06-21 18:01:41 +02:00
Lennart
69d6778193 store: Add update_calendar method 2024-06-16 13:01:53 +02:00
Lennart
d647e45e5c Add calendar-order prop 2024-06-01 22:00:07 +02:00
Lennart
7dcc29302a Replace more anyhow errors with explicit error types 2024-06-01 14:24:31 +02:00
Lennart
1d763b5c8f Error typing for rustical_store as well as some refactoring 2024-06-01 13:00:36 +02:00
Lennart
7fcd9a17f5 move CalendarStore to separate file 2024-06-01 11:44:04 +02:00
Lennart
fd4fdb8f52 Fix toml_store not saving on calendar deletion 2024-05-29 15:52:51 +02:00
Lennart
bdca080558 sqlite: refactor insert_calendar 2024-05-25 22:29:43 +02:00
Lennart
1c88821b21 sqlite: clean up get_events 2024-05-25 22:27:37 +02:00
Lennart
7e02a7e095 I didn't know about into_iter before :/ 2024-05-25 22:23:19 +02:00
Lennart
35acfe1575 store(Event): Keep plaintext ics string 2024-05-25 17:39:10 +02:00
Lennart
be27d4d7fa store: Add delete_calendar 2024-05-25 17:38:29 +02:00
Lennart
29adbadfb4 refactoring 2024-03-29 14:06:33 +01:00
Lennart
f8ba0c3600 sqlite: constructor for testing store 2024-02-26 16:30:08 +01:00