berti92 / mega_calendar

Plugin for redmine: Brings a better calendar and more opportunities to display issues and holidays
http://www.devbert.de/index.php/en/project/megacalendar/
MIT License
70 stars 52 forks source link

Calendar export requires login #123

Closed JiriValasek closed 1 month ago

JiriValasek commented 1 month ago

Hi,

I installed the plugin today in version 1.5.0 (redmine 5.1.2) and I'm facing an issue regarding export.

I need to import the calendar into ms365 exchange calendars via "subscribe from web". But when I'm using the URL from the wiki Thunderbird guide, it requires login (redirects).

Is there a way how to avoid that so it can be imported into ms365 / Google calendar?

Thanks for any help or directions 🙂

JiriValasek commented 1 month ago

Hi,

I found the problem, made a solution and submitted a PR #124 so it can help others as well. Ruby really ain't my pot of tea so better check whether it's a safe solution.

Kind regards,

Jiri

berti92 commented 1 month ago

If you setup an api key and enable the rest api, then it should be possible to export the issues. https://github.com/berti92/mega_calendar/wiki/Setup-sync-in-Thunderbird

JiriValasek commented 1 month ago

It is, but only when you are also logged in. Microsoft exchange has no way to login, which is the issue.

For one time expert after login it's just fine, but I need automatic updates for my use case.