haydenull / logseq-plugin-agenda

A calendar, task manager and daily planner plugin for logseq
https://agenda.haydenhayden.com
MIT License
823 stars 44 forks source link

Feature: CalDav support which supports authentication #129

Open dominiwe opened 1 year ago

dominiwe commented 1 year ago

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.

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.

haydenull commented 1 year ago

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

dominiwe commented 1 year ago

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.

bepolymathe commented 1 year ago

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

ahmedwael216 commented 1 year ago

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

dominiwe commented 1 year ago

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

AssertInequality commented 1 year ago

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.

haydenull commented 1 year ago

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

umgpy commented 5 months ago

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