logseq-plugin-agenda icon indicating copy to clipboard operation
logseq-plugin-agenda copied to clipboard

Feature: CalDav support which supports authentication

Open dominiwe opened this issue 3 years ago • 8 comments

Hi! First of all, thank you for creating this amazing plugin.

A feature I would like to see is proper CalDav support to pull in external calendars. For now and for the sake of simplicity, we could implement this in a read-only fashion.

  • See the standard here: https://developers.google.com/calendar/caldav/v2/guide
  • See a guide from Google here: https://developers.google.com/calendar/caldav/v2/guide

This could also replace the current subscription implementation which has the unfortunate disadvantage that calendars need to be made public (if i understand it correctly). Google and Apple have CalDav APIs for their calendars.

I do not have a lot of time right now but I would love to contribute. If I do get the time I will look at the source and try to think of a way to work on this.

dominiwe avatar Sep 21 '22 15:09 dominiwe

Each platform authentication may be inconsistent, it is recommended to add a new type of subscription calendar, which can include google calendar authentication.

haydenull avatar Sep 21 '22 23:09 haydenull

I have started to work on this. For my use-case (Nextcloud), either Basic Authentication or OAuth2 can be used. Basic Auth is very simple to work with by using app specific passwords. Googles CalDav API also uses OAuth2. Using this guide along the way as I proceed: https://sabre.io/dav/building-a-caldav-client/. And here is a library I found but I have to see if is useful: https://www.npmjs.com/package/webdav.

dominiwe avatar Sep 23 '22 14:09 dominiwe

It would be great for those use tasks.org as mobile opensource app.

bepolymathe avatar Oct 27 '22 08:10 bepolymathe

Any update about caldav support for nextcloud? I could try to add it if no one is working on it right now.

ahmedwael216 avatar Jan 18 '23 10:01 ahmedwael216

Unfortunately I do not currently have time to continue working on this due to work and exam season.

dominiwe avatar Jan 18 '23 18:01 dominiwe

Hi Everyone

Thank you @dominiwe for including the relevant resources.

I might fork and give the integration a try. It will probably be basic auth for now, as my use case is also Nextcloud. If it works out, then I'll move on to OAuth2.

And thank you @haydenull for the stellar plugin.

AssertInequality avatar Apr 23 '23 08:04 AssertInequality

Thank you all for your efforts. If there is anything I can help, please don't hesitate to ask.

haydenull avatar Apr 23 '23 23:04 haydenull

Hi all, any update on this? Having this feature would be really helpful!

umgpy avatar Jan 12 '24 11:01 umgpy