Vaccarini-Lorenzo / MagicCalendar

An obsidian plugin that exploit a natural language processing engine to find potential events and sync them with iCalendar
MIT License
85 stars 0 forks source link

No iCloud Calendar login #17

Closed ryumaou closed 1 year ago

ryumaou commented 1 year ago

I copied and installed the plugin, per the instructions, and don't see a place to log into the iCloud account. Here's a screenshot: image

Vaccarini-Lorenzo commented 1 year ago

I copied and installed the plugin, per the instructions, and don't see a place to log into the iCloud account.

Here's a screenshot:

image

Hi there! To login just look for "iCalSync" in the command palette: There's a specific command to do so.

ryumaou commented 1 year ago

Ah, I see. A little counter-intuitive, but for setup, not a big deal. Unfortunately, I have 2FA enabled and when I tried to use an application specific password, the plugin kicks back an error about logging in.

Not sure if this matters, but I'm on a Windows 10 machine using iCloud for Windows. Also, for reference, I used this same special password feature for the Full Calendar plugin, and it allowed me to pull from my iCloud calendar.
I appreciate the work on this!

Vaccarini-Lorenzo commented 1 year ago

Thanks for your feedback! I'll think about some more user-friendly interface. The plugin supports 2FA too, could you describe the error you're getting? You can access the console pressing cmd + option + I on macOS or ctrl + shift + I on windows. Keep in mind that the credentials required are the ones for iCloud. I was not aware that Apple supported application-specific passwords (when I started developing the plugin I looked for some form of OAuth but without success), I'll look into that as soon as possible.

ryumaou commented 1 year ago

Yeah, I tried the "regular" iCloud credentials, which are also my Apple ID credentials. I was able to set up application-specific passwords under my Apple ID.

Here's the console errors I got back: image

ryumaou commented 1 year ago

I just tried again and got the prompt on my iPhone for validating the login, but I don't have anywhere to put the 2FA verification code in Obsidian. image

Vaccarini-Lorenzo commented 1 year ago

The release 1.1.4 should fix this issue. Thanks for your patience

ryumaou commented 1 year ago

That did fix it! I was prompted for the 2FA code which I entered and got a successful login. I have another issue with the Full Calendar plugin in the sidebar, but I'll open a separate issue for that. Thank you!